Whats New in WSDL 2.0 Arthur Ryman IBM Rational Software ryman@ca.ibm.com.

Презентация:



Advertisements
Похожие презентации
WEB SERVICES Mr. P. VASANTH SENA. W EB SERVICES The world before Situation Problems Solutions Motiv. for Web Services Probs. with Curr. sols. Web Services.
Advertisements

© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Complex MPLS VPNs Introducing Central Services VPNs.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Applying Route-Maps as BGP Filters.
Copyright 2003 CCNA 4 Chapter 11 Scaling IP Addresses By Your Name.
© 2002 IBM Corporation Confidential | Date | Other Information, if necessary Developing Web Services with Eclipse Arthur Ryman Web Service.
© 2009 Avaya Inc. All rights reserved.1 Chapter Four, UMS Web Services Module Three – Exchange 2007.
CSTA is a kind of standard communication protocol used between PBX and computer that is famous in Europe. What is CSTA ? Control Requests Event Notifications.
© 2006 Cisco Systems, Inc. All rights reserved. CVOICE v VoIP Signaling and Call Control Configuring SIP.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v MPLS Concepts Introducing MPLS Labels and Label Stacks.
© 2009 Avaya Inc. All rights reserved.1 Chapter Two, Voic Pro Components Module Two – Actions, Variables & Conditions.
© 2005 Cisco Systems, Inc. All rights reserved.INTRO v Building a Simple Serial Network Understanding the OSI Model.
© 2006 Cisco Systems, Inc. All rights reserved. BSCI v Implementing BGP Explaining BGP Concepts and Terminology.
© 2006 IBM Corporation Made available under the EPL v WebSphere Services Technical Conference world class skill building and technical enablement.
Module 1, Part 1: Introduction and The VMP Slide 1 of 22 © WHO – EDM Validation Supplementary Training Modules on Good Manufacturing Practices.
© 2009 Avaya Inc. All rights reserved.1 Chapter Four, UMS Web Services Module One – UMS.
© 2005 Cisco Systems, Inc. All rights reserved.INTRO v Managing Your Network Environment Managing Cisco Devices.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to Multiple Service.
© 2006 Cisco Systems, Inc. All rights reserved. SND v Configuring a Cisco IOS Firewall Configuring a Cisco IOS Firewall with the Cisco SDM Wizard.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Complex MPLS VPNs Using Advanced VRF Import and Export Features.
Operator Overloading Customised behaviour of operators Chapter: 08 Lecture: 26 & 27 Date:
Транксрипт:

Whats New in WSDL 2.0 Arthur Ryman IBM Rational Software

Abstract The W3C Web Services Description Working Group is currently developing the Web Services Description Language (WSDL) 2.0 Specification. WSDL 2.0 has many new features such as interface inheritance, extensible message exchange patterns, and an abstract component model. This talk gives an overview of WSDL 2.0, explains how it differs from WSDL 1.1, and discusses Open Source implementation plans in the Eclipse Web Tools Platform Project and the Apache Woden Project. This is an Intermediate Level talk. It assumes familiarity with Web Services, XML Schema 1.0 and WSDL 1.1.

My Background Software Development Manager at IBM Toronto Lab Focus on Web Service, XML, and J2EE Tools Rational Application Developer V6 WebSphere Studio Application Developer V4, V5 VisualAge for Java V1, V2, V3 Leader of Web Standard Tools subproject, Eclipse Web Tools Platform project Editor of W3C WSDL 2.0 Core Language specification Committer on Apache Woden Project

Topics Introduction Overview Component Model Call for Participation

Introduction

The Role of WSDL Web Services have emerged as the industry standard for application integration over the Internet (and the intranet) WSDL is a central development artifact WSDL defines the contract between a service and its clients WSDL drives code generation of client proxies and server skeletons WSDL gets generated, edited, validated, tested, and viewed

W3C Web Service Description Working Group Formed to evolve the WSDL 1.1 Note into a W3C Recommendation Support for SOAP 1.2 Incorporate clarifications and best practices as reflected in the WS-I Basic Profile 1.0 Provide an extensible basis so new requirements can be supported through other specifications Originally called WSDL 1.2, but later renamed to WSDL 2.0 due to the many changes from WSDL 1.1

Deliverables Available at Requirements Usage Scenarios Part 0 – Primer Part 1 – Core Language XML Schema Part 2 – Adjuncts XML Schema for SOAP 1.2 Binding XML Schema for HTTP Binding Assigning Media Types to Binary Data in XML SOAP 1.1 Binding Note RDF Mapping Test Suite

Part 1 – Core Language The core language is described in terms of an abstract Component Model The concrete language is specified as an XML Infoset and has a normative XML schema The mapping from the XML Infoset to the Component Model is specified The English description is complemented with a non-normative formal specification language, Z Notation, for use by implementers

Part 2 – Adjuncts Message Exchange Patterns In-Only, Robust-In-Only Out-Only, Robust-Out-Only In-Out, In-Optional-Out Out-In, Out-Optional-In Operation Styles RPC IRI Multipart Operation Safety

Part 2 – Adjuncts – Binding Extensions SOAP 1.2 Binding Any protocol More detail for HTTP HTTP Binding Motivated by REST requirements

Test Suite Publicly available in W3C CVS repository: Standard test bucket for use by implementation Helpful source of examples All WSDL 2.0 documents in test suite are XML Schema valid Provides good and bad WSDL 2.0 documents Coverage goals: Good test cases cover all elements and attributes Bad test cases cover all error conditions If you have a question about the specification, write a test case and contribute it to

New and Noteworthy Some name changes: Old:,, New:,, An may extend one or more other Motivated by Grid No more / construct Messages are abstractly described by XML schema A implements an Each of the binds the same Use of element for transmitting Web service URLs Document composition via and Abstract Component Model

New and Noteworthy (Continued) has been promoted to be a sibling of Enables reuse of faults across operations and via interface extension SOAP Encoding is deprecated Messages must have accurate XML schemas New extensibility mechanisms Features and Properties Message Exchange Patterns New IANA media type: application/wsdl+xml New fragment syntax for components URI References for WSDL components Enables other specifications to reference parts of a WSDL document

Extensibility WSDL 2.0 has an open content model Other specifications may add elements and attributes from other namespaces e.g. this is how bindings are handled XML Schema is the favored type system Others, e.g. DTD, RELAXNG, are allowed and allows required protocol features to be specified and values set for them e.g. security Other specifications may extend the component model Other specifications may define new message exchange patterns

Example WSDL 2.0 Document

WSDL 2.0 XSD

WSDL 2.0 XML Infoset Model

and WSDL 2.0 documents can be modularized and composed Modeled on and from XML Schema brings in components from the same namespace attribute (xs:anyURI) Is transitive brings in components from other namespace attribute (xs:anyURI) attribute (xs:anyURI) Is non-transitive

Defines types used by messages XML Schema is primary type system defines schema components inline refers to schema components defined elsewhere Other XML type systems MAY be used, e.g. DTD RELAXNG Schematron Non-XML type systems are allowed

Defines and supports a Message Exchange Pattern (e.g. Request-Response) Contains zero or more,,, An interface MAY extend zero or more other interfaces Diamond inheritance allowed No operator overriding allowed

Associates a concrete protocol and format with an operation Structural similar to but includes binding details via extension elements and attributes Bindings for SOAP 1.2 and HTTP are defined Binding for SOAP 1.1 will be a W3C Note Default bindings can be defined Independent of any interface Reusable in service endpoints

Defines a set of Web service endpoints Implements a single Each supports a for the same interface attribute (xs:anyURI) ServiceType complex type MAY be used to transmit Web service references in messages Optionally ServiceType to have a fixed value Global wdsli:wsdlLocation attribute MAY be used to provide the location of a WSDL 2.0 namespace Modelled on global xsi:schemaLocation attribute

Component Model

WSDL 2.0 is specified in terms of an abstract component model Components have properties which may be references to other components Similar to XML Infoset and XML Schema component models Like an object model, but just models state Uses mathematical structures such as sets Simplifies statement of constraints Improves precision Combines multiple WSDL and XSD documents Maps to XML syntax

Component Types Container Description Types Element Declaration, Type Definition Interfaces Interface, Interface Fault, Interface Operation, Interface Message Reference, Interface Fault Reference Bindings Binding, Binding Fault, Binding Operation, Binding Message Reference, Binding Fault Reference Services Service, Endpoint Features and Properties Feature, Property Extensions Typically binding extensions, e.g. SOAP 1.2, HTTP

Description Container for type system components and top-level WSDL components Maps to {interfaces} OPTIONAL. A set of Interface components.Interface {bindings} OPTIONAL. A set of Binding components.Binding {services} OPTIONAL. A set of Service components.Service {element declarations} OPTIONAL. A set of Element Declaration components.Element Declaration {type definitions} OPTIONAL. A set of Type Definition components.Type Definition

Interface Describes the operations of a service Maps to {name} REQUIRED. An xs:QName. {extended interfaces} OPTIONAL. A set of declared Interface components which this interface extends.Interface {interface faults} OPTIONAL. The set of declared Interface Fault components. The namespace name of the {name} property of each Interface Fault in this set MUST be the same as the namespace name of the {name} property of this Interface component.Interface Faultname Interface FaultnameInterface {interface operations} OPTIONAL. A set of declared Interface Operation components. The namespace name of the {name} property of each Interface Operation in this set MUST be the same as the namespace name of the {name} property of this Interface component.Interface OperationnameInterface OperationnameInterface

Interface Fault Describes the faults that may be thrown by the service. Maps to {name} REQUIRED. An xs:QName. {element declaration} OPTIONAL. A reference to a Element Declaration component in the {element declarations} property of the Description component. This element represents the content or payload of the fault.Element Declarationelement declarationsDescription

Interface Operation Describes the operations of a service Maps to {name} REQUIRED. An xs:QName. {message exchange pattern} REQUIRED. An xs:anyURI identifying the message exchange pattern used by the operation. This xs:anyURI MUST be an absolute IRI (see [IETF RFC 3987]).IETF RFC 3987 {interface message references} OPTIONAL. A set of Interface Message Reference components for the ordinary messages the operation accepts or sends.Interface Message Reference {interface fault references} OPTIONAL. A set of Interface Fault Reference components for the fault messages the operation accepts or sends.Interface Fault Reference {style} OPTIONAL. A set of xs:anyURIs identifying the rules that were used to construct the {element declaration} properties of {interface message references}. (See Operation Style.) These xs:anyURIs MUST be absolute IRIs (see [IETF RFC 3986]).element declarationinterface message references Operation StyleIETF RFC 3986

Interface Message Reference Describes the direction and format of a message in an operation Maps to ( | ) {message label} REQUIRED. An xs:NCName. This property identifies the role this message plays in the {message exchange pattern} of the Interface Operation component this message is contained within. The value of this property MUST match the name of a placeholder message defined by the message exchange pattern.message exchange pattern Interface Operation {direction} REQUIRED. An xs:token with one of the values in or out, indicating whether the message is coming to the service or going from the service, respectively. The direction MUST be the same as the direction of the message identified by the {message label} property in the {message exchange pattern} of the Interface Operation component this is contained within.message labelmessage exchange patternInterface Operation {message content model} REQUIRED. An xs:token with one of the values #any, #none, #other, or #element. {element declaration} OPTIONAL. A reference to an XML element declaration in the {element declarations} property of the Description component. This element represents the content or payload of the message.element declarations

Interface Fault Reference Describes a fault thrown by an operation Maps to ( | ) {interface fault} REQUIRED. An Interface Fault component in the {interface faults} property of the [parent] Interface Operation component's [parent] Interface component, or an Interface component that it directly or indirectly extends.Interface Faultinterface faultsInterface OperationInterface {message label} REQUIRED. An xs:NCName. This property identifies the message this fault relates to among those defined in the {message exchange pattern} property of the Interface Operation component it is contained within.message exchange patternInterface Operation {direction} REQUIRED. A xs:token with one of the values in or out, indicating whether the fault is coming to the service or going from the service, respectively.

Interface Fault Reference Interface Fault Interface Operation Interface parent interface fault all interface faults parent Interface Fault Reference Consistency

Binding Describes the concrete protocol and format of the messages. Maps to {name} REQUIRED. An xs:QName. {interface} OPTIONAL. An Interface component indicating the interface for which binding information is being specified.Interface {type} REQUIRED. An xs:anyURI. This xs:anyURI MUST be an absolute IRI as defined by [IETF RFC 3987]. The value of this IRI indicates what kind of concrete binding details are contained within this Binding component. Specifications (such as [WSDL 2.0 Adjuncts] ) that define such concrete binding details MUST specify appropriate values for this property. The value of this property MAY be the namespace name of the extension elements or attributes which define those concrete binding details.IETF RFC 3987 BindingWSDL 2.0 Adjuncts {binding faults} OPTIONAL. A set of Binding Fault components.Binding Fault {binding operations} OPTIONAL. A set of Binding Operation components.Binding Operation

Binding Fault Describes binding details for a fault that may be thrown by a service Maps to {interface fault} REQUIRED. An Interface Fault component in the {interface faults} property of the Interface component identified by the {interface} property of the parent Binding component, or an Interface component that that Interface component directly or indirectly extends. This is the Interface Fault component for which binding information is being specified.Interface Faultinterface faults InterfaceinterfaceBinding Interface Interface Fault

Binding Fault Interface Fault BindingInterface parent interface fault all interface faults interface Binding Fault Consistency

Binding Operation Describes binding details for an operation of a service Maps to {interface operation} REQUIRED. An Interface Operation component in the {interface operations} property of the Interface component identified by the {interface} property of the [parent] Binding component, or an Interface component that that Interface component directly or indirectly extends. This is the Interface Operation component for which binding information is being specified.interface operationsInterfaceinterfaceBindingInterfaceInterface Operation {binding message references} OPTIONAL. A set of Binding Message Reference components. Binding Message Reference {binding fault references} OPTIONAL. A set of Binding Fault Reference components.Binding Fault Reference

Binding Operation Interface Operation BindingInterface parent interface operation all interface operations interface Binding Operation Consistency

Binding Message Reference Describes binding details for a message used by an operation of a service Maps to ( | ) {interface message reference} REQUIRED. An Interface Message Reference component among those in the {interface message references} property of the Interface Operation component being bound by the containing Binding Operation component. Interface Message Referenceinterface message referencesInterface OperationBinding Operation

Binding Message Reference Interface Message Reference Binding Operation Interface Operation parent interface message reference parent interface operation Binding Message Reference Consistency

Binding Fault Reference Describes binding details for a fault that is thrown by an operation of a service Maps to ( | ) {interface fault reference} REQUIRED. An Interface Fault Reference component among those in the {interface fault references} property of the Interface Operation component being bound by the parent Binding Operation component. Interface Fault Referenceinterface fault references Interface OperationBinding Operation

Binding Fault Reference Interface Fault Reference Binding Operation Interface Operation parent interface fault reference parent interface operation Binding Fault Reference Consistency

Service Describes the endpoints for accessing the service. Maps to {name} REQUIRED. An xs:QName. {interface} REQUIRED. An Interface component.Interface {endpoints} REQUIRED. A non-empty set of Endpoint components.Endpoint

Describes an endpoint that can used to access a service using some binding Maps to {name} REQUIRED. An xs:NCName. {binding} REQUIRED. A Binding component.Binding {address} OPTIONAL. An xs:anyURI. This xs:anyURI MUST be an absolute IRI as defined by [IETF RFC 3987]. If present, the value of this attribute represents the network address at which the service indicated by the parent Service component's {interface} property is offered via the binding referred to by the {binding} property.IETF RFC 3987Serviceinterfacebinding

EndpointBinding ServiceInterface parent binding interface Endpoint Consistency

Call for Participation

Schedule Second Last Call June 2005 (August 3 actual, ending September 19) Candidate Recommendation October 2005 Proposed Recommendation Early 2006

Next Steps Entering W3C Candidate Recommendation phase Please review the spec! Please contribute test cases! Two interoperable implementations are required for each feature Please contribute to the Apache and Eclipse implementations!

Open Source WSDL 2.0 Projects Apache Woden Eclipse Web Tools Platform

Apache Woden See: Follow-on to IBM WSDL4J and JSR 110: JWSDL Currently an incubator project Deliverables: WSDL 2.0 API, model, parser, and validator Will be used by Axis2 for code generators: WSDL2Java Java2WSDL

Eclipse Web Tools Project See: Web Standard Tools subproject Integrate Woden into IDE Upgrade all tools to support WSDL 2.0: WSDL Validator WSDL Editor WSDL Explorer

Review the WSDL 2.0 Spec!

Contribute to the WSDL 2.0 Test Suite!

Contribute to the Apache Woden Project!

Contribute to the Eclipse WTP Project!