Ans: 1. SOAP stands for Simple Object Access protocol whereas REST stands for Representational State Transfer.
2. REST has SSL and HTTPS for security, on the other hand SOAP has SSL and WS security due to which in the cases like Bank account password, Card number etc. SOAP is preferred over REST.
SOAP allows only XML format REST allows other format as well e.g. JSON, XML.
4.SOAP requires more bandwidth REST requires less bandwidth.
5. Uses the envelope type of messages where message details are secured, REST uses kind of postcard where URI exposes the business logic.
What is difference between SOAP and REST?
Working Code Asked question August 21, 2024