Protocols
Amazon goes REST, Google goes SOAP
00:13, 18 Apr 2002 UTC | Simon St.Laurent

While the W3C's Technical Architecture Group (TAG) argues about the safety of various flavors of HTTP programming, two icons of the Web have gone different directions: Google toward SOAP, and Amazon (whether they know it or not) toward REST.

The Google SOAP API has been fairly widely reported and is built on SOAP and WSDL.

The Amazon approach (Associates account required) is very different, relying only on a simple XML vocabulary and queries built on HTTP GET. While intended only for Amazon Associates to build more sophisticated catalogs, it offers a similar level of information to Google's offering.

The DTD for the vocabulary is very simple XML: just elements, no attributes or namespaces. No SOAP wrapper is used. A GET-based query contains the information associates are requesting, along with their ID:

http://rcm.amazon.com/e/cm?t=[Associates ID goes here]
&l=st1&search=[subject keyword goes here]
&mode=[product line goes here]
&p=102&o=1&f=xml

The combination of a GET request and XML response should be enough to take care of requests from Associates, as Associates are accessing information, not changing information.

Amazon requests that developers only use the information for Associates-site development, and that they restrain queries to once per day per query.

Recent Articles on SOAP (Enrique - 08:22, 20 Oct 2002)

I'll just post these articles:

http://www.joelonsoftware.com/news/20020425.html

http://www.prescod.net/rest/security.html

Re: Amazon goes REST, Google goes SOAP (garym - 22:13, 18 Apr 2002)

Arbitrarily complex objects? Sure thing, only I'd use POST instead. How? Just do a GET request for http://www.google.com/search?q=jsx

Re: Amazon goes REST, Google goes SOAP (Thomas Hurst - 16:34, 18 Apr 2002)

> Now pass a complex object via a GET-based query and rebuild it in a generic automated fashion the other side.

Now find a good reason for doing this on what's effectively an XML output format for an otherwise normal HTTP query.

Or do you think all HTTP clients should be using SOAP for everything, hence totally castrating the powerful caching and filtering mechanisms HTTP supports?

Re: Amazon goes REST, Google goes SOAP (Guy Murphy - 14:19, 18 Apr 2002)

Now pass a complex object via a GET-based query and rebuild it in a generic automated fashion the other side.

> Re: Amazon goes REST, Google goes SOAP (tes - 07:08, 19 Apr 2002)
  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
Protocols
XML