Thursday, May 19, 2016

Interview Question Series - REST vs SOAP

Difference between SOAP (Simple Object Access Protocol) and REST (Representational State Transfer)

      SOAP is standard communication protocol (with some set of rules) and its XML based message exchange. SOAP can use http and SMTP both. In SOAP, the WSDL (web service description language) contain the description for set of rules defined for messages,  binding and operations. for complex Service /application program SOAP is useful and better.

      REST  is based on pure Http, doesn't contain any additional messaging layer, resources can be access from unique URI. It works with standard http operations (methods/Verbs) GET,PUT,DELETE,POST and HEAD. for simple CRUD (create,retrieve, update and Delete) operations the REST is better.



No comments:

Post a Comment