PDA

View Full Version : searchProduct XML Error


ianpriceuk
19-04-08, 20:37
I have got getProductList, getProduct, getCategory and getMerchant working with .NET now and they all work fineon initial inspection, I worked around the dodgy ArrayOfInt problem by editing my Reference.vb/Reference.cs file for the web reference, this will have to be done every AW update, but it saves hassle with the dodgy ShopWondow "ArrayOf" format from the WSDL.
Replace all ArrayOfInt in there with Int64() or equivalent.

However, the searchProduct function appears to be flawed.

I have tried with a populated criteria parameter to it and just an empty freshly initialised one and both just give me an XML error, stating something obscure - "There is an error in XML document (2, 428)." or "There is an error in XML document (2, 345)." if I don't pass the getQuota parameter.

I used Fiddler to ensure the SOAP request was being sent as expected and it is, so the problem must be somewhere in the Web Service itself, and this is quote odd as all others work perfectly.

Anyone got any ideas, had any similar problems, or any of the API developers got any suggestions?

Ian

Adrian
20-04-08, 02:07
Hi Ian,

Sorry to hear you're having difficulties with getting this working :( A little difficult to see where it's going wrong at this point, would be great to discuss this in greater depth with you.

Please PM/Email me your contact details so that we can arrange a convenient time to discuss, alternatively please feel free to call me directly.

Kind Regards,

Adrian
ShopWindow Support

Tel: 0207 553 0391
Email: adrian.botelho@shopwindow.com
www.shopwindow.com

ianpriceuk
22-04-08, 12:13
Hiya

I sorted that problem, it was an obscure error being thrown from the API if a Query was not specified in the passed criteria.

The API PDF doesn't really show what the minimum requirements for that call are. Which parameters are necessary to achieve a resultset in response?
Is there a minimum length for the Query parameter?

In addition, many thanks for your prompt response to the original post.

Regards

Ian

Andy
22-04-08, 14:05
I found that I had a minimum strlen of 3 characters for the Query Parameter UNLESS the type was set to BOOLEAN. In which case it would accept a strlen of 1.

mind you, PHP on Linux. not sure of the implications of .NET