my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes Atom protocol as an alternative to SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Atom protocol as an alternative to SOAP" Watch "Atom protocol as an alternative to SOAP" New topic
Author

Atom protocol as an alternative to SOAP

David M. Johnson
author
Greenhorn

Joined: Aug 31, 2006
Posts: 10
Lots of folks are using REST or more simply plain old XML (POX) over HTTP as an alternative to the traditional WS-* web services stack (SOAP, WSDL, UDDI, etc.).

If you're considering REST, then you should take a look at Atom: the format and the protocol. The format can be used to model collections of any type of data (HTML, XHTML, XML or *any* content-type). And the protocol supports create, retrieve, update and delete (CRUD) on collections. You can do a lot with collections and CRUD. For example, Google is using Atom protocol as the basis for GData and modeling calendar events as Atom entries.

And even if you don't use the protocol for your REST based web service, you can learn some REST best practices by reading the spec (it's actually pretty short and easy to understand). Here's a link:
http://bitworking.org/projects/atom/draft-ietf-atompub-protocol-10.html

And of course, the obligatory plug: I cover Atom protocol in Chapter 10 of RSS and Atom in Action and the examples includes a complete Atom protocol client and server.

- Dave
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Christian Gross, author of Ajax Patterns and Best Practices, was talking about REST during his book promotion.
He said that Ajax in combination with REST is the SOA killer application.
Moreover, I've read that 85% of Amazon's WebServices usage was via REST interfaces.
That REST is starting to make my ears ring
I've never used it yet, but I'd like to try and see what it really does.
Do you think that playing with Atom protocol would be a good introduction to REST ?

Chapter 10 in your book, about Atom, is only 20 pages.
Do you think this is enough to discuss such a new topic ? (it sounds new to me at least)
And could you tell us which examples of your book are using Atom ?

Thank you.


[My Blog]
All roads lead to JavaRanch
David M. Johnson
author
Greenhorn

Joined: Aug 31, 2006
Posts: 10
Originally posted by Satou kurinosuke:
Do you think that playing with Atom protocol would be a good introduction to REST ?

Chapter 10 in your book, about Atom, is only 20 pages.
Do you think this is enough to discuss such a new topic ? (it sounds new to me at least)
And could you tell us which examples of your book are using Atom ?


I do think looking at Atom protocol is a good way to understand REST, but I don't really spend a lot of time explaining what REST is. The Atom protocol chapter focuses pretty exclusively on Atom protocol and how to interact with an Atom protocol server from Java.

- Dave
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Atom protocol as an alternative to SOAP