SlideShare a Scribd company logo
1 of 25
Design Principles for the Web Connectivity
Web Communication
protocols
Introduction for web
Connectivity
Web Connectivity
Message
Communication
protocols
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• Communication gateway connects two
application layers, one at sender and the
other at receiver.
• Enables use of two different protocols,
one at sender and the other at receiver
ends.
• Communication between web server
using the TCP/IP protocol conversion
gateway and IoT devices.
• Communication between the devices
using CoAP client and server using
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• An application uses a protocol.
• The protocols for Internet are HTTP,
FTP, SMTP, POP3, TELNET and several
other protocols.
• HTTP is most widely used application
layer protocol for communication over
TCP/IP.
• An HTTP client connects to an HTTP
server using TCP and then the client
sends a resource after establishing an
HTTP connection.
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• An HTTP transfer is stateless (data
transfer is an independent request).
• Therefore, header overhead information
and meta-data of previous state need to
be present with each HTTP request.
• Metadata is data which describes the
data for interpretation in future.
Ways of transferring both ways at the same
instant are:
• Multiple TCP connection
• HTTP requests at short, regular intervals
so that responses are nearly in real time
• Polling at successive intervals
• HTTP long polling means API sends a
request to the server, which keeps the
request open for a set period
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• Simple Object Access (SOAP) is a W3C
approved open-source protocol.
• SOAP is a protocol for exchange of
objects between applications using XML.
• It is also a protocol for access to a web
service. SOAP specifies the formats and
way of communicating the messages.
• SOAP functions connect the GUI
applications to web servers using the
standards of the Internet—HTTP and
XML.
• Microsoft’s .NET architecture supports
SOAP for Internet application
development.
• SOAP uses a body element after the
specifications in an envelope.
• The body element contains the SOAP
message intended for ultimate endpoint
of the message.
Web Connectivity
• A SOAP request could be an HTTP
POST, or an HTTP GET request.
• The HTTP POST request specifies at least
two HTTP headers: content type and
content length.
• A SOAP method uses HTTP
request/response after the HTTP binding
with the SOAP.
• The request and response complies with
the SOAP encoding rules.
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• W3C Technical Architecture Group
(TAG) developed the Representational
State Transfer (REST) architectural style.
• REST is a simpler alternative for SOAP
and Web Services Description Language
(WSDL).
• REST style web resources and Resource-
Oriented Architecture (ROA) have
increasingly replacing SOAP.
• The architectural properties of REST are
realized by applying specific interaction
constraints to data elements,
components, connectors and objects.
• REST software architecture style
provisions for the use of specific
practices, such as client-server mode of
communication and layered system
architectural approach
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• When all interactions used in the
applications conform fully to the REST
constraints then these are called RESTful.
• RESTful APIs comply with these
constraints and thus conform to the REST
architectural style.
• Web services with RESTful APIs adhere
to the REST architectural constraints.
• REST architectural style can be used for
HTTP access by GET, POST, PUT and
DELETE methods for resources and
building web services.
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
Standard HTTP methods are GET, PUT,
POST and DELETE. HTTP based RESTful
APIs use the following:
• URIs/URLs,
• REST-based web objects communicate
typically, but not always, over the HTTP.
• RESTful HTTP system feature is that
communication is over the HTTP and use
verbs (commands) same as in HTTP,
namely GET, POST, PUT and DELETE.
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
REST interfaces usually involve resource
repositories with identifiers. For example, /
Device Network/device or /Temperature
App, which can be operated upon using
standard verbs as follows:
• GET command is to get a list of the URIs
for resource repository of the resources.
• POST command creates a new entry in
the resource repository for the resources.
• PUT command which replaces the entire
resource repository with another
resource repository or replaces the
resource item of the repository.
• DELETE command from client retrieves
web objects and sends data to remote
servers
Web Connectivity
1. Communication Gateway
2. HTTP Request and Response Method
• Data Exchanges Between HTTP Web-
Objects
3. SOAP
4. REST and RESTful HTTP Web Applications
• RESTful
• RESTful HTTP APIs
• RESTful HTTP Verbs
5. WebSocket
Web Connectivity
• Instant messaging and many applications
need bidirectional data exchanges over
the same connection. WebSocket enables
bidirectional communication over a
single TCP connection.
• WSAPI attributes are URL, protocol,
ready state, buffered amount and are
extendable.
• The API functions are send (frame) and
close (socket).
• The Web Sockets enable easier usage of
existing infrastructure, authentication,
filtering and proxies.
• Number of popular browsers support the
protocol.
Web Connectivity
Web Connectivity
Features of WebSocket are:
• Small header size
• No new connection which will need a
new header and thus no new latency
period
• WSAPIs, because of very low connection
latencies, facilitate live content and the
creation of real-time games.
• Protocol is an independent TCP-based
protocol.
• Protocol uses default port 80 for regular
• Protocol is intended to be compatible
with HTTP-based server-side software
and intermediaries, so that a single port
can be used by both HTTP clients talking
to that server and WebSocket clients
talking to that server.
• Protocol specifies six frame types and
leaves ten reserved for future use.
• Clients and servers exchange the
‘messages’ after a successful handshake.
Web Communication
protocols
Introduction for web
Connectivity
Web Connectivity
Message
Communication
protocols

More Related Content

What's hot

Mobile transportlayer
Mobile transportlayerMobile transportlayer
Mobile transportlayer
Rahul Hada
 

What's hot (20)

Communication technologies
Communication technologiesCommunication technologies
Communication technologies
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
IOT and its communication models and protocols.pdf
IOT and its communication models and protocols.pdfIOT and its communication models and protocols.pdf
IOT and its communication models and protocols.pdf
 
Overview of IoT (JNTUK - UNIT 1)
Overview of IoT (JNTUK - UNIT 1)Overview of IoT (JNTUK - UNIT 1)
Overview of IoT (JNTUK - UNIT 1)
 
M2M Communication
M2M CommunicationM2M Communication
M2M Communication
 
Ppt 3 - IOT logic design
Ppt   3 - IOT logic designPpt   3 - IOT logic design
Ppt 3 - IOT logic design
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
UNIT-5 IoT Reference Architecture.pdf
UNIT-5 IoT Reference Architecture.pdfUNIT-5 IoT Reference Architecture.pdf
UNIT-5 IoT Reference Architecture.pdf
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Mobile transport layer - traditional TCP
Mobile transport layer - traditional TCPMobile transport layer - traditional TCP
Mobile transport layer - traditional TCP
 
1. Introduction to IoT
1. Introduction to IoT1. Introduction to IoT
1. Introduction to IoT
 
IPv4
IPv4IPv4
IPv4
 
Architecture of Mobile Computing
Architecture of Mobile ComputingArchitecture of Mobile Computing
Architecture of Mobile Computing
 
Snmp
SnmpSnmp
Snmp
 
Technology Behind IoT (JNTUK - Unit - 1)
Technology Behind IoT (JNTUK - Unit - 1)Technology Behind IoT (JNTUK - Unit - 1)
Technology Behind IoT (JNTUK - Unit - 1)
 
Mobile transportlayer
Mobile transportlayerMobile transportlayer
Mobile transportlayer
 
MQTT - MQ Telemetry Transport for Message Queueing
MQTT - MQ Telemetry Transport for Message QueueingMQTT - MQ Telemetry Transport for Message Queueing
MQTT - MQ Telemetry Transport for Message Queueing
 
Unit 4
Unit 4Unit 4
Unit 4
 
M2M vs IoT: The Key Differences and Similarities
M2M vs IoT: The Key Differences and SimilaritiesM2M vs IoT: The Key Differences and Similarities
M2M vs IoT: The Key Differences and Similarities
 
Wot
WotWot
Wot
 

Similar to web connectivity in IoT

REST API Recommendations
REST API RecommendationsREST API Recommendations
REST API Recommendations
Jeelani Shaik
 
REST APIs for the Internet of Things
REST APIs for the Internet of ThingsREST APIs for the Internet of Things
REST APIs for the Internet of Things
Michael Koster
 
REST APIs for an Internet of Things
REST APIs for an Internet of ThingsREST APIs for an Internet of Things
REST APIs for an Internet of Things
Michael Koster
 

Similar to web connectivity in IoT (20)

Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
 
Mini-Training: Let's have a rest
Mini-Training: Let's have a restMini-Training: Let's have a rest
Mini-Training: Let's have a rest
 
Rest WebAPI with OData
Rest WebAPI with ODataRest WebAPI with OData
Rest WebAPI with OData
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
 
What's New in Rails 5
What's New in Rails 5What's New in Rails 5
What's New in Rails 5
 
Overview of java web services
Overview of java web servicesOverview of java web services
Overview of java web services
 
RESTful web
RESTful webRESTful web
RESTful web
 
REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.ppt
 
Design patternsforiot
Design patternsforiotDesign patternsforiot
Design patternsforiot
 
RESTful APIs
RESTful APIsRESTful APIs
RESTful APIs
 
REST API Recommendations
REST API RecommendationsREST API Recommendations
REST API Recommendations
 
Rest APIs Training
Rest APIs TrainingRest APIs Training
Rest APIs Training
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207
 
Rest
RestRest
Rest
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application Technologies
 
Http protocol
Http protocolHttp protocol
Http protocol
 
REST APIs for the Internet of Things
REST APIs for the Internet of ThingsREST APIs for the Internet of Things
REST APIs for the Internet of Things
 
REST APIs for an Internet of Things
REST APIs for an Internet of ThingsREST APIs for an Internet of Things
REST APIs for an Internet of Things
 

More from FabMinds

More from FabMinds (18)

Python Programming | JNTUA | UNIT 3 | Lists |
Python Programming | JNTUA | UNIT 3 | Lists | Python Programming | JNTUA | UNIT 3 | Lists |
Python Programming | JNTUA | UNIT 3 | Lists |
 
Python Programming | JNTUA | UNIT 3 | Strings |
Python Programming | JNTUA | UNIT 3 | Strings | Python Programming | JNTUA | UNIT 3 | Strings |
Python Programming | JNTUA | UNIT 3 | Strings |
 
Python Programming | JNTUA | UNIT 3 | Updating Variables & Iteration |
Python Programming | JNTUA | UNIT 3 | Updating Variables & Iteration | Python Programming | JNTUA | UNIT 3 | Updating Variables & Iteration |
Python Programming | JNTUA | UNIT 3 | Updating Variables & Iteration |
 
Python Programming | JNTUA | UNIT 2 | Case Study |
Python Programming | JNTUA | UNIT 2 | Case Study | Python Programming | JNTUA | UNIT 2 | Case Study |
Python Programming | JNTUA | UNIT 2 | Case Study |
 
Python Programming | JNTUA | UNIT 2 | Fruitful Functions |
Python Programming | JNTUA | UNIT 2 | Fruitful Functions | Python Programming | JNTUA | UNIT 2 | Fruitful Functions |
Python Programming | JNTUA | UNIT 2 | Fruitful Functions |
 
Python Programming | JNTUA | UNIT 2 | Conditionals and Recursion |
Python Programming | JNTUA | UNIT 2 | Conditionals and Recursion | Python Programming | JNTUA | UNIT 2 | Conditionals and Recursion |
Python Programming | JNTUA | UNIT 2 | Conditionals and Recursion |
 
Internet connectivity
Internet connectivityInternet connectivity
Internet connectivity
 
Introduction for internet connectivity (IoT)
 Introduction for internet connectivity (IoT) Introduction for internet connectivity (IoT)
Introduction for internet connectivity (IoT)
 
introduction for web connectivity (IoT)
introduction for web connectivity (IoT)introduction for web connectivity (IoT)
introduction for web connectivity (IoT)
 
Python Introduction | JNTUA | R19 | UNIT 1 | Functions
Python Introduction | JNTUA | R19 | UNIT 1 | FunctionsPython Introduction | JNTUA | R19 | UNIT 1 | Functions
Python Introduction | JNTUA | R19 | UNIT 1 | Functions
 
Python Introduction | JNTUA | R19 | UNIT 1 | Functions
Python Introduction | JNTUA | R19 | UNIT 1 | FunctionsPython Introduction | JNTUA | R19 | UNIT 1 | Functions
Python Introduction | JNTUA | R19 | UNIT 1 | Functions
 
Python Programming | JNTUK | UNIT 2 | Lecture 6 & 7 | Conditional & Control S...
Python Programming | JNTUK | UNIT 2 | Lecture 6 & 7 | Conditional & Control S...Python Programming | JNTUK | UNIT 2 | Lecture 6 & 7 | Conditional & Control S...
Python Programming | JNTUK | UNIT 2 | Lecture 6 & 7 | Conditional & Control S...
 
Python Programming | JNTUK | UNIT 1 | Lecture 5
Python Programming | JNTUK | UNIT 1 | Lecture 5Python Programming | JNTUK | UNIT 1 | Lecture 5
Python Programming | JNTUK | UNIT 1 | Lecture 5
 
Python Programming | JNTUK | UNIT 1 | Lecture 4
Python Programming | JNTUK | UNIT 1 | Lecture 4Python Programming | JNTUK | UNIT 1 | Lecture 4
Python Programming | JNTUK | UNIT 1 | Lecture 4
 
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
 
Python Programming | JNTUK | UNIT 1 | Lecture 3
Python Programming | JNTUK | UNIT 1 | Lecture 3Python Programming | JNTUK | UNIT 1 | Lecture 3
Python Programming | JNTUK | UNIT 1 | Lecture 3
 
Python variable assignments | JNTUA | R19 | UNIT 1
Python variable assignments | JNTUA | R19 | UNIT 1 Python variable assignments | JNTUA | R19 | UNIT 1
Python variable assignments | JNTUA | R19 | UNIT 1
 
Python Introduction | JNTUA | R19 | UNIT 1
Python Introduction | JNTUA | R19 | UNIT 1 Python Introduction | JNTUA | R19 | UNIT 1
Python Introduction | JNTUA | R19 | UNIT 1
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

web connectivity in IoT

  • 1.
  • 2. Design Principles for the Web Connectivity Web Communication protocols Introduction for web Connectivity Web Connectivity Message Communication protocols
  • 3. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 4. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 5. Web Connectivity • Communication gateway connects two application layers, one at sender and the other at receiver. • Enables use of two different protocols, one at sender and the other at receiver ends. • Communication between web server using the TCP/IP protocol conversion gateway and IoT devices. • Communication between the devices using CoAP client and server using
  • 6. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 7. Web Connectivity • An application uses a protocol. • The protocols for Internet are HTTP, FTP, SMTP, POP3, TELNET and several other protocols. • HTTP is most widely used application layer protocol for communication over TCP/IP. • An HTTP client connects to an HTTP server using TCP and then the client sends a resource after establishing an HTTP connection.
  • 8. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 9. Web Connectivity • An HTTP transfer is stateless (data transfer is an independent request). • Therefore, header overhead information and meta-data of previous state need to be present with each HTTP request. • Metadata is data which describes the data for interpretation in future. Ways of transferring both ways at the same instant are: • Multiple TCP connection • HTTP requests at short, regular intervals so that responses are nearly in real time • Polling at successive intervals • HTTP long polling means API sends a request to the server, which keeps the request open for a set period
  • 10. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 11. Web Connectivity • Simple Object Access (SOAP) is a W3C approved open-source protocol. • SOAP is a protocol for exchange of objects between applications using XML. • It is also a protocol for access to a web service. SOAP specifies the formats and way of communicating the messages. • SOAP functions connect the GUI applications to web servers using the standards of the Internet—HTTP and XML. • Microsoft’s .NET architecture supports SOAP for Internet application development. • SOAP uses a body element after the specifications in an envelope. • The body element contains the SOAP message intended for ultimate endpoint of the message.
  • 12. Web Connectivity • A SOAP request could be an HTTP POST, or an HTTP GET request. • The HTTP POST request specifies at least two HTTP headers: content type and content length. • A SOAP method uses HTTP request/response after the HTTP binding with the SOAP. • The request and response complies with the SOAP encoding rules.
  • 13. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 14. Web Connectivity • W3C Technical Architecture Group (TAG) developed the Representational State Transfer (REST) architectural style. • REST is a simpler alternative for SOAP and Web Services Description Language (WSDL). • REST style web resources and Resource- Oriented Architecture (ROA) have increasingly replacing SOAP. • The architectural properties of REST are realized by applying specific interaction constraints to data elements, components, connectors and objects. • REST software architecture style provisions for the use of specific practices, such as client-server mode of communication and layered system architectural approach
  • 15. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 16. Web Connectivity • When all interactions used in the applications conform fully to the REST constraints then these are called RESTful. • RESTful APIs comply with these constraints and thus conform to the REST architectural style. • Web services with RESTful APIs adhere to the REST architectural constraints. • REST architectural style can be used for HTTP access by GET, POST, PUT and DELETE methods for resources and building web services.
  • 17. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 18. Web Connectivity Standard HTTP methods are GET, PUT, POST and DELETE. HTTP based RESTful APIs use the following: • URIs/URLs, • REST-based web objects communicate typically, but not always, over the HTTP. • RESTful HTTP system feature is that communication is over the HTTP and use verbs (commands) same as in HTTP, namely GET, POST, PUT and DELETE.
  • 19. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 20. Web Connectivity REST interfaces usually involve resource repositories with identifiers. For example, / Device Network/device or /Temperature App, which can be operated upon using standard verbs as follows: • GET command is to get a list of the URIs for resource repository of the resources. • POST command creates a new entry in the resource repository for the resources. • PUT command which replaces the entire resource repository with another resource repository or replaces the resource item of the repository. • DELETE command from client retrieves web objects and sends data to remote servers
  • 21. Web Connectivity 1. Communication Gateway 2. HTTP Request and Response Method • Data Exchanges Between HTTP Web- Objects 3. SOAP 4. REST and RESTful HTTP Web Applications • RESTful • RESTful HTTP APIs • RESTful HTTP Verbs 5. WebSocket
  • 22. Web Connectivity • Instant messaging and many applications need bidirectional data exchanges over the same connection. WebSocket enables bidirectional communication over a single TCP connection. • WSAPI attributes are URL, protocol, ready state, buffered amount and are extendable. • The API functions are send (frame) and close (socket). • The Web Sockets enable easier usage of existing infrastructure, authentication, filtering and proxies. • Number of popular browsers support the protocol.
  • 24. Web Connectivity Features of WebSocket are: • Small header size • No new connection which will need a new header and thus no new latency period • WSAPIs, because of very low connection latencies, facilitate live content and the creation of real-time games. • Protocol is an independent TCP-based protocol. • Protocol uses default port 80 for regular • Protocol is intended to be compatible with HTTP-based server-side software and intermediaries, so that a single port can be used by both HTTP clients talking to that server and WebSocket clients talking to that server. • Protocol specifies six frame types and leaves ten reserved for future use. • Clients and servers exchange the ‘messages’ after a successful handshake.
  • 25. Web Communication protocols Introduction for web Connectivity Web Connectivity Message Communication protocols