667481 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

XML & Web services XML & Web services XML & Web services Messages: 2 Messages: 2 Messages: 2 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

SOAP vs REST

Posted by: Raees Uzhunnan on September 24, 2007 DIGG
SOAP vs REST

Are there any guidelines or best practices to determine which protocol to use to implement my webservice?

Raees Uzhunnan
  Message #240426 Post reply Post reply Post reply Go to top Go to top Go to top

Re: SOAP vs REST

Posted by: John Maughan on October 01, 2007 in response to Message #240141
In Summary:

REST is an approach, SOAP is a protocol. It is more appropriate to compare SOAP and POX. This said a comparison of these payload protocols is not very enlightening. You need to focus on the big architectural questions not the wire format. Key questions are a) whether there is a requirement for broad system-2-system level interoperability. b) Whether there are requirements for enterprise-level QOS.

In Detail:

Don Box does a good job of summarising the top-level issues @ http://www.pluralsight.com/blogs/dbox/archive/2006/02/17/18869.aspx. As Don points out the term REST is hugely overloaded and encompasses Resource-centric architecture, the use of POX, how interfaces are published etc. For the purpose of this response I am assuming you want to compare the relative merits/demerits of SOAP vs POX.

I would say that you dont want to get into the detail of the wire-level protocols. In general POX is a lighter and often more usable approach whereas SOAP is more powerful and more interoperable.

For me the tipping point in your decision centers around the extent to which the service you are offering is a publically exposed service. Put another way - the extent to which the service needs to be interopate with and be accessible from other development environments. As the good Mr Box implies - the broader the audience for your service the more flexible an approach you are going to have to take.

If the service that you are offering needs to be accessed by a variety of clients using technologies that you have no control over then SOAP may be the lowest common denominator because this approach is supported in most dev environments. REST may be preferable if you are implementing Web Services simply as a way of exposing components across a firewall and you have control of the clients that will be used to access the service.

There is also the issue of qualities of service. If you have requirements for multi-hop security then SOAP w/WS-Security is a good interoperable (if heavyweight) solution. If your service needs to participate in a distributed transaction then you may need something like SOAP w/WS-RM.

You should note that there are also a class of problems where the integration requirements are so broad that POX & SOAP access to services is not enough. I have blogged on this previously at Caped Crusading: SaaS = Silo'ed Applications as Services?

John

  Message #243471 Post reply Post reply Post reply Go to top Go to top Go to top

Re: SOAP vs REST

Posted by: Angel Stewart on December 07, 2007 in response to Message #240141
Thanks for the info


Leather Sofas

Recent active threads Recent active threads Recent active threads More More More
IPhone App Development with JSF
Web as the Platform: Day 1 at the Ajax Experience
Need help for login page using java servlet
Stateful Webservice in java
SAP Asks Sun/Oracle to Let Java Be Free
Registration for TheServerSide Java Symposium Las Vegas now open
Use Sun SPOTs as your build canary
AspectJ In Action Published; Sample Chapters Posted on TSS
WSO2 goes all RESTy
Return to previous view after user action
More active threads »
Top posters of the weekTop posters of the weekTop posters of the week
This list contains the members who have made the most posts in all forums over the last 7 days:
  1. Dan Evans
  2. James Watson
  3. William Louth
  4. sara foster
  5. Chief Thrall
Hot threads Hot threads Hot threads More hot threads More hot threads More hot threads

Object pooling is now a serious performance loss

Brian Goetz continues to lift the lid and peak into the inner workings of Java in Java Urban Performance Legends. In this article he exposes the fallacy behind some of the more common performance myths found in the annals of the JVM.
(93 comments, last posted February 06, 2009)

Beyond Java

Bruce Tate, author of Better, Faster Lighter Java and Bitter EJB has come out with a new book called Beyond Java. Bruce has an epiphany about the future of software development. Does it include Java?
(770 comments, last posted September 23, 2009)

Three forms of AJAX: solid, liquid and gas.

Looks like today AJAX concept have several interpretations. We can distinguish different approaches of AJAX integration. Can they co-exist within the same application? Can we talk about layered AJAX integration?
(68 comments, last posted May 08, 2008)

Design-Time API Promises to make Java more like VB

Artima has published a short article describing the Design-Time API for JavaBeans, which was recently approved as JSR 273. This API promises to bring VB-like ease to Java development, but may face a cultural bias among Java developers who tend to think more in terms of class libraries than components.
(225 comments, last posted November 19, 2009)

Will Sun be that target of a management buyout?

There is plenty of speculation today regarding a potential buyout of Sun Microsystems by Scott McNealy and Silver Lake Partners. How would privatization of Sun affect Java?
(16 comments, last posted May 15, 2009)
More hot threads »

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy      Powered by JIVE
Site Map