What is the difference between SOAP and REST ?

                  SOAP                    REST
It is a protocol. It is an architectural style.
SOAP- Simple Object Access Protocol. REST- Representational State Transfer.
It can’t use REST because it is a protocol. It can use SOAP because it is a concept and can use any protocol like HTTP, SOAP.
It uses service interfaces to expose the business logic. It uses URI to expose business logic.
JAX-WS is the java API For SOAP web services. JAX-RS is the java API For RESTful web services.
It defines standards to be strictly followed. It does not define too many standards like SOAP.
It defines its own security. REST web services inherit security measures form the underlying transport.
It is less preferred than REST. It is more preferred than SOAP.
It requires more resource and bandwidth than REST It requires less resource and bandwidth.
It permits XML data format only. It permits different data formats such as HTML, XML, Plain text, JSON, etc.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like

What is Grid system ?

It is a structure comprising a series of vertical and horizontal lines which intersect and used to arrange content. Is a way of providing a system that designers can work with…
View Answer

What is Semantic HTML ?

It is essential to understand the meaning of words during communication in any language. It becomes more critical and provides more semantic elements which make it easy to understand the…
View Answer

What is Flexbox ?

It is a one-dimensional layout model that has efficient and flexible layouts with distributed spaces among items to control their alignment structure in CSS . It is a layout model…
View Answer