Web services concepts, protocols and development
-
Upload
ishmecse13 -
Category
Engineering
-
view
195 -
download
4
description
Transcript of Web services concepts, protocols and development
![Page 1: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/1.jpg)
Web Services: Concepts, Protocols and developmentPrepared By:Mehta Ishani
![Page 2: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/2.jpg)
Outline
•What is a web service?•Why web service?•Web Services Model•Web Services Stack•What is UDDI?•What is WSDL?•What is SOAP?
![Page 3: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/3.jpg)
What is a web service?
•Application components accessible over internet
•Once deployed, can be used by other applications
•XML is the basis for Web services
![Page 4: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/4.jpg)
Standard definitions
•IBM ▫“A Web service is an interface that
describes a collection of operations that are network accessible through standardized XML messaging”
•Microsoft: XML Web Services
▫“.. provide a way to describe their interfaces in enough detail to allow a user to build a client application to talk to them”
![Page 5: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/5.jpg)
History
•Structured programming •Object-oriented programming•Service oriented programming Hewlett-Packard's e-Speak in 1999 was an
enabler for e-services.Microsoft introduced the name "web
services" in June 2000
![Page 6: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/6.jpg)
Why web services?
•Application and data integration(provides interoperability)
•Versatility(Any platform, Any Language)
•Code re-use(provides flexibility)
•Cost savings(Open Standards)
![Page 7: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/7.jpg)
How does it work?
The basic Web services platform is XML + HTTP.
•SOAP (Simple Object Access Protocol) •UDDI (Universal Description, Discovery
and Integration) •WSDL (Web Services Description
Language)
![Page 8: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/8.jpg)
Web services modelRegistry(UDDI)
Service Requestor
Service Provider
Find Publish
Bind
(SOAP)
(SOAP)
(WSDL)
![Page 9: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/9.jpg)
Web services stack
![Page 10: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/10.jpg)
What is UDDI?
•Universal Description, Discovery and Integration
•UDDI is a directory service where businesses can register and search for Web services.
•Sponsored by OASIS•Uses W3C and IETF Internet standards
such as XML, HTTP, and DNS protocols.
![Page 11: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/11.jpg)
What is UDDI?
•UDDI registry•Search for Web service to obtain WSDL
•For ex. Travel agency can use air line reservation interface
•UDDI Community
![Page 12: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/12.jpg)
What is WSDL?
•Web Services Description Language
•XML-based language for describing Web services and how to access them.
•WSDL is maintained by the W3C.
![Page 13: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/13.jpg)
Major elements
•Port type - describes the operations performed
•Port - specifies an address for a binding•Message – describes name and format of
message•Types - defines the data types•Binding - defines the communication
protocols•Service - specifies the address URL
![Page 14: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/14.jpg)
What is SOAP?
•Simple Object Access Protocol
•SOAP is a simple XML-based protocol that allows applications to exchange information over HTTP.
•SOAP will be developed as a W3C standard
![Page 15: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/15.jpg)
Why SOAP?
•RPC does not support HTTP
•compatibility and security problem, firewalls and proxy servers issues
•HTTP is supported by all Internet browsers and servers.
![Page 16: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/16.jpg)
Major elements
•Envelope –encloses the message itself.•Header (optional) – contains information
relevant to the message•Body – includes the message payload.•Fault (optional) – carries information
about a client or server error within a SOAP message.
![Page 17: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/17.jpg)
namespace
•default namespace for the SOAP envelope:
http://www.w3.org/2001/12/soap-envelope
•default namespace for SOAP encoding and data types is:
http://www.w3.org/2001/12/soap-encoding
![Page 18: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/18.jpg)
SOAP HTTP Binding
•HTTP + XML = SOAP
•A SOAP request could be an HTTP POST or an HTTP GET request.
•Contains two headers• Content-Type - defines the MIME type • Content-Length - number of bytes in the
body
![Page 19: Web services concepts, protocols and development](https://reader036.fdocuments.net/reader036/viewer/2022082809/556d0fb3d8b42ad34f8b4fd7/html5/thumbnails/19.jpg)
THANK YOU