.NET 2.0 WSDL.EXE UTILITY NON-STANDARD - WILL NOT COMPILE

can anyone please assist me with microsoft's WSDL.EXE utility from .NET 2.0 SDK? it won't compile due to the following console log. i have seen the so-called microsoft workaround but it doesn't seem to work.

http://support.microsoft.com/default.aspx?scid=kb;en-us;820122

any ideas anyone? bruce.


C:\aami\new wsdl>wsdl pnet.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Unable to import binding 'PNETSoapBinding' from namespace 'http://webserv
ice.pnet.aami.com.au'.
- Unable to import operation 'deleteMail'.
- The element, deleteMailResponse, from namespace,
http://webservice.pnet.aami
.com.au, was imported in two different contexts: (PrimitiveMapping, MembersMappi
ng).

If you would like more help, please type "wsdl /?".

C:\aami\new wsdl>

[1515 byte] By [foxquote] at [2007-12-23]
# 1

The so-called Microsoft workaround does not work, because it is *not* the same issue as the description form indicates.

Without actual wsdl, I can only guess, but the issue you experience is most likely related to using primitive type for the part element, something like:

<wsdl:message name="deleteSoapIn">

<wsdl:part name="parameters" element="tns:deleteMailResponse" />

</wsdl:message>

Where deleteMailResponse is a simpleType.

If so, you can rename the part, and the issue will go away, you can choose any name as long as it is unique. (and valid NCName),

<wsdl:message name="deleteSoapIn">

<wsdl:part name="deleteMailResponse" element="tns:deleteMailResponse" />

</wsdl:message>

Thanks,

Elena Kharitidi

ElenaKharitidi at 2007-8-30 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 2

gday elena,

thanks for your help.

i'll give it a go but i'm not confident.....

any chance you could take a look at it for me?

can i somehow attache the wsdl file here or email?

bruce.

foxquote at 2007-8-30 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified