2. REST use HTTP Commands – Such as GET, PUT, POST, and DELETE – to communicate content between clients and servers, and
it uses HTTP for transport. In contrast, SOAP separates the content (data for transmission) and the protocol(SOAP), resulting
in complex and proprietary mechanisms to connect components.
How
communication
happens
How message
is structured
SOAP REST
Service description in Web Service
Definition Language (WSDL)
Services Provider Services Consumer
Directory HTTP packet
HTTP Command
GET, PUT, POST & DELETE
RESTXML Payload
Data Representation
HTTP client HTTP server
SSL & HTTP authorization
REST-aware application
REST-aware client
HTTP
REST
packet
GET PUT
POST DELETE
Requests the
representation of a
source data
Update the
representation of a
specified data
Submits data back
to source data
Deletes the
specified source of
data
SOAP Header
SOAP Body
SOAP
envelope
Message
Contents
Message
Processing
Instructions
Message
Specific
Data
Data for
Trans-
mission
Application specification
Source internet