Lect01 - Introduction To Web Services
Lect01 - Introduction To Web Services
JB DB Application
Clients JB Client
Checking
Accounts
Web Server
NCB ATM
Application NCB DB
Web Server
Two Banks Example (Using Other Bank’s ATM)
JB ATM
JB DB Application
Clients
Checking
JB Client
Accounts
Web Server
NCB ATM
Application NCB DB
Web Server
Two Banks Example
Using Other Bank’s ATM (indirect connection)
JB ATM
JB DB Application
Clients NCB Client
Checking
Accounts
Web Server
NCB ATM
Application NCB DB
Clients
Checking
Accounts
Web Server
UDDI Registry XML Document (WSDL)
Return Type
Address4| WSDL4 (XML)
End Point URL
work? WSDL
ABC Java app.
CPP app (Client)
SOAP
REQUEST CalService Class
STUB/PROXY HTTP
int result=o.add(10,10); Public add(int i,int j)
{ return i+j }
SOAP Skeleton
RESPONSE
SERVER
How Web Services Work? cont.
• A client application sends a request to a web service.
• The web service receives the request and processes it.
• The web service then sends a response back to the client application.
• The client application receives the response and processes it.
Advantages of Web Services
• Web services exchange data in XML or JSON format which are very
lightweight and universally supported
• In web services also data exchange happened under HTTP which is a
reliable, established and secure protocol.
• SOAP protocol is XML based messaging protocol which is standard as
well as cross platform.
• We can publish our web services very easily using UDDI.
• New Language called Web Service Description Language is used to
describe behavior of web services which contain the structure of
input request and output response.
Web Services Standards
• XML (Extensible Markup Language): XML is a markup language used
to describe data in a structured format. It is widely used in web
services to exchange data between different systems.
• SOAP (Simple Object Access Protocol): SOAP is a messaging
protocol used to exchange structured information between different
applications. It uses XML as its message format and is often used in
enterprise-level web services.
• WSDL (Web Services Description Language): WSDL is an XML-based
language used to describe the functionality of a web service. It
provides a description of the available operations, the input and
output parameters, and the communication protocol used.
Web Services Standards cont.
• UDDI (Universal Description, Discovery and Integration): UDDI is a
platform-independent, XML-based registry that provides a way for
businesses to publish and discover web services. It allows businesses to
advertise their services and for other businesses to discover and use them.
• REST (Representational State Transfer): REST is a software architecture for
creating web services. It uses HTTP as its communication protocol and is
often used for web applications that require high scalability, flexibility, and
performance.
• JSON (JavaScript Object Notation): JSON is a lightweight data interchange
format that is easy for humans to read and write, and easy for machines to
parse and generate. It is often used in RESTful web services.
Types of Web Services
• There Mainly two types of web services:
• SOAP web service
• Rest Web Service
Key topics to be covered
• WSDL (Web Services Description Language)
• SOAP (Simple Object Access Protocol)
• UDDI Registries
• XML
• Using NetBeans to create and consume web services.
• REST Architecture
• SOAP vs. REST
Questions and Discussion
• If you have any questions or would like to
discuss web services, please feel free to ask.
I would be happy to help.