0% found this document useful (0 votes)
21 views

Lect01 - Introduction To Web Services

This document provides an introduction to web services. It defines web services as software that allows different applications to communicate over a network using standard protocols like HTTP and XML. The document uses an example of two banks allowing their customers to use each other's ATMs to illustrate how web services work. It discusses the advantages of web services and standards like XML, SOAP, WSDL and UDDI. Finally, it outlines key topics that will be covered related to creating and consuming web services.

Uploaded by

Mohammed Saeid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Lect01 - Introduction To Web Services

This document provides an introduction to web services. It defines web services as software that allows different applications to communicate over a network using standard protocols like HTTP and XML. The document uses an example of two banks allowing their customers to use each other's ATMs to illustrate how web services work. It discusses the advantages of web services and standards like XML, SOAP, WSDL and UDDI. Finally, it outlines key topics that will be covered related to creating and consuming web services.

Uploaded by

Mohammed Saeid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Introduction to Web Services

Prepared by: Asmaa Elassar


Contents
• What are Web Services?
• Two Banks Example
• How Web Services Work
• Advantages of Web Services
• Web Services Standards
• Examples of Web Services Applications
What are Web Services?
Definition of Web Services
• Web services are a type of software
architecture that allows different
applications to communicate with each
other over the internet or other
networks.
• They use standard protocols like HTTP
and XML to exchange data and provide a
standardized way for different systems to
interact with one another.
What are Web Services? cont.
• Web services can be used to share data, functionality, and services
across different platforms, programming languages, and operating
systems. They have become a popular technology for building
distributed systems and integrating disparate applications and services.
Two Bank Example
JB ATM


JB DB Application

Clients JB Client
Checking
Accounts

Web Server

NCB ATM


Application NCB DB

NCB Client Clients


Checking
Accounts

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

NCB Client Clients


Checking
Accounts

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)

Address1| WSDL1 (XML) Service Name

Address2| WSDL2 (XML) Method Name

Address3| WSDL3 (XML) Parameter: DT

Return Type
Address4| WSDL4 (XML)
End Point URL

How web services


Address5| WSDL5 (XML)

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.

You might also like