REST VS SOAP Web Service

RESTful Web Service

  1. REST stands for Represntational State Transfer (REST).
  2. RESTful web service can return the response in various format e.g. XML ,JSON and HTML.
  3. Request processing  of  RESTful web service is much faster than processing request in SOAP web service.because in case of RESTful web service you need to less parsing.
  4. RESTFul messages consume less bandwidth than SOAP messages for the same type of operation.
  5. JAX-RS is the java API for RESTful web services.
  6. REST is more preferred than SOAP.

 

SOAP Web Service

  1. SOAP Stands for Simple Object Access Protocol (SOAP).
  2. SOAP  web service will always return the response in XML format.
  3. Request processing  of  SOAP web service is slower than processing request in RESTful web service due to parsing.
  4. SOAP messages consume more bandwidth than RESTFul messages for the same type of operation.
  5. JAX-WS is the java API for SOAP web services.
  6. SOAP is less preferred than REST.

 

 

Leave a comment