[Mono-list] wsdl & wsdl2

Atsushi Eno atsushi at ximian.com
Mon Oct 29 13:12:51 EDT 2007


Hello,

wsdl is for 1.x profile (.NET framework 1.1 compatible).
wsdl2 is for 2.0.

Neither Mono nor .NET supports rpc/literal, so wsdl error message
is indeed correct. If it is not warned by .NET wsdl.exe, then
it is just not user-friendly.

For wsdl2 warning messages, without the actual wsdl document I rather
suspect that your wsdl indeed violates Basic Profile 1.1 rules (and
.NET sometimes fails to report them). Note that you actually get the
resulting sources for the wsdl file.

Atsushi Eno

Michael Masters wrote:
> I was wondering what the difference is between these two executables. 
> When I try to use these executables on my wsdl, it gives me different 
> errors/warnings.
> 
> When I run wsdl, I get the following in my source file:
> 
> // WARNING: Could not generate operation binding create. The combination 
> of style=rpc with use=literal is not supported
> 
> When I run wsdl2, I get following:
> 
> mmasters at texas:~/mono/rally$ wsdl2 rally.wsdl
> Web Services Description Language Utility
> Mono Framework v2.0.50727.42
> 
> There where some warnings while generating the code:
> 
>   rally.wsdl
>     - This web reference does not conform to WS-I Basic Profile v1.1
>         R2209: A wsdl:binding in a DESCRIPTION SHOULD bind every 
> wsdl:part of a
>         wsdl:message in the wsdl:portType to which it refers to one of
>         soapbind:body, soapbind:header, soapbind:fault  or 
> soapbind:headerfault
>           * Binding 'RallyServiceSoapBinding', in Service Description
>             'http://rallydev.com/webservice/v1_04/service'
>         R2710: The operations in a wsdl:binding in a DESCRIPTION MUST 
> result in
>         operation signatures that are different from one another.
>           * Binding 'RallyServiceSoapBinding', in Service Description
>             'http://rallydev.com/webservice/v1_04/service'
>           * Binding 'RallyServiceSoapBinding', in Service Description
>             'http://rallydev.com/webservice/v1_04/service'
>         R2304: A wsdl:portType in a DESCRIPTION MUST have operations with
>         distinct values for their name attributes.
>           * PortType 'RallyService', in Service Description
>             'http://rallydev.com/webservice/v1_04/service'
>           * PortType 'RallyService', in Service Description
>             'http://rallydev.com/webservice/v1_04/service'
>         R2305: A wsdl:operation element child of a wsdl:portType element 
> in a
>         DESCRIPTION MUST be constructed so that the parameterOrder 
> attribute,
>         if present, omits at most 1 wsdl:part from the output message.
>           * Operation 'read', in PortType 'RallyService', in Service
>             Description 'http://rallydev.com/webservice/v1_04/service'
>           * Operation 'query', in PortType 'RallyService', in Service
>             Description 'http://rallydev.com/webservice/v1_04/service'
>           * Operation 'query', in PortType 'RallyService', in Service
>             Description 'http://rallydev.com/webservice/v1_04/service'
>     - WARNING: At least one operation is of an unsupported type and has been
>       ignored
> 
> Writing file 'RallyServiceService.cs'
> 
> When I use visual studio, I don't get any errors. Any suggestions on how 
> to get my wsdl working under Mono?
> 
> 
> 
> Thanks in advance,
> Mike
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 



More information about the Mono-list mailing list