SOAP is a standardized protocol with pre-defined rules to follow whereas REST has an architectural style with loose guidelines.
SOAP VS REST
Comparison Based on Approach
As a functional-driven approach, SOAP provides data as services, such as getUser, whereas REST is a data-driven approach, in which data is available as resources.
SOAPVSREST
Comparison Based on Security
SOAP comes with WS-security and SSL support, as well as ACID compliance, which is useful for transactions, while REST comes with HTTPS and SSL (Secure Sockets Layer).
SOAPVSREST
Comparison Based on Transfer Protocol
SOAP protocol supports HTTP, SMP, UDP, and other protocols, whereas the REST protocol only supports HTTPS.
SOAPVSREST
Comparison Based on Exposing Methods
SOAP protocol exposes supported methods and technical details through WSDL, whereas the REST protocol exposes methods through URIs, without providing any technical details.
SOAPVSREST
For More Information on The Differences Between SOAP and REST, click here.