View Full Version : GiftFinderProductList method not returning poducts
dan_lighthouse
05-07-10, 10:00
Hi All,
Just started developing a site to integrate with the API. Most things have worked as expected but I'm having trouble with the GiftFinderProductList method.
I'm using a tool called SOAP UI to make the calls.
If I pass it an oActiveRefineByGroup of iId 5 (Recipient) and with oRefineByDefinition sId of 9 (Brother) then I get a response which has the element iTotalCount = 128 but has no product objects.
The fact that it finds 128 objects suggests that there should be some to see? Is this a bug or am I missing something in my call?
Cheers!
Dan
CaptainFalcon
05-07-10, 13:38
Hi Dan,
The ShopWindow demo site (http://giftsgadgetstoys.shopwindow.com/productlist.php?5=9&6=0&7=0&1=0&sgf=1&iListOffset=10) appears to be working ok.
I would suggest you paste your SOAP request for all to look at? Will be easier to help you out that way :D
Cheers
dan_lighthouse
05-07-10, 13:56
Hi, cheers for the reply,
Here's my call
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v3="http://v3.core.com.productserve.com/">
<soapenv:Header>
<v3:UserAuthentication>
<sApiKey>my-api-key</sApiKey>
</v3:UserAuthentication>
</soapenv:Header>
<soapenv:Body>
<v3:getGiftFinderProductList>
<oActiveRefineByGroup>
<iId>5</iId>
<oRefineByDefinition>
<sId>9</sId>
</oRefineByDefinition>
</oActiveRefineByGroup>
</v3:getGiftFinderProductList>
</soapenv:Body>
</soapenv:Envelope>
And the response (I've cut out all the refine bys that are returned)
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://v3.core.com.productserve.com/">
<SOAP-ENV:Body>
<ns1:getGiftFinderProductListResponse>
<iTotalCount>128</iTotalCount>
<oActiveRefineByGroup>
<iId>5</iId>
<sName>Recipient</sName>
<oRefineByDefinition>
<sId>9</sId>
<sName>Brother</sName>
</oRefineByDefinition>
</oActiveRefineByGroup>
<oRefineByGroup>
<iId>1</iId>
<sName>Price</sName>
<oRefineByDefinition>
<sId>20_30</sId>
<sName>&pound;20 - &pound;30</sName>
...
</oRefineByGroup>
</ns1:getGiftFinderProductListResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Cheers!
dan_lighthouse
06-07-10, 10:07
Hi thanks for that link to the shopwindow demo site. Am I right in thinking that site has had the gift finder features added onto it? Is the codebase anywhere?
I have had a look through the shopwindow community edition and can't find any references to the gift finder method.
Does anyone have an example of a getGiftProductList call so I can see what parameters I need to send to get results back?
Cheers in advance for any help!
Dan
dan_lighthouse
09-07-10, 10:30
OK so I worked it out.
I'm having to pass an iLimit value to get any Products back.
That's not consistent with getProductList or the documentation which does not have it as a required value. http://wiki.affiliatewindow.com/index.php/GetGiftFinderProductList
But at least it's working now :)
Hi Dan,
That is great that you have figured it out.
If you wish to edit the wiki for other users to correct anything then please do, otherwise I will get one of the dev guys to look at it in the coming weeks. Chances are the wiki article is subject to human error when staff went through and added EVERY document we own to it :D
Kind regards
dan_lighthouse
09-07-10, 15:39
Hey no problem, I'm a human error specialist.
It seems to me that as iLimit isn't required in any of the other similar calls and the response doesn't alert you to the fact it's missing that this is probably something that should be changed under the hood. I'd raise it with your dev guys.
This thread is here now for anyone encountering the same problem and I've left a comment in the discussion section on the wiki.
Cheers!