Difference between SOAP and REST Web services
Difference between SOAP and REST Web services:
SOAP Web Service:
- Simple Object Access Protocol
- XML Based.
- Follows JAX-WS (JAX Web services) specifications.
- Two types of SOAP’s are RPC Style and Document Style.
- WSDL file should be shared from service side to generate the client executable code
- SOAP protocol helps to transfer the data between client and server.
- Input data should also be passed through XML only.
REST Web Service:
- REpresentational State Transfer
- Follows JAX-RS (JAX Restful Web Services) specifications.
- Two types of REST are Jersey and Resteasy.
- Proper documentation is enough to make the client to understand and hit the correct URI(Uniform Resource Identifiers).
- HTTP protocol helps to transfer the data between client and server.
- Input data can also be shared via http url parameters.
Feel free to comment if something is missed out in the above difference between soap and rest list in below comments area.
443 total views, 1 views today