PDA

View Full Version : Only return one product when sending list of iProductIds to getProduct


tobyberesford
23-01-09, 14:23
Hi guys

I am trying to get back a list of named products using getProduct.

The API docs say that you can have unlimited iProductIds in the SOAP call.

However the PS API is only returning the last Product that I am requesting.

Here are my SOAP request and response below.

Any idea why it's not responding with the full list? Am I doing something wrong.

Thanks

Toby
-

REQUEST
======
<SOAP_ENV:Envelope xmlns:SOAP_ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.productserve.com/"><SOAP_ENV:Header><ns1:UserAuthentication SOAP_ENV:mustUnderstand="1" SOAP_ENV:actor="http://api.productserve.com/"><iId>--removed--</iId><sPassword>--removed--</sPassword><sType>affiliate</sType></ns1:UserAuthentication><ns1:getQuota SOAP_ENV:mustUnderstand="1" SOAP_ENV:actor="http://api.productserve.com/">true</ns1:getQuota></SOAP_ENV:Header><SOAP_ENV:Body><ns1:getProduct><iProductId>34261740</iProductId><iProductId>38521872</iProductId><iProductId>34887240</iProductId></ns1:getProduct></SOAP_ENV:Body></SOAP_ENV:Envelope>

RESPONSE
=======
<SOAP_ENV:Envelope xmlns:SOAP_ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.productserve.com/"><SOAP_ENV:Header><ns1:getQuotaResponse>932</ns1:getQuotaResponse></SOAP_ENV:Header><SOAP_ENV:Body><ns1:getProductResponse><oProduct><iId>34887240</iId><iCategoryId>84</iCategoryId><iMerchantId>1971</iMerchantId><sMerchantProductId>SAMNET03</sMerchantProductId><bAdult>false</bAdult><bHotPick>false</bHotPick><iEan>0</iEan><iIsbn>0</iIsbn><sName>Samsung NC10 NetBook Atom 1.6GHz 1GB 160GB HDD 10.2&amp;quot; 6 Cell Camera XP Home Blue</sName><sDescription>Shop online, surf the web and chat on IM with ease. The SAMSUNG NC10 netbook gives you the freedom to do that and more wherever you are. You&amp;#39;ll accomplish everything with 1GB of RAM and enjoy images filled with bold, vibrant colors on an LCD screen with 1024x600 resolution. The NC10 netbook is an affordable mobile solution ideal for all your online needs.</sDescription><sSpecification>Processor _ Intel Atom (N270) 1.6GHz 512KB (L2 Cache) Hard Drive _ 160GB (1 x 160GB) Serial ATA Memory _ 1GB Screen Size _ 10.2&amp;quot;, 1024 x 600 resolution Camera _ Integrated 1.3 Megapixel Networking _ Bluetooth 2.0 EDR IEEE 802.11b IEEE 802.11g Operating System _ Microsoft Windows XP Home Edition</sSpecification><sBrand>SAMSUNG</sBrand><sAwDeepLink>http://www.awin1.com/pclick.php?p=34887240&amp;a=85439&amp;m=1971&amp;platform=cs</sAwDeepLink><sAwThumbUrl>http://images.productserve.com/thumb/1971/34887240.jpg</sAwThumbUrl><sAwImageUrl>http://images.productserve.com/preview/1971/34887240.jpg</sAwImageUrl><sMerchantThumbUrl>http://media.dsgibusiness.com/img/products/thumbnails/SAMNET03_01.jpg</sMerchantThumbUrl><sMerchantImageUrl>http://media.dsgibusiness.com/img/products/SAMNET03_01.jpg</sMerchantImageUrl><sDeliveryTime>2</sDeliveryTime><fPrice>303.78</fPrice><sCurrency>GBP</sCurrency><fStorePrice>0</fStorePrice><fRrpPrice>0</fRrpPrice><fDeliveryCost>6.88</fDeliveryCost><bWebOffer>false</bWebOffer><bPreOrder>false</bPreOrder></oProduct></ns1:getProductResponse></SOAP_ENV:Body></SOAP_ENV:Envelope>

Andy
29-01-09, 18:13
Haven't got a scooby doo Toby.

If you're using PHP and would be prepared to post your code, I might be able to help you out. What you've posted might as well be klingon. I like to see a nice neat Object, I suppose that's what Im used to.

Any code you have will probably be the same as everyone elses, AND it's all GNU gpl, so dont worry too much about posting it.