It provides a brief description of Web services. It also includes types of web services, why we use web services, SOAP web services, RESTful web services, and the difference between SOAP and RESTful web services.
3. Introduction
Web service is a language independent
way of communication between client
application and server application. We can
exchange information between different
applications and platforms through web
services.
4. Low cost of communication
Interoperability
Ease of Integration
Loosely coupled
Deployability
Why we use web services
5. There are mainly two types of web services:
SOAP web services.
RESTful Web Services.
Types
6. SOAP web service
SOAP is an abbreviation of Simple Object
Access Protocol. SOAP is an XML-based
communication protocol which allows
Client application and server application to
exchange their information through XML
messages.
7. RESTful web service
REST is an abbreviation of
Representational State Transfer.
It is stateless client-server architecture,
not a protocol. In the REST architecture
style, client and server exchange
representation of resource via
standardized protocols.
8. SOAP Vs RESTful
Java provides JAX-WS API for SOAP
web services while Java provides JAX-
RS API for RESTful web services.
SOAP allows only XML data format
while REST allows different data
formats like HTML, XML, JSON, and
normal text.