Welcome Guest. Sign in or Signup

1 Answers

Open eBay: make remote calls to available web services from within HTML-Type gadget

Asked by: 247 views Programming

Q. can I make cross domain call from within HTML-Type gadget?

A. Yes, you can make cross domain call from within HTML-Type gadget. Remote call has to come to the server via makeRequest(). You can’t make cross domain call directly or you will get nothing but a blank response.  Please refer to the user guide http://developer.ebay.com/DevZone/open-ebay-apps/Concepts/OpeneBayUGDev.html#makeRequest for the details.

Q.  I get a 504 error or 500 error for any web services hit. If I retry the call enought times it works but it rately works on thefirst try.

A. You need to use Preload functionality. <Preload href=”http://aaa.com” />. Preloading is available to prevent extra round trips from the browser to the server, it is simply an optimization technique. Keep in mind that the preload URL must match exactly with the URL used in makeRequest call or else you will do twice the work.