Difference between SOAP and REST for Web services

The differences between SOAP (Simple Object Access Protocol) and REST (Representational State Transfer) are given below:
RESTSOAP
1. REST simple 1. SOAP complex
2. REST is focused on accessing named resources 2. SOAP is focused on accessing named operations
3. REST can be used with XML, JSON or whatever necessary 3. SOAP is all XML based
4. REST faster than SOAP 4. SOAP slower REST
5. REST data can be cached 5. SOAP data can not be cached
6. REST does not support WS-Security 6. SOAP supports WS-Security
7. REST does not support ACID compliant 7. SOAP supports ACID compliant
8. REST does standard reliable messaging system 8. SOAP has standard reliable messaging system
9. REST is used mostly for HTTP 9. SOAP can be used for HTTP, SMTP, FTP

Comments