[Mono-list] wsdl & wsdl2

Michael Masters michael.masters at rallydev.com
Mon Oct 29 19:03:22 EDT 2007


Atsushi,

Thank you for the information! I'm relatively new to SOAP. I had not 
tried wsdl.exe on the wsdl. I was using the "Add Web Reference..." 
feature in Visual Studio and it never gave me any error messages.  When 
I use wsdl.exe on the wsdl, I get similar output to wsdl2. Could you 
explain what the messages mean or where I can find information on how to 
fix the problem?

What is a rpc/literal?

The wsdl can be found at http://soap.digitaldarwin.com/rally.wsdl

The following is the output when I run wsdl.exe:


Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2304: Operation name overloading in a wsdl:portType is disallowed by 
the Profile. A wsdl:portType in a DESCRIPTION MUST have operations with 
distinct values for their name attributes. Note that this requirement 
applies only to the wsdl:operations within a given wsdl:portType. A 
wsdl:portType may have wsdl:operations with names that are the same as 
those found in other wsdl:portTypes.

  -  Operation 'read' on portType 'RallyService' from namespace 
'http://rallydev.com/webservice/v1_04/service'.

  -  Operation 'query' on portType 'RallyService' from namespace 
'http://rallydev.com/webservice/v1_04/service'.



R2710: The operations in a wsdl:binding in a DESCRIPTION MUST result in 
wire signatures that are different from one another. An endpoint that 
supports multiple operations must unambiguously identify the operation 
being invoked based on the input message that it receives. This is only 
possible if all the operations specified in the wsdl:binding associated 
with an endpoint have a unique wire signature.

  -  Input message 'readOriginalRequest' from namespace 
'http://rallydev.com/webservice/v1_04/service' has wire signature 
'http://rallydev.com/webservice/v1_04/service:read'.

  -  Input message 'readWorkspaceScopedRequest' from namespace 
'http://rallydev.com/webservice/v1_04/service' has wire signature 
'http://rallydev.com/webservice/v1_04/service:read'.

  -  Input message 'queryOriginalRequest' from namespace 
'http://rallydev.com/webservice/v1_04/service' has wire signature 
'http://rallydev.com/webservice/v1_04/service:query'.

  -  Input message 'queryProjectScopedRequest' from namespace 
'http://rallydev.com/webservice/v1_04/service' has wire signature 
'http://rallydev.com/webservice/v1_04/service:query'.



For more details on the WS-I Basic Profile v1.1, see the specification

at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.



Writing file 'C:\cygwin\home\Michael Masters\test\RallyServiceService.cs'.













Atsushi Eno wrote:
> 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