PDA

View Full Version : WSDL Problem?


Jon
09-04-07, 23:16
I'm looking to integrate the api into an asp.net website, however I'm having a few issues I was hoping someone could help me with. :D

The API documentation lists various data types as described in the WSDL, when I compile the WSDL to a DLL, I appear to be missing datatype definitions for items such as Product, Merchant, Category. On closer inspection of the WSDL I notice 7 warning messages:

'Undefined complexType 'http://schemas.xmlsoap.org/soap/encoding/:Array' is used as a base for complex type restriction.'

Any help using the api with asp.net/visual studio would be much appreciated.....

Jon
11-04-07, 21:38
I saved a local copy of the wsdl file and added the following lines:

<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://api.productserve.com/" elementFormDefault="qualified">
<import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>

This solved the <soapenc:array> problem...

However, I still don't understand why I don't see definitions is the proxy class for the product, category or merchant data types!!

Can anyone please point in the right direction for using this api in asp.net/ visual stuido?