Web services concepts, protocols and development

19
Web Services: Concepts, Protocols and development Prepared By: Mehta Ishani

description

Web services concepts, protocols and development

Transcript of Web services concepts, protocols and development

Page 1: Web services concepts, protocols and development

Web Services: Concepts, Protocols and developmentPrepared By:Mehta Ishani

Page 2: Web services concepts, protocols and development

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

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

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

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

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

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

Web services modelRegistry(UDDI)

Service Requestor

Service Provider

Find Publish

Bind

(SOAP)

(SOAP)

(WSDL)

Page 9: Web services concepts, protocols and development

Web services stack

Page 10: Web services concepts, protocols and development

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

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

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

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

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

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

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

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

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

THANK YOU