PDA

View Full Version : Fix this ERROR


megsoft
05-10-08, 21:41
It is my first program with ShopWIndow API. I try to read first 10 products, but it gives "There is an error in XML document (2, 2537)."

Dim affWebService As New ApiService
Dim affUserAuthenticationValue As New UserAuthentication
Dim affGetProds As getProductList = New getProductList()
Dim affProdResponse As getProductListResponse = New getProductListResponse()

affUserAuthenticationValue.iId = "00000"
affUserAuthenticationValue.sType = UserType.affiliate
affUserAuthenticationValue.sPassword = "b1b1b1b1b1b1bb1b1b1b1b"
affWebService.UserAuthenticationValue = affUserAuthenticationValue
affGetProds.iLimit = 10
affProdResponse = affWebService.getProductList(affGetProds) // here is the error.
For Each Prod As Product In affProdResponse.oProduct
TextBox1.Text = TextBox1.Text + Prod.sDescription.ToString() + " - " + Prod.fPrice
Application.DoEvents()
Next

indy2005
16-01-09, 00:57
Hi,

I am getting this as well, and I thought it was related to the values being returned being too large for integer data types. The wsdl defines EAN and product IDs as being integers, but then World of Warcraft came back with an EAN of 9780744010213. Now I dont believe that would fit into an Integer in any programming language.

I hope to get a response on this, as I am getting frustrated by the lack of .net support. A SOAP web service should be consumeable from any SOAP compliant toolset.

Regards

SM

Ollie
21-01-09, 10:02
Please see ShopWindow thread http://www.shopwindowforum.com/showthread.php?t=1125#2 for a solution to this.

You will need to take a copy of the WSDL and store it locally making the suggested changes until we are in a position to release an updated version.

Cheers