SOAP(Simple Object Access Protocol)
- SOAP returns complete object.
- An XML based protocol.
- Use WSDL for communication between consumer and provider.
- Invokes services by calling RPC method.
- Transfer is over HTTP also use other protocols like SMTP, FTP etc.
- JavaScript can call SOAP but it is very difficult to implement.
REST (Representational State Transfer)
- REST returns the state of the object not the complete object.
- Use XML or JSON to send or receive data.
- Simply call services via URL path.
- Transfer is over HTTP only.
- Easy to call from JavaScript.
- Performance is better in comparison to SOAP.
Please share your feedback for the blog.
Leave a comment