File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "REST vs SOAP" Watch "REST vs SOAP" New topic


Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80

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?

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: 430

There are a lot of comparisions on the internet about those two (e.g.
Maybe also interesting for you:
Mourouganandame Arunachalam
Ranch Hand

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

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

Joined: Mar 22, 2000
Posts: 13036
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.

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:
subject: REST vs SOAP
jQuery in Action, 3rd edition