Web Service WSDL

21
Web Services - WSDL Dr. Schahram Dustdar

Transcript of Web Service WSDL

Page 1: Web Service WSDL

Web Services - WSDLDr. Schahram Dustdar

Page 2: Web Service WSDL

Overview

What is WSDL?WSDL alternatives?WSDL discussion: pro‘s & con‘sWSDL structure

Page 3: Web Service WSDL

What is WSDL?

Web Services Description LanguageAn XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented informationBindings are described in conjunction with SOAP 1.1, HTTP GET/POST and MIME data and protocol formatsWSDL documents provide

documentation for distributed systems to communicateA recipe for automating the details involved in applications communication

WSDL documents don‘t provideSecurity informationQoS information

Page 4: Web Service WSDL

What is WSDL?

WSDL 1.1 submitted to W3CDescribes

TypesMessagesPort Types (Groups of operations)

Bindings (port type associated with protocol)Ports (associations of bindings with network address)Services (groups of ports)

Page 5: Web Service WSDL

WSDL alternatives?

e-speak (Hewlett Packard)Rosetta-netRDF

Page 6: Web Service WSDL

WSDL pro‘s

Fits with SOAP (but not tied to it)Flexible and layered

Page 7: Web Service WSDL

Example:WSDL & WebSphere Application Server

Page 8: Web Service WSDL

WSDL Structure

WSDL identifies 4 elements of a service description

Reuseable DescriptionsType/Message DefinitionsAbstract Interface DescriptionsReuseable Protocol Bindings

Service DeploymentEndpoints of Deployed Services

Page 9: Web Service WSDL

WSDL Dokumentaufbau

Page 10: Web Service WSDL

Message Patterns - Overview

Page 11: Web Service WSDL

Message Patterns One-Way

Analog zu Fire- and- ForgetDie Message wird vesendet; es wird keine Antwort erwartet.

Request/ResponseAnalog zu RPCDer Sender sendet eine Message der Receiver sendet eine Antwort darauf.

Solicit Response (noch offen)Ein Request ohne Daten für eine Response.Das Inverse einer One- Way Message

Notification (noch offen)Mehrere Empfänger für eine Message (broadcast ähnlich)Analog zu Publish/ Subscribe

Page 12: Web Service WSDL

Message Patterns 1/2

Page 13: Web Service WSDL

Message Patterns 2/2

Page 14: Web Service WSDL

Scenario

Page 15: Web Service WSDL

WSDL tags

Page 16: Web Service WSDL

WSDL Structure

Abstract Description

ConcreteDescription

Page 17: Web Service WSDL

Simple Web Service example

Page 18: Web Service WSDL

WSDL for example 1/3

Page 19: Web Service WSDL

WSDL for example 2/3

Page 20: Web Service WSDL

WSDL for example 3/3

Page 21: Web Service WSDL

Reuseable WSDL Specs as tModels (WSDL und UDDI)

UDDI tModels provide a base for technical service descripionsWSDL provides an XML schema for defining reuseable technical specificationsA tModel that references a WSDL provides a mechanism (via UDDI) by which compliant services can be located and invoked