This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes REST vs SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "REST vs SOAP" Watch "REST vs SOAP" New topic
Author

REST vs SOAP

Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80
Follks,

when do we go for developing SOAP and RESTful webservices?

How do we decide whether to choose SOAP based or REST based web services?

What are the advantages we gain by choosing RESTful webservices over SOAP web services?

Could anyone answer me?

Thanks,
Arun Prasath
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
REST is infact lightweight SOAP.

If you need your apps to refrain from creating the overhead of soap envelope creation etc [read portable/mobile devices] you will have to resort to REST
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

There are a lot of comparisions on the internet about those two (e.g. http://www.devx.com/DevX/Article/8155).
Maybe also interesting for you:
http://www.se-radio.net/podcast/2008-05/episode-98-stefan-tilkov-rest
http://www.se-radio.net/podcast/2008-02/episode-85-web-services-olaf-zimmermann
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
Reading the below url may provide more useful info regarding REST.

http://en.wikipedia.org/wiki/Representational_State_Transfer


Mourougan
Open Source leads to Open Mind
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
REST is infact lightweight SOAP.


This is a very misleading statement. Thinking in REST terms is NOT a simplified version of SOAP.

REST is a design philosophy, SOAP is a protocol for messaging developed as an extension of XML-RPC.

The wikipedia article cited is a good start.

Bill
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Dawn Charangat wrote:REST is infact lightweight SOAP.

RESTful Web Services is lightweight, but no lightweight SOAP .


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: REST vs SOAP
 
Similar Threads
Difference between Rest and SOAP?
Part I - Links for 3.1 and 3.2
Unlocking Android : Is this a beginners book for learning Android
Spring in Action - web services
Web Services Help