Classification of Web Services and its merits and demerits
Web Service - 2 types
- SOAP web service
- RESTful web service
Advantages of SOAP -
- WS Security: SOAP defines its own security known as WS Security.
- Language and Platform independent: SOAP web services can be written in any programming language and executed in any platform.
Disadvantages of SOAP -
- Slow: SOAP uses XML format that must be parsed to be read. It defines many standards that must be followed while developing the SOAP applications. So it is slow and consumes more bandwidth and resource.
- WSDL dependent: SOAP uses WSDL and doesn't have any other mechanism to discover the service.
RESTful Web Services -
- REpresentational State Transfer.
- It is an architectural style not a protocol.
Advantages of RESTful -
- Fast: RESTful Web Services are fast because there is no strict specification like SOAP. It consumes less bandwidth and resource.
- Language and Platform independent: RESTful web services can be written in any programming language and executed in any platform.
- Can use SOAP: RESTful web services can use SOAP web services as the implementation.
- Permits different data format: RESTful web service permits different data format such as Plain Text, HTML, XML and JSON.
No comments:
Post a Comment