Notes
REST is not a protocol, it is an architectural style
SOAP is a protocol
REST uses URL to expose the web service
SOAP uses WSDL class to expose the web service
REST allows different data formats: XML, JSON, plain text…
SOAP Allows Only XML format
REST requires less bandwidth than SOAP
SOAP requires more bandwidth than REST
RESTful services inherits security measure from underlying transport layer SOAP uses its own security measures.
SOAP is based on standardized Web service security. Thus, better secured compared to REST. SOAP is more reliable in terms of security than REST
RESTful service can use SOAP web services as implementation
SOAP cannot use RESTful services because SOAP is a protocol.
REST uses JSON. JSON is easier to parse than XML. Thus, REST uses less memory and CPU
SOAP uses only XML. XML is harder to parse. SOAP uses more memory and CPU
REST is best for social media based Applications
SOAP is best for Enterprise web applications, banking transactions…