What is difference between SOAP and REST

Posted by Prasham under SharePoint on 8/11/2010 | Views : 13416 | Status : [Member] | Replies : 1
What is difference between SOAP and REST?

Do you the scenario when to use which Service either based on SOAP or REST?


Thanks and Best Regards


Posted by: Raja on: 8/13/2010 [Member] Starter

REST is the architecture

REST reuses http security system, goes always over http, and try to reuse the http methods making an equivalence between your semantic operation and http methods , it is not based upon "message" concepts.

SOAP is the protocol that is used to transfer data from one place to another

SOAP is good for standards (that means good interoperability). You can use it over SMTP, JMS and HTTP. You define your own operation with a name with meaning (AddCustomer vs HTTP POST in URL/customer means add a customer). SOAP is based upon "message" concept, SOAP has its own Security approach (WS-Security). SOAP messages can go through intermediate services (for some logic o tecnical reason), and without re-encrypting the message.

A good discussion between these two are here http://www.theserverside.com/discussions/thread.tss?thread_id=50335

In fact above two paragraphs are copied from above location.


Raja, USA

Prasham, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response