Differentiate between SOAP and REST?

Answer

SOAP REST
SOAP - Simple Object Access Protocol  REST - Representational State Transfer
SOAP is a protocol used to implement web services. REST is an architectural design pattern for developing web services
SOAP cannot use REST as it is a protocol. REST architecture can have SOAP protocol as part of the implementation.
SOAP specifies standards that are meant to be followed strictly. REST defines standards but they need not be strictly followed.
SOAP client is more tightly coupled to the server which is similar to desktop applications having strict contracts. The REST client is more flexible like a browser and does not depend on how the server is developed unless it follows the protocols required for establishing communication.
SOAP supports only XML transmission between the client and the server. REST supports data of multiple formats like XML, JSON, MIME, Text, etc.
SOAP reads are not cacheable. REST read requests can be cached.
SOAP uses service interfaces for exposing the resource logic. REST uses URI to expose the resource logic.

 

All api Questions

Ask your interview questions on api

Write Your comment or Questions if you want the answers on api from api Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---