SOAP:
- Simple Object Access Protocol(SOAP)
- SOAP return complete object
- XML based protocol
- Use WSDL file for communication
REST:
- Representational state transfer(REST)
- Lightweight because it returns only the changed state not the complete object.
- State of the object is returned
- Use XML or JSON format
- Transfer is over HTTP only
- Easy to call from JavaScript
For detailed information follow this link:
https://xperiencepartage.wordpress.com/2019/01/17/soap-vs-rest-api
Leave a comment