You are on page 1of 9

PROTOCOLS

HTTP TCP/IP SMTP UDP

HTTPS FTP POP3 SSH


PROTOCOLS (cont.)
HTTP

TCP connection

CLIENT SERVER
Request methods Status codes

HTTP verb CRUD Responsibility Code range


POST Create
Informational
GET Read 1xx
responses
PUT Update/
replace Success 2xx
Update/ Redirection 3xx
PATCH
modify
DELETE Delete Client errors 4xx
Server errors 5xx
(Asynchronous JavaScript And XML)

 Better + more interactive websites


 Read data from a web server - after the page
has loaded
 Update a web page without reloading the page
 Send data to a web server - in the background
 Transports data as plain text, XML or JSON
SOAP(cont.)
(Simple Object Access Protocol)

• XML-based Protocol
• Provides exchange of structured info
• Extensible
• Neutral
• Independent
SOAP(cont.)
Specification

• Independent communication of language and


platforms.
• Protocol concepts
• Data encapsulation concepts
• Mess. Sender and Receiver concepts
REST
(Representational State Transfer)

• Providing standards between computer systems on the web


• Ignoring details of component implementation and protocol
syntax
• Separation of Client and Server
• Defined by a set of constrains
• Statelessness
• Simplicity of interfaces
SOAP vs REST
Client/ Server

• A SOAP client tightly coupled to the server.


• Rigid contact between client and server, and everything is expected to break
if either side changes anything.

• A REST client is a generic client


• Least Parsing -> Faster
• A client can enter a REST service with zero knowledge of the API, except for
the entry point and the media type

You might also like