[Mono-dev] wsdl errors when generating .Net WCF service definition

LiteWait tim.nelson at activant.com
Wed Nov 17 14:32:44 EST 2010


I've got a simple test WCF service I create in Windows .NET VS 2008.  I am
trying to generate the .wsdl from it and wsdl throws an exception:

wsdl --nologo http://192.168.1.109:8080/Service1/Service1.svc?wsdl
Error: None of the supported bindings was found
Stack:
   at System.Web.Services.Description.ServiceDescriptionImporter.Import
(System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit
codeCompileUnit) [0x00000] in <filename unknown>:0
  at
System.Web.Services.Description.ServiceDescriptionImporter.GenerateWebReferences
(System.Web.Services.Description.WebReferenceCollection webReferences,
System.CodeDom.Compiler.CodeDomProvider codeGenerator,
System.CodeDom.CodeCompileUnit codeCompileUnit,
System.Web.Services.Description.WebReferenceOptions options) [0x00000] in
<filename unknown>:0
  at Mono.WebServices.Driver.GenerateCode
(System.Web.Services.Description.WebReferenceCollection references,
System.CodeDom.CodeCompileUnit codeUnit) [0x00000] in <filename unknown>:0
  at Mono.WebServices.Driver.Run (System.String[] args) [0x00000] in
<filename unknown>:0

And the XML from that service is:
<code>
<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="Service1"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
xmlns:wsa10="http://www.w3.org/2005/08/addressing"
xmlns:tns="http://tempuri.org/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><wsp:Policy
wsu:Id="WSHttpBinding_IService1_policy"><wsp:ExactlyOne><wsp:All><sp:SymmetricBinding
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><wsp:Policy><sp:ProtectionToken><wsp:Policy><sp:SecureConversationToken
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"><wsp:Policy><sp:RequireDerivedKeys/><sp:BootstrapPolicy><wsp:Policy><sp:SignedParts><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts><sp:Body/></sp:EncryptedParts><sp:SymmetricBinding><wsp:Policy><sp:ProtectionToken><wsp:Policy><sp:SpnegoContextToken
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"><wsp:Policy><sp:RequireDerivedKeys/></wsp:Policy></sp:SpnegoContextToken></wsp:Policy></sp:ProtectionToken><sp:AlgorithmSuite><wsp:Policy><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy><sp:Strict/></wsp:Policy></sp:Layout><sp:IncludeTimestamp/><sp:EncryptSignature/><sp:OnlySignEntireHeadersAndBody/></wsp:Policy></sp:SymmetricBinding><sp:Wss11><wsp:Policy/></sp:Wss11><sp:Trust10><wsp:Policy><sp:MustSupportIssuedTokens/><sp:RequireClientEntropy/><sp:RequireServerEntropy/></wsp:Policy></sp:Trust10></wsp:Policy></sp:BootstrapPolicy></wsp:Policy></sp:SecureConversationToken></wsp:Policy></sp:ProtectionToken><sp:AlgorithmSuite><wsp:Policy><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy><sp:Strict/></wsp:Policy></sp:Layout><sp:IncludeTimestamp/><sp:EncryptSignature/><sp:OnlySignEntireHeadersAndBody/></wsp:Policy></sp:SymmetricBinding><sp:
 Wss11
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><wsp:Policy/></sp:Wss11><sp:Trust10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><wsp:Policy><sp:MustSupportIssuedTokens/><sp:RequireClientEntropy/><sp:RequireServerEntropy/></wsp:Policy></sp:Trust10><wsaw:UsingAddressing/></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy
wsu:Id="WSHttpBinding_IService1_GetData_Input_policy"><wsp:ExactlyOne><wsp:All><sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/></sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy
wsu:Id="WSHttpBinding_IService1_GetData_output_policy"><wsp:ExactlyOne><wsp:All><sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/></sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy
wsu:Id="WSHttpBinding_IService1_GetDataUsingDataContract_Input_policy"><wsp:ExactlyOne><wsp:All><sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/></sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy
wsu:Id="WSHttpBinding_IService1_GetDataUsingDataContract_output_policy"><wsp:ExactlyOne><wsp:All><sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/></sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy
wsu:Id="WSHttpBinding_IService1_Tester_Input_policy"><wsp:ExactlyOne><wsp:All><sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/></sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy
wsu:Id="WSHttpBinding_IService1_Tester_output_policy"><wsp:ExactlyOne><wsp:All><sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/><sp:Header
Name="To" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="From" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="MessageID"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header
Name="RelatesTo"
Namespace="http://www.w3.org/2005/08/addressing"/><sp:Header Name="Action"
Namespace="http://www.w3.org/2005/08/addressing"/></sp:SignedParts><sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><sp:Body/></sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy><wsdl:types><xsd:schema
targetNamespace="http://tempuri.org/Imports"><xsd:import
schemaLocation="http://nelson-t5500:8080/Service1/Service1.svc?xsd=xsd0"
namespace="http://tempuri.org/"/><xsd:import
schemaLocation="http://nelson-t5500:8080/Service1/Service1.svc?xsd=xsd1"
namespace="http://schemas.microsoft.com/2003/10/Serialization/"/><xsd:import
schemaLocation="http://nelson-t5500:8080/Service1/Service1.svc?xsd=xsd2"
namespace="http://schemas.datacontract.org/2004/07/WcfService1"/></xsd:schema></wsdl:types><wsdl:message
name="IService1_GetData_InputMessage"><wsdl:part name="parameters"
element="tns:GetData"/></wsdl:message><wsdl:message
name="IService1_GetData_OutputMessage"><wsdl:part name="parameters"
element="tns:GetDataResponse"/></wsdl:message><wsdl:message
name="IService1_GetDataUsingDataContract_InputMessage"><wsdl:part
name="parameters"
element="tns:GetDataUsingDataContract"/></wsdl:message><wsdl:message
name="IService1_GetDataUsingDataContract_OutputMessage"><wsdl:part
name="parameters"
element="tns:GetDataUsingDataContractResponse"/></wsdl:message><wsdl:message
name="IService1_Tester_InputMessage"><wsdl:part name="parameters"
element="tns:Tester"/></wsdl:message><wsdl:message
name="IService1_Tester_OutputMessage"><wsdl:part name="parameters"
element="tns:TesterResponse"/></wsdl:message><wsdl:portType
name="IService1"><wsdl:operation name="GetData"><wsdl:input
wsaw:Action="http://tempuri.org/IService1/GetData"
message="tns:IService1_GetData_InputMessage"/><wsdl:output
wsaw:Action="http://tempuri.org/IService1/GetDataResponse"
message="tns:IService1_GetData_OutputMessage"/></wsdl:operation><wsdl:operation
name="GetDataUsingDataContract"><wsdl:input
wsaw:Action="http://tempuri.org/IService1/GetDataUsingDataContract"
message="tns:IService1_GetDataUsingDataContract_InputMessage"/><wsdl:output
wsaw:Action="http://tempuri.org/IService1/GetDataUsingDataContractResponse"
message="tns:IService1_GetDataUsingDataContract_OutputMessage"/></wsdl:operation><wsdl:operation
name="Tester"><wsdl:input wsaw:Action="http://tempuri.org/IService1/Tester"
message="tns:IService1_Tester_InputMessage"/><wsdl:output
wsaw:Action="http://tempuri.org/IService1/TesterResponse"
message="tns:IService1_Tester_OutputMessage"/></wsdl:operation></wsdl:portType><wsdl:binding
name="WSHttpBinding_IService1" type="tns:IService1"><wsp:PolicyReference
URI="#WSHttpBinding_IService1_policy"/><soap12:binding
transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation
name="GetData"><soap12:operation
soapAction="http://tempuri.org/IService1/GetData"
style="document"/><wsdl:input><wsp:PolicyReference
URI="#WSHttpBinding_IService1_GetData_Input_policy"/><soap12:body
use="literal"/></wsdl:input><wsdl:output><wsp:PolicyReference
URI="#WSHttpBinding_IService1_GetData_output_policy"/><soap12:body
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
name="GetDataUsingDataContract"><soap12:operation
soapAction="http://tempuri.org/IService1/GetDataUsingDataContract"
style="document"/><wsdl:input><wsp:PolicyReference
URI="#WSHttpBinding_IService1_GetDataUsingDataContract_Input_policy"/><soap12:body
use="literal"/></wsdl:input><wsdl:output><wsp:PolicyReference
URI="#WSHttpBinding_IService1_GetDataUsingDataContract_output_policy"/><soap12:body
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
name="Tester"><soap12:operation
soapAction="http://tempuri.org/IService1/Tester"
style="document"/><wsdl:input><wsp:PolicyReference
URI="#WSHttpBinding_IService1_Tester_Input_policy"/><soap12:body
use="literal"/></wsdl:input><wsdl:output><wsp:PolicyReference
URI="#WSHttpBinding_IService1_Tester_output_policy"/><soap12:body
use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service
name="Service1"><wsdl:port name="WSHttpBinding_IService1"
binding="tns:WSHttpBinding_IService1"><soap12:address
location="http://nelson-t5500:8080/Service1/Service1.svc"/><wsa10:EndpointReference><wsa10:Address>http://nelson-t5500:8080/Service1/Service1.svc</wsa10:Address><Identity
xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity"><Dns>localhost</Dns></Identity></wsa10:EndpointReference></wsdl:port></wsdl:service></wsdl:definitions>
</code>


-- 
View this message in context: http://mono.1490590.n4.nabble.com/wsdl-errors-when-generating-Net-WCF-service-definition-tp3047453p3047453.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list