Hi,
I’m sorry my previous answer wasn’t clear enough, I’ll try to explain
with an example.
Let’s say that you have an application that displays a list of results
obtained querying the API. After some user activity, you need to
update the content of the list.
From the JavaScript/HTML frontend you make an asynchronous call to the
application backend, a server side application implemented in PHP,
Ruby, Python... The backend queries the API, formats the results and
returns the results to the JavaScript/HTML frontend that finally
updates the list on the page.
Regarding SOAP, there doesn’t seem to be a lot in the way of support
in Javascript, and what does exist has limited support. Most likely
you will end up having to handle the SOAP XML parsing and generation
yourself, as well as dealing with all of the authentication and error
handling manually. In addition, you’ll likely end up running into XSS
issues, given that your page and the web service you’re contacting are
not in the same domain. The only way of getting around those would be
to use a proxy page, in which case you’re better off doing all of the
SOAP requests server-side, as described on the paragraph above.
Cheers,
Silvano
--
Silvano Luciani | Developer Programs Engineer
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902