View Full Version : getHotPickProductList Prob.
I am trying to use the getHotPickProductList method to return hot products for an individual shop. The getHotPickProductList uses .aMerchantIds which is set to an ArrayOfInt. The problem is I have no idea how or where to put the merchantid in the ArrayOfInt. I have tried the Id property but that doesn't work.
I am coding this in .net.
Thank you for any help.
:)
You could try putting the aMerchantIds in the ArrayOfInt.Any(0).InnerText but personally I think the problem you are having is part of a much bigger interoperability issue, I think the object definitions in the auto generated proxy class are wrong.:eek:
I've been having loads of problems coding this api with .Net and I think it stems from the way .Net is interpretting the WSDL and the proxy code that is being generated. There seems to be an issue in the way Array objects are interpreted when using 'WSDL:Types="[type]"'.
Microsoft say, wsdl.exe (or Add Web Reference) will create a class inheriting an Array object, and recommend changing these classes to represent the objects the developer originally intended.:(
So I have been playing around with this and have managed to get few things working as expected. :)
Having to edit the classes though is a real pain and is going to lead to recoding everytime a new version of the WSDL is produced. Perhaps Affiliate Window can produce a WSDL document specifically designed for .Net users?
One last issue you might be able to help me with...
The 'getQuota' element in the SoapHeader needs to be in this format:
<getQuota>true</getQuota>
.Net produces this:
<getQuota><getQuota>true</getQuota></getQuota>
Do you have any idea how to correct this?
Hi Jon,
Do you have a example code to show where you have suceeded in working with this api?
PNeate, I am just encountering the same issue as you. This api does not seem to be very easy to consume in .NET. If I get anything to work I'll post the solution here.
Jim
Same here - banging my head against the ArrayOfInt wall.
ebuyandsave
18-02-08, 09:58
Has anyone got this working in .NET?
ianpriceuk
18-04-08, 13:44
Anyone had any luck with this from .NET as yet? I have everything else working perfectly from .NET now after writing a nice little wrapper library, but this ArrayOfInt thing is just not workng for me.