Title: Introduction to Web Services
1Session 1
- Introduction to Web Services
2Objectives
- Discuss distributed computing
- Explain Web services and their characteristics
- Discuss the generic architecture of Web services
- Describe the life cycle of a Web service
- Identify the requirements for a Web service
- Explain the working of a Web service
- Discuss the advantages and disadvantages of Web
services
3Component Architecture
User submits parameters
Method 1
Appropriate Method called
Application
Method 2
Returns the result
4Computing Over the Years (1)
Application
Database
Stand-alone Computers
5Computing Over the Years (2)
6Distributed Computing
Component C
Component D
Component B
Component E
Component F Linux OS
Component A Windows OS
Smart terminals
7Distributed Component Architectures
- Three main Distributed Component Architectures
CORBA Developed by OMG
DCOM Developed by Microsoft
RMI Developed by SUN and uses CORBA for
Heavy-Duty Distributed Systems
8Inter-Module Communication
Inter-Module communication needs
1. Set of rules for communication
2. Standard Language for communication
3. Interfaces for the modules
9Web-based Applications
- Must be simple, self explanatory and easy to use
Services Offered
e-mail, browsing, searching the net, chat
applications
Devices Used to Access the Web
10Web Services
- Web Services Internet-based modular applications
Network
Web Service
Network may be LAN, WAN, MAN, or the Internet
11Web Services Solutions
Two of the most popular Web Services Solutions
SUNTM OPEN NET ENVIRONMENT (SUN ONE)
12Web Service An Example
Another Web Service
Loan Application Using Web Service
EMI Calculator Web Service
13Characteristics of Web Services
Should be registered
Accessed over the Web
Supported by loosely coupled applications
Have a service interface
Integrated Just In Time
Use standard Web protocols
Uses XML
14Important Components
Service Provider
Publish
Bind
Service Broker
Service Requestor
Service Registry
Find
15Web Services Generic Architecture
16Life Cycle
6. Unpublish the Web service when not needed
5. Invoke the Web service
4. Search for the Web service
3. Publish the Web service on the Internet or
intranet
2. Define service interface and invocation
methods for the Web service
1. Create a Web service
17Requirements for a Web Service
- XML Represents data in a standard format
- SOAP Common, extensible, message format
- WSDL Common, extensible, service description
language - DISCO Defines the format in which data is
stored - UDDI Maintains registries storing information
about service providers and their
services
18Working of a Web Service
Service Description
Get Type info (XML Schema)
Parameters
Soap Protocol XML over HTTP
Return Value
Web Server (With Web Service)
Client Application
19Accessing Web Services over HTTP
HTTP GET operation
HTTP POST operation
SOAP
20Advantages of Web Services
- Cross-business integration
- Improved efficiency
- Closer customer relationships
- Facilitates just-in-time integration
- Reduces complexity
- Legacy applications
21Constraints
- Businesses not willing to expose the
functionality - The only technology that forms the base is XML,
which means you cannot do without XML - The cost involved is very high
22Summary
- Web Services are self-contained, self-describing,
modular applications that can be published,
located and invoked across the Web. - The service interface in a Web Service helps the
Web Service to be called by any other application
program or another Web Service. - A Web Service should be registered in a service
registry to be accessed by other programs. - Web Services use the standard Web protocols to
communicate unlike COM, RMI, JINI, or CORBA. - XML messages are used to interchange information
between the service and the application program. - A service provider along with a service registry,
a service broker and a service requestor form the
important participants in a Web Service. - A Web Service architecture primarily consists of
the following layers - Data store
- Data access
- Web Service logic
- Web Service logic facade
- Listener layer