Difference between SOAP and REST

SOAP ( Simple Object Access Protocol )

  1. SOAP can run on TCP/UDP/SMTP/HTTP.
  2. SOAP read and write request response messages in XML format.
  3. SOAP is more secure as it has its own security and well defined standards.
  4. SOAP uses SOAP-UI as client tools for testing.
REST (Representational State Transfer)
  1. REST uses underlying HTTP protocols.
  2. REST can read and write request response messages in JSON/XML/Plain HTML.
  3. REST is stateless.
  4. REST services are cache able. 
  5. REST has light weight client tools or plugins that can easily be integrated inside browser.

Comments

Popular posts from this blog

SQL Interview Questions and Answers

Generic Interface and Factory Pattern in C#

How to get device info IMEI programmatically in xamarin android