views:

20

answers:

0

I'm trying to generate proxy classes via svcutil.exe for a 3rd party web service using their WSDL. However, when I run svcutil.exe on the WSDL I get the following error, which then cascades down to other elements in the file causing no code to be generated.

Warning 2   Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Error: Referenced type 'http://schemas.xmlsoap.org/soap/encoding/:Array' is only valid for encoded SOAP.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://api.affiliatewindow.com/']/wsdl:portType[@name='ApiPortType']

As far as my knowledge of soap goes, it seems like they've based some of their types on the Array type from the encoded SOAP specification but the actual WSDL doesn't specify encoding? Is that a correct assumption or am I way off?

Here's the WSDL.

I'm wondering what my next step is. Is there anything I can do to to get around this or does it mean that their WSDL is actually not valid?