ShopWindow Forum  

Go Back   ShopWindow Forum > ShopWindow API v3 > Application and Development v3
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-10, 09:00
dan_lighthouse dan_lighthouse is offline
New Member
 
Join Date: Jun 2010
Posts: 5
GiftFinderProductList method not returning poducts

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
Reply With Quote
  #2  
Old 05-07-10, 12:38
CaptainFalcon CaptainFalcon is offline
Active Member
 
Join Date: May 2008
Posts: 20
Hi Dan,

The ShopWindow demo site (http://giftsgadgetstoys.shopwindow.c...istOffset= 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

Cheers
Reply With Quote
  #3  
Old 05-07-10, 12:56
dan_lighthouse dan_lighthouse is offline
New Member
 
Join Date: Jun 2010
Posts: 5
Hi, cheers for the reply,

Here's my call

PHP Code:
<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)

PHP Code:
<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>&amp;pound;20 - &amp;pound;30</sName>

                 ...

        </
oRefineByGroup>
      </
ns1:getGiftFinderProductListResponse>
   </
SOAP-ENV:Body>
</
SOAP-ENV:Envelope>
Cheers!
Reply With Quote
  #4  
Old 06-07-10, 09:07
dan_lighthouse dan_lighthouse is offline
New Member
 
Join Date: Jun 2010
Posts: 5
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
Reply With Quote
  #5  
Old 09-07-10, 09:30
dan_lighthouse dan_lighthouse is offline
New Member
 
Join Date: Jun 2010
Posts: 5
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/inde...derProductList

But at least it's working now
Reply With Quote
  #6  
Old 09-07-10, 10:00
GeorgeGaz's Avatar
GeorgeGaz GeorgeGaz is offline
Product Manager
 
Join Date: Jan 2008
Location: Digital Window HQ
Posts: 608
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

Kind regards
__________________
George Fletcher
Product Manager
Digital Window Ltd

george.fletcher@digitalwindow.com
Tel: 020 7553 0392
www.digitalwindow.com
Reply With Quote
  #7  
Old 09-07-10, 14:39
dan_lighthouse dan_lighthouse is offline
New Member
 
Join Date: Jun 2010
Posts: 5
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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 20:45.