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.

| See all 5 comments

Newest comments

Recent Articles on SOAP (Enrique - 08:22, 20 Oct 2002)
Re: Amazon goes REST, Google goes SOAP (tes - 07:08, 19 Apr 2002)
test
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 ...
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 ...
  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
Protocols
XML