question

asimthakker avatar image
1 Like"
asimthakker asked ·

Sandbox FindingService different format than Production

I had been working on production API for search using the end point

http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=fi...

 

I needed to test/try to sandbox, so I changed that to 

http://svcs.sandbox.ebay.com/services/search/FindingService/v1?OPERATION...

 

The response header and the content returned by the production server is different than the sandbox server.

Response Header in Production:

 

Content-Type: text/javascript

 

Response Header in Sandbox:

Content-Type:text/plain;charset=UTF-8

 

 

The content given back is also different where in production it gives the data encapsulated by the _cb_findItemsByKeywords method and in sandbox it is without the method encapsulation.

 

As you can imagine that creates significant problems as the client is expecting a callback into a method as per documentation and specifications given by eBay.

 

 

Here are the 2 full requests:

Production -

http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=fi...(0).name=MaxPrice&itemFilter(0).value=200&itemFilter(0).paramName=Currency&itemFilter(0).paramValue=USD&itemFilter(1).name=FreeShippingOnly&itemFilter(1).value=true&itemFilter(2).name=ListingType&itemFilter(2).value(0)=AuctionWithBIN&itemFilter(2).value(1)=FixedPrice&itemFilter(2).value(2)=StoreInventory

 

Sandbox -

http://svcs.sandbox.ebay.com/services/search/FindingService/v1?OPERATION...(0).name=MaxPrice&itemFilter(0).value=200&itemFilter(0).paramName=Currency&itemFilter(0).paramValue=USD&itemFilter(1).name=FreeShippingOnly&itemFilter(1).value=true&itemFilter(2).name=ListingType&itemFilter(2).value(0)=AuctionWithBIN&itemFilter(2).value(1)=FixedPrice&itemFilter(2).value(2)=StoreInventory

 

 

Example response from production:


_cb_findItemsByKeywords({"findItemsByKeywordsResponse":[{"ack":["Success"] ...

 

Example response from sandbox:


{"findItemsByKeywordsResponse":[{"ack":["Success"] ...

 

Any help appreciated

 

sandboxjsonfindingservice
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.