Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Errors using SVCUTIL to create a WCF proxy class without an app.config (2 Comments)

$
0
0

Topic by Try

Hi,

I am self-certified newbie with RightNow API so I am hoping someone can help with an issue I am having. Due to circumstances, I need to generate a proxy class (in C#) without app.config. I am trying to use SVCUTIL to generate it but keep running into errors: Cannot import wsdl:binding and Error: Cannot import wsdl:port

Below is the command I used and the error messages I received (updated the URL as a generic one for privacy concerns).

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools>svcutil -noconfig /t:code /language=C# https://<your_site>/cgi-bin/<your_interface>.cfg/services/soap?wsdl /out:RNWCF1.cs

Microsoft (R) Service Model Metadata Tool

[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.33440]

Copyright (c) Microsoft Corporation.  All rights reserved.


Attempting to download metadata from 'https://<your_site>/cgi-bin/<your_interface>.cfg/services/soap?wsdl' using WS-Metadata Exchange or DISCO.

Error: Cannot import wsdl:binding

Detail: An exception was thrown in a call to a policy import extension.

Extension: System.ServiceModel.Channels.SecurityBindingElementImporter

Error: An unsupported security policy assertion was detected during the security policy import: <sp:SignedSupportingTokens xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy"><sp:IssuedToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"><sp:RequestSecurityTokenTemplate><t:TokenType xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</t:TokenType><t:KeyType xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer</t:KeyType><t:CanonicalizationAlgorithm xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/10/xml-exc-c14n#</t:CanonicalizationAlgorithm><t:SignWith xmlns:t="http://d...

XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:wsdl.ws.rightnow.com/v1_3']/wsdl:binding[@name='RightNowFedAuthSyncBinding']


Error: Cannot import wsdl:port

Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.

XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='urn:wsdl.ws.rightnow.com/v1_3']/wsdl:binding[@name='RightNowFedAuthSyncBinding']

XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:wsdl.ws.rightnow.com/v1_3']/wsdl:service[@name='RightNowSyncService']/wsdl:port[@name='RightNowFedAuthSyncPort']

Thank you.

 

Try


Viewing all articles
Browse latest Browse all 2504

Trending Articles