You are on page 1of 14

Introduction to Web Services

Mansvi Mehta
Talk title date 1
The concept of web services

 Web services is a messaging system which


allows communication between objects.

 Messages can be synchronous or


asynchronous.

Talk title date 2


The concept of web services
 This system is loosely coupled
(i.e. Services should not be dependent on
each other).

 The programmatic interfaces made


available are referred to as Web
services.

Talk title date 3


Web Services
 Web services are
 Applications that enable remote procedure calls
over a network or the Internet often using XML
and HTTP.
 Benefits
 This allows us to hide the details of how a
service is implemented.
 It is largely irrelevant to the client whether the
service is developed with Java or ASP.NET or if
it is running on Windows, Linux or any other
platform.

Talk title date 4


Architecture

Talk title date 5


Web services architecture
Consumer

CONSUMER (CLIENT) PROVIDER (SERVER)


Transport protocol
(e.g.HTTP)

INTERNET
(TCP/IP)

Transport protocol
(e.g.HTTP)

Talk title date 6


Web services architecture
Consumer

CONSUMER (CLIENT) PROVIDER (SERVER)

HTTP
SOAP

envelope

Talk title date 7


Web services architecture
Consumer

CONSUMER (CLIENT) PROVIDER (SERVER)

HTTP
SOAP

rpcrouter
envelope

Talk title date 8


Web services architecture
Provider

CONSUMER (CLIENT) PROVIDER (SERVER)

Container
(e.g. Tomcat)
Servlet

Talk title date 9


Web services architecture
Provider

CONSUMER (CLIENT) PROVIDER (SERVER)

Container
(e.g. Tomcat)
Web server Servlet
(e.g. Apache)

Talk title date 10


Web services architecture
Message transport

CONSUMER (CLIENT) PROVIDER (SERVER)

HTTP Container
SOAP (eg. Tomcat)
Servlet
envelope

Talk title date 11


Web services stack

Application Application (servlet)

rpcrouter Web server

SOAP SOAP

HTTP HTTP

TCP/IP TCP/IP

Infrastructure Infrastructure
(Data link) (Data link)

Talk title date 12


Business mail analogy
 The SOAP envelope is analogous to a business letter with
an address within a distant organisation. This gives the
information needed to get it from the sender’s building to
the recipient’s building.

 The transport protocol is analogous to the carrier used for


transport between buildings. (e.g. FedEx.)

 The web server and container act like the local services for
the recipient which place the message in his/her pigeon-
hole.

Talk title date 13


Thank You

Talk title date 14

You might also like