UNIT5 - REST Introduction
UNIT5 - REST Introduction
5. JAX-WS is the java API for SOAP JAX-RS is the java API for RESTful web
web services. services.
6. SOAP defines standards to be
REST does not define too much
strictly followed. standards like SOAP.
7. SOAP requires more bandwidth
REST requires less bandwidth and
and resources than REST. resources than SOAP.
8. SOAP defines its own security.
RESTful web services inherits security
measures from the underlying
transport.
9. SOAP permits XML data format REST permits different data format
only such as Plain text, HTML, XML, JSON
etc.
10. SOAP is less preferred than REST more preferred than SOAP
REST
SOAP vs REST based Web Services
even though REST is more popular and preferable for Web apps and Web based
services, SOAP is still useful and important for some enterprise solutions and highly
reliable applications (e.g. bank clients, etc.)
REST Web Services are:
Modern
Light weight
Use a lot of concepts behind HTTP
When to choose REST?
•REST should be chosen when you have to develop a highly secure and
complex API, which supports different protocols.
•Although SOAP may be a good choice, REST may be better when you have to
develop lightweight APIs with great performance and support for CURD
operations.