This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Services and the fly likes SOAP vs REST Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP vs REST" Watch "SOAP vs REST" New topic


Julia Chapman

Joined: Aug 13, 2006
Posts: 2
Hello ppl,

I am having a hard time deciding which Web Service to implement for my coming project. SOAP or REST Can you people please throw some thoughts and explain the difference between how SOAP and REST APIs work so I can come to some conclusions. I am totall new to Web Services and just started to read about them. Any help is kindly appreciated.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
You may find this discussion to be helpful.
Julia Chapman

Joined: Aug 13, 2006
Posts: 2
Thanks William,

That helped me read more about REST, but what I was actually looking for is some behavioral differences in the performances of SOAP and REST. If some one could still point on to that it would be great.

Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
This topic What is REST web service ? which framework i need to learn it has some links to other resources.

As mentioned in that thread REST isn't an API its an architectural style. That means that there is very little tool support for the development of REST-style web services. REST is potentially more performant than SOAP based web services as the features of the HTTP infrastructure are used directly. For SOAP, HTTP is only one of many possible transports (though its the one that is predominantly used). SOAP can accommodate many additional features like message level security, multi-node processing, etc. but this extensibility comes at the price of additional overhead.
Watsh Rajneesh
Ranch Hand

Joined: Apr 17, 2006
Posts: 110
You may also want to read this.

SCJP 5.0 (90%), SCDJWS 1.4 (88%), SCWCD 1.4 (82%), SCBCD 1.3 (85%)
Sumit Amar
Ranch Hand

Joined: Jun 08, 2002
Posts: 180
REpresentational State Transfer, is a methodology to perform web application "actions". these actions could be GET, PUT, POST, DELETE, HEAD etc. In your web application if you're looking to gather some data back from a web resource, you'd want to use GET request. REST provides CRUD (create update delete) functionality through form actions. For intstance in order to add a record, you'd use PUT request and POST for update, DELETE for removing (or signaling to remove). It's much lightweight and easier to implement REST than SOAP request. It's less organised too, you might want to check AJAXPATTERNS.ORG website to learn a bit more about this methodology/pattern.

SCJP, SCWCD, OCA, OCP-DBA 9i, <a href="" target="_blank" rel="nofollow">BCIP</a>, MCP, MCAD, MCSD.NET, MCDBA, MCTS (SQL 05), MCITP (DBD, DBA)
I agree. Here's the link:
subject: SOAP vs REST
It's not a secret anymore!