W3C

2005-08-03 diff-marked version: Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language

W3C Working Draft 10 May 3 August 2005

This version:
<a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510"> http://www.w3.org/TR/2005/WD-wsdl20-20050510 http://www.w3.org/TR/2005/WD-wsdl20-20050803
Latest version:
http://www.w3.org/TR/wsdl20
Previous versions:
<a href= "http://www.w3.org/TR/2004/WD-wsdl20-20040803"> http://www.w3.org/TR/2004/WD-wsdl20-20040803 http://www.w3.org/TR/2005/WD-wsdl20-20050510
Editors:
Roberto Chinnici, Sun Microsystems
Jean-Jacques Moreau, Canon
Arthur Ryman, IBM
Sanjiva Weerawarana

This document is also available in these non-normative formats: XHTML with Z-notation Z Notation , <a href= "wsdl20.ps"> postscript PDF , <a href="wsdl20.pdf"> PDF with Z Notation ,PostScript , XML , and  plain text .


Abstract

This document describes the Web Services Description Language Version 2.0 (WSDL 2.0), an XML language for describing Web services. This specification defines the core language which can be used to describe Web services based on an abstract model of what the service offers. It also defines the conformance criteria for a conformant processor of documents in this language.

Status of this Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.

This is a <a href= "http://www.w3.org/2004/02/Process-20040205/tr.html#RecsWD"> the second W3C Last Call Working Draft of deleted text: the Web Services Description Language (WSDL) Version 2.0 document. This document Part 1: Core Language. It has been produced as by the Web Services Description Working Group ,which is part of the <a href="http://www.w3.org/2002/ws/Activity.html"> W3C Web Services Activity . The authors of this document are If the feedback is positive, the deleted text: <a href= "http://www.w3.org/2002/ws/desc/"> Web Services Description Working Group </a> members. plans to submit this specification for consideration as a W3C Candidate Recommendation.

The This Working Group is in the process of addressing Draft addresses all the comments deleted text: it has received during the first Last Call review period on the WSDL 2.0 Part 1, 2 and 3 during its drafts. Another Last Call period. This document reflects Working Draft is being published as substantive changes were made to the current state documents as a result of this work. review. The latest status detailed disposition of the last call issues comments received deleted text: by the Working Group can be found in the <a href= "http://www.w3.org/2002/ws/desc/last-call-issues"> last call first Last Call issues list . deleted text: The Working Group is planning to publish a new Last Call Working Draft once it has closed all these issues.

Comments on this document are to be sent to the public public-ws-desc-comments@w3.org mailing list ( public archive ). ) until 19 September 2005 .

A diff-marked version against the previous version of this document is available. For a detailed list of changes since the last publication of this document, please refer to appendix F. E. Part 1 Change Log . Issues about this document are documented in the new Last Call issues list maintained by the Working Group. A list of formal objections against the set of WSDL 2.0 Working Drafts is also available.

Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

This document has been produced under the 24 January 2002 Current Patent Practice as amended by the W3C Patent Policy Transition Procedure . Patent disclosures relevant to this specification may be found on the Working Group's patent disclosure page . An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) with respect to this specification should disclose the information in accordance with section 6 of the W3C Patent Policy .


Short Table of Contents

1. Introduction
2. Component Model
3. Types
4. Modularizing WSDL 2.0 descriptions
5. Documentation
6. Language Extensibility
7. Locating WSDL 2.0 Documents
8. Conformance
9. XML Syntax Summary (Non-Normative)
10. References
A. The application/wsdl+xml Media Type
B. Acknowledgements (Non-Normative)
C. <a href="#wsdl-uri-references"> URI IRI References for WSDL 2.0 Components (Non-Normative)
D. <a href="#migration"> Migrating from WSDL 1.1 to WSDL 2.0 Component Summary (Non-Normative)
E. deleted text: <a href="#other-schemalang"> Examples of Specifications of Extension Elements for Alternative Schema Language Support. </a> (Non-Normative) <br /> F. Part 1 Change Log (Non-Normative)


Table of Contents

1. Introduction
    1.1 Web Service
    1.2 Document Conformance
    1.3 The Meaning of a Service Description
    1.4 Notational Conventions
        1.4.1 RFC 2119 Keywords
        1.4.2 RFC 3986 Namespaces
        1.4.3 Prefixes and Namespaces Used in This Specification
        1.4.4 Terms Used in This Specification
        1.4.5 XML Information Set Properties
        1.4.6 WSDL 2.0 Component Model Properties
        1.4.7 Z Notation
        1.4.8 BNF Pseudo-Schemas
2. Component Model
    2.1 Description
        2.1.1 The Description Component
        2.1.2 XML Representation of Description Component
            2.1.2.1 targetNamespace attribute information item
        2.1.3 Mapping Description's XML Representation to Component Properties
    2.2 Interface
        2.2.1 The Interface Component
        2.2.2 XML Representation of Interface Component
            2.2.2.1 name attribute information item with interface [owner element]
            2.2.2.2 extends attribute information item
            2.2.2.3 styleDefault attribute information item
        2.2.3 Mapping Interface's XML Representation to Component Properties
    2.3 Interface Fault
        2.3.1 The Interface Fault Component
        2.3.2 XML Representation of Interface Fault Component
            2.3.2.1 name attribute information item with fault [owner element]
            2.3.2.2 element attribute information item with fault [owner element]
        2.3.3 Mapping Interface Fault's XML Representation to Component Properties
    2.4 Interface Operation
        2.4.1 The Interface Operation Component
            2.4.1.1 Operation Style
        2.4.2 XML Representation of Interface Operation Component
            2.4.2.1 name attribute information item with operation [owner element]
            2.4.2.2 pattern attribute information item with operation [owner element]
            2.4.2.3 style attribute information item with operation [owner element]
deleted text:             2.4.2.4 <a href="#InterfaceOperation_safe_attribute"> safe attribute information item with operation [owner element] </a> <br />         2.4.3 Mapping Interface Operation's XML Representation to Component Properties
    2.5 Interface Message Reference
        2.5.1 The Interface Message Reference Component
        2.5.2 XML Representation of Interface Message Reference Component
            2.5.2.1 messageLabel attribute information item with input or output [owner element]
            2.5.2.2 element attribute information item with input or output [owner element]
        2.5.3 Mapping Interface Message Reference's XML Representation to Component Properties
    2.6 Interface Fault Reference
        2.6.1 The Interface Fault Reference Component
        2.6.2 XML Representation of Interface Fault Reference
            2.6.2.1 ref attribute information item with infault, or outfault [owner element]
            2.6.2.2 messageLabel attribute information item with infault, or outfault [owner element]
        2.6.3 Mapping Interface Fault Reference's XML Representation to Component Properties
    2.7 Feature
        2.7.1 The Feature Component
            2.7.1.1 Feature Composition Model
                2.7.1.1.1 Example of Feature Composition Model
        2.7.2 XML Representation of Feature Component
            2.7.2.1 <a href="#Feature_uri_attribute"> uri ref attribute information item with feature [owner element]
            2.7.2.2 required attribute information item with feature [owner element]
        2.7.3 Mapping Feature's XML Representation to Component Properties
    2.8 Property
        2.8.1 The Property Component
            2.8.1.1 Property Composition Model
        2.8.2 XML Representation of Property Component
            2.8.2.1 <a href="#Property_uri_attribute"> uri ref attribute information item with property [owner element]
            2.8.2.2 value element information item with property [parent]
            2.8.2.3 constraint element information item with property [parent]
        2.8.3 Mapping Property's XML Representation to Component Properties
    2.9 Binding
        2.9.1 The Binding Component
        2.9.2 XML Representation of Binding Component
            2.9.2.1 name attribute information item with binding [owner element]
            2.9.2.2 interface attribute information item with binding [owner element]
            2.9.2.3 type attribute information item with binding [owner element]
            2.9.2.4 Binding extension elements
        2.9.3 Mapping Binding's XML Representation to Component Properties
    2.10 Binding Fault
        2.10.1 The Binding Fault Component
        2.10.2 XML Representation of Binding Fault Component
            2.10.2.1 ref attribute information item with fault [owner element]
            2.10.2.2 Binding Fault extension elements
        2.10.3 Mapping Binding Fault's XML Representation to Component Properties
    2.11 Binding Operation
        2.11.1 The Binding Operation Component
        2.11.2 XML Representation of Binding Operation Component
            2.11.2.1 ref attribute information item with operation [owner element]
            2.11.2.2 Binding Operation extension elements
        2.11.3 Mapping Binding Operation's XML Representation to Component Properties
    2.12 Binding Message Reference
        2.12.1 The Binding Message Reference Component
        2.12.2 XML Representation of Binding Message Reference Component
            2.12.2.1 messageLabel attribute information item with input or output [owner element]
            2.12.2.2 Binding Message Reference extension elements
        2.12.3 Mapping Binding Message Reference's XML Representation to Component Properties
    2.13 Binding Fault Reference
        2.13.1 The Binding Fault Reference Component
        2.13.2 XML Representation of Binding Fault Reference Component
            2.13.2.1 ref attribute information item with infault or outfault [owner element]
            2.13.2.2 messageLabel attribute information item with infault or outfault [owner element]
            2.13.2.3 Binding Fault Reference extension elements
        2.13.3 Mapping Binding Fault Reference's XML Representation to Component Properties
    2.14 Service
        2.14.1 The Service Component
deleted text:             2.14.1.1 <a href="#Service_OperationName"> Operation Name Mapping (non-normative) </a> <br />         2.14.2 XML Representation of Service Component
            2.14.2.1 deleted text: <a href="#Service_references"> Service References </a> <br />             2.14.2.2 name attribute information item with service [owner element]
            2.14.2.3             2.14.2.2 interface attribute information item with service [owner element]
        2.14.3 Mapping Service's XML Representation to Component Properties
    2.15 Endpoint
        2.15.1 The Endpoint Component
        2.15.2 XML Representation of Endpoint Component
            2.15.2.1 deleted text: <a href="#Endpoint_references"> Endpoint References </a> <br />             2.15.2.2 name attribute information item with endpoint [owner element]
            2.15.2.3             2.15.2.2 binding attribute information item with endpoint [owner element]
            2.15.2.4             2.15.2.3 address attribute information item with endpoint [owner element]
            2.15.2.5             2.15.2.4 Endpoint extension elements
        2.15.3 Mapping Endpoint's XML Representation to Component Properties
    2.16 XML Schema 1.0 Simple Types Used in the Component Model
    2.17 Equivalence of Components
    2.18 Symbol Spaces
    2.19 QName resolution
    2.20 Comparing URIs and IRIs
3. Types
    3.1 Using W3C XML Schema Description Language
        3.1.1 Importing XML Schema
            3.1.1.1 namespace attribute information item
            3.1.1.2 schemaLocation attribute information item
        3.1.2 Inlining XML Schema
            3.1.2.1 targetNamespace attribute information item
        3.1.3 References to Element Declarations and Type Definitions
    3.2 Using Other Schema Languages
    3.3 Describing Messages that Refer to Services and Endpoints
        3.3.1 wsdlx:interface attribute information item
        3.3.2 wsdlx:binding attribute information item
        3.3.3 wsdlx:interface and wsdlx:binding Consistency
        3.3.4 Use of wsdlx:interface and wsdlx:binding with xs:anyURI
4. Modularizing WSDL 2.0 descriptions
    4.1 Including Descriptions
        4.1.1 location attribute information item with include [owner element]
    4.2 Importing Descriptions
        4.2.1 namespace attribute information item
        4.2.2 location attribute information item with import [owner element]
5. Documentation
6. Language Extensibility
    6.1 Element based Extensibility
        6.1.1 Mandatory extensions
        6.1.2 required attribute information item
    6.2 Attribute-based Extensibility
    6.3 Extensibility Semantics
7. Locating WSDL 2.0 Documents
    7.1 wsdli:wsdlLocation attribute information item
8. Conformance
    8.1 XML Information Set Conformance
9. XML Syntax Summary (Non-Normative)
10. References
    10.1 Normative References
    10.2 Informative References

Appendices

A. The application/wsdl+xml Media Type
    A.1 Registration
    A.2 Fragment Identifiers
        A.2.1 <a href= "#wsdl.interface"> wsdl.interface(interface) The Description Component
        A.2.2 <a href= "#wsdl.interfaceFault"> wsdl.interfaceFault(interface/fault) The Element Declaration Component
        A.2.3 <a href= "#wsdl.interfaceOperation"> wsdl.interfaceOperation(interface/operation) The Type Definition Component
        A.2.4 <a href= "#wsdl.interfaceMessageReference"> wsdl.interfaceMessageReference(interface/operation/message) The Interface Component
        A.2.5 <a href= "#wsdl.interfaceFaultReference"> wsdl.interfaceFaultReference(interface/operation/message/fault) The Interface Fault Component
        A.2.6 <a href= "#wsdl.binding"> wsdl.binding(binding) The Interface Operation Component
        A.2.7 <a href= "#wsdl.bindingFault"> wsdl.bindingFault(binding/fault) The Interface Message Reference Component
        A.2.8 <a href= "#wsdl.bindingOperation"> wsdl.bindingOperation(binding/operation) The Interface Fault Reference Component
        A.2.9 <a href= "#wsdl.bindingMessageReference"> wsdl.bindingMessageReference(binding/operation/message) The Binding Component
        A.2.10 <a href= "#wsdl.bindingFaultReference"> wsdl.bindingFaultReference(binding/operation/fault/message) The Binding Fault Component
        A.2.11 <a href= "#wsdl.service"> wsdl.service(service) The Binding Operation Component
        A.2.12 <a href= "#wsdl.endpoint"> wsdl.endpoint(service/endpoint) The Binding Message Reference Component
        A.2.13 <a href= "#wsdl.feature"> wsdl.feature(parent/feature) The Binding Fault Reference Component
        A.2.14 <a href= "#wsdl.property"> wsdl.property(parent/property) The Service Component
        A.2.15 The Endpoint Component
        A.2.16 The Feature Component
        A.2.17 The Property Component
        A.2.18 wsdl.extension(extension-namespace, extension-specific-syntax) Extension Components
    A.3 Security considerations
B. Acknowledgements (Non-Normative)
C. <a href="#wsdl-uri-references"> URI IRI References for WSDL 2.0 Components (Non-Normative)
    C.1 <a href="#wsdl-uris"> WSDL 2.0 URIs IRIs
    C.2 <a href="#Uri-ref-ex"> Example
D. <a href="#migration"> Migrating from WSDL 1.1 to WSDL 2.0 Component Summary (Non-Normative)
deleted text:     D.1 <a href="#mig_ops"> Operation Overloading </a> <br />     D.2 <a href= "#mig_porttypes"> PortTypes </a> <br />     D.3 <a href="#mig_ports"> Ports </a> <br />     D.4 <a href= "#single_interface_per_service"> Single Interface per Service </a> <br /> E. deleted text: <a href="#other-schemalang"> Examples of Specifications of Extension Elements for Alternative Schema Language Support. </a> (Non-Normative) <br />     E.1 <a href="#dtd"> DTD </a> <br />         E.1.1 <a href= "#dtd-namespaceaii"> namespace attribute information item </a> <br />         E.1.2 <a href= "#dtd-locationaii"> location attribute information item </a> <br />         E.1.3 <a href= "#dtd-ref"> References to Element Definitions </a> <br />     E.2 <a href="#relax"> RELAX NG </a> <br />         E.2.1 <a href= "#import-relax"> Importing RELAX NG </a> <br />             E.2.1.1 <a href="#relax-import-nsaii"> ns attribute information item </a> <br />             E.2.1.2 <a href="#relax-import-hrefaii"> href attribute information item </a> <br />         E.2.2 <a href= "#relax-inline"> Inlining RELAX NG </a> <br />             E.2.2.1 <a href="#relax-inline-nsaii"> ns attribute information item </a> <br />         E.2.3 <a href= "#relax-ref"> References to Element Declarations </a> <br /> F. Part 1 Change Log (Non-Normative)
    F.1     E.1 WSDL 2.0 Specification Changes


1. Introduction

Web Services Description Language Version 2.0 (WSDL 2.0) provides a model and an XML format for describing Web services. WSDL 2.0 enables one to separate the description of the abstract functionality offered by a service from concrete details of a service description such as “how” and “where” that functionality is offered.

This specification defines a language for describing the abstract functionality of a service as well as a framework for describing the concrete details of a service description. It also defines the conformance criteria for a conformant processor of documents in this language. The WSDL Version 2.0 Part 2: Adjuncts specification [ WSDL 2.0 Adjuncts ] describes extensions for Message Exchange Patterns, features, SOAP modules and bindings of features, and a language for describing such concrete details for SOAP 1.2 [ SOAP 1.2 Part 1: Messaging Framework ] and HTTP [ IETF RFC 2616 ].

1.1 Web Service

WSDL 2.0 describes a Web service in two fundamental stages: one abstract and one concrete. Within each stage, the description uses a number of constructs to promote reusability of the description and to separate independent design concerns.

At an abstract level, WSDL 2.0 describes a Web service in terms of the messages it sends and receives; messages are described independent of a specific wire format using a type system, typically XML Schema.

An operation associates a message exchange pattern with one or more messages. A message exchange pattern identifies the sequence and cardinality of messages sent and/or received as well as who they are logically sent to and/or received from. An interface groups together operations without any commitment to transport or wire format.

At a concrete level, a binding specifies transport and wire format details for one or more interfaces. An endpoint associates a network address with a binding. And finally, a service groups together endpoints that implement a common interface.

1.2 Document Conformance

An element information item (as defined in [ XML Information Set ]) whose namespace name is "http://www.w3.org/2005/05/wsdl" "http://www.w3.org/2005/08/wsdl" and whose local part is description conforms to this specification if it is valid according to the XML Schema for that element as defined by this specification ( <a href= "http://www.w3.org/2005/05/wsdl/wsdl20.xsd"> http://www.w3.org/2005/05/wsdl/wsdl20.xsd http://www.w3.org/2005/08/wsdl/wsdl20.xsd ) and additionally adheres to all the constraints contained in this specification family and conforms to the specifications of any extensions contained in it. Such a conformant element information item constitutes a WSDL 2.0 document .

The definition of the WSDL 2.0 language is based on the XML Information Set [ XML Information Set ] but also imposes many semantic constraints over and above structural conformance to this XML Infoset. In order to precisely describe these constraints, and as an aid in precisely defining the meaning of each WSDL 2.0 document, the WSDL 2.0 specification defines a component model 2. Component Model as an additional layer of abstraction above the XML Infoset. Constraints and meaning are defined in terms of this component model, and the definition of each component includes a mapping that specifies how values in the component model are derived from corresponding items in the XML Infoset.

deleted text: It is not a requirement to support any particular serialization of the normative XML Infoset mapping of the component model for a WSDL 2.0 document. For instance, a conformant processor MAY only support XML 1.0 and not XML 1.1 [ <cite> <a href="#XML11"> XML 1.1 </a> </cite> ]. </p> <p> An XML 1.0 document that is valid with respect to the WSDL 2.0 XML Schema and that maps to a valid WSDL 2.0 Component Model is conformant to the WSDL 2.0 specification.

1.3 The Meaning of a Service Description

A WSDL 2.0 service description indicates how potential clients are intended to interact with the described service. It represents an assertion that the described service fully implements and conforms to what the WSDL 2.0 document describes. For example, as further explained in section 6.1.1 Mandatory extensions , if the WSDL 2.0 document specifies a particular optional extension, the functionality implied by that extension is only optional to the client. But it needs to be supported by the Web service.

A WSDL 2.0 interface describes potential interaction with a service--not required interaction. The declaration of an operation in a WSDL 2.0 interface is not an assertion that the interaction described by the operation must occur. Rather it is an assertion that if such an interaction is (somehow) initiated, then the declared operation describes how that interaction is intended to occur.

1.4 Notational Conventions

All parts of this specification are normative, with the EXCEPTION of notes, pseudo-schemas, examples, and sections explicitly marked as “Non-Normative”.

1.4.1 RFC 2119 Keywords

The keywords “MUST”, “MUST NOT”, “EQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119 [ IETF RFC 2119 ].

1.4.2 RFC 3986 Namespaces

Namespace names of the general form:

  • "http://example.org/..." and

  • "http://example.com/..."

represent application or context-dependent URIs [ IETF RFC 3986 ].

1.4.3 Prefixes and Namespaces Used in This Specification

This specification uses predefined namespace prefixes throughout; they are given in the following list. Note that the choice of any namespace prefix is arbitrary and not semantically significant (see [ XML Namespaces ]).

wsdl

"http://www.w3.org/2005/05/wsdl" "http://www.w3.org/2005/08/wsdl"

Defined by this specification.

wsdli

"http://www.w3.org/2005/05/wsdl-instance" "http://www.w3.org/2005/08/wsdl-instance"

Defined by this specification 7.1 wsdli:wsdlLocation attribute information item .

wsdlx

"http://www.w3.org/2005/08/wsdl-extensions"

Defined by this specification 3.3 Describing Messages that Refer to Services and Endpoints .

wrpc

"http://www.w3.org/2005/05/wsdl/rpc" "http://www.w3.org/2005/08/wsdl/rpc"

Defined by WSDL 2.0: Adjuncts [ WSDL 2.0 Adjuncts ].

wsoap

"http://www.w3.org/2005/05/wsdl/soap" "http://www.w3.org/2005/08/wsdl/soap"

Defined by WSDL 2.0: Adjuncts [ WSDL 2.0 Adjuncts ].

whttp

"http://www.w3.org/2005/05/wsdl/http" "http://www.w3.org/2005/08/wsdl/http"

Defined by WSDL 2.0: Adjuncts [ WSDL 2.0 Adjuncts ].

xs

"http://www.w3.org/2001/XMLSchema"

Defined in the W3C XML Schema specification [ XML Schema: Structures ], [ XML Schema: Datatypes ].

xsi

"http://www.w3.org/2001/XMLSchema-instance"

Defined in the W3C XML Schema specification [ XML Schema: Structures ], [ XML Schema: Datatypes ].

1.4.4 Terms Used in This Specification

This section describes the terms and concepts introduced in Part 1 of the WSDL Version 2.0 specification (this document).

Actual Value

As in [ XML Schema: Structures ], the phrase actual value is used to refer to the member of the value space of the simple type definition associated with an attribute information item which corresponds to its normalized value. This will often be a string, but may also be an integer, a boolean, a URI IRI reference, etc.

Inlined Schema

An XML schema that is defined in deleted text: a the xs:types element information item of a WSDL 2.0 description. For example, an XML deleted text: 1.0 Schema defined in an xs:schema element information item 3.1.2 Inlining XML Schema .

1.4.5 XML Information Set Properties

This specification refers to properties in the XML Information Set [ XML Information Set ]. Such properties are denoted by square brackets, e.g. [children], [attributes].

1.4.6 WSDL 2.0 Component Model Properties

This specification defines and refers to properties in the WSDL 2.0 Component Model 2. Component Model . Such properties are denoted by curly brackets, e.g. {name}, {interfaces}. { name }, { interfaces }.

This specification uses a consistent naming convention for component model properties that refer to components. If a property refers to a required or optional component, then the property name is the same as the component name. If a property refers to a set of components, then the property name is the pluralized form of the component name.

1.4.7 Z Notation

Z Notation [ Z Notation Reference Manual ] was used in the development of this specification. Z Notation is a formal specification language that is based on standard mathematical notation. The Z Notation for this specification has been verified using the Fuzz 2000 type-checker [ Fuzz 2000 ].

Since Z Notation is not widely known, it is not included the normative version of this specification. However, it is included in a non-normative version which allows to dynamically hide and show the Z Notation. Browsers correctly display the mathematical Unicode characters, provided that the required fonts are installed. Mathematical fonts for Mozilla Firefox can be downloaded from the Mozilla Web site .

The Z Notation was used to improve the quality of the normative text that defines the Component Model, and to help ensure that the test suite covered all important rules implied by the Component Model. However, the Z Notation is non-normative, so any conflict between it and the normative text is an error in the Z Notation. Readers and implementors may nevertheless find the Z Notation useful in cases where the normative text is unclear.

There are two elements of Z Notation syntax that conflict with the notational conventions described in the preceeding sections. In Z Notation, square brackets are used to introduce basic sets, e.g. [ ID ], which conflicts with the use of square brackets to denote XML Information Set properties 1.4.5 XML Information Set Properties . Also, in Z Notation, curly brackets are used to denote set display and set comprehension, e.g. {1 , 2 , 3}, which conflicts with the use of curly brackets to denote WSDL 2.0 Component Model properties 1.4.6 WSDL 2.0 Component Model Properties . However, the intended meaning of square and curly brackets should be clear from their context and this minor notational conflict should not cause any confusion.

1.4.8 BNF Pseudo-Schemas

Pseudo-schemas are provided for each component, before the description of the component. They use BNF-style conventions for attributes and elements: "?" denotes optionality (i.e. zero or one occurrences), "*" denotes zero or more occurrences, "+" one or more occurrences, "[" and "]" are used to form groups, and "|" represents choice. Attributes are conventionally assigned a value which corresponds to their type, as defined in the normative schema. Elements with simple content are conventionally assigned a value which corresponds to the type of their content, as defined in the normative schema.

<!-- sample pseudo-schema -->
<defined_element
      required_attribute_of_type_string="xs:string"
      optional_attribute_of_type_int="xs:int"? >
  <required_element />
  <optional_element />?
  <one_or_more_of_these_elements />+
  [ <choice_1 /> | <choice_2 /> ]*
</defined_element>

2. Component Model

This section describes the conceptual model of WSDL 2.0 as a set of components with attached properties, which collectively describe a Web service. This model is called the Component Model of WSDL 2.0.

Components are typed collections of properties that correspond to different aspects of Web services. deleted text: </p> <table border="1" summary="Editorial note"> <tr> <td align="left" valign="top" width="50%"> <b> Editorial note </b> </td> <td align="right" valign="top" width="50%">   </td> </tr> <tr> <td colspan="2" align="left" valign="top"> Change property to avoid confusion with other meaning in spec. </td> </tr> </table> Each subsection herein describes a different type of component, its defined properties, and its representation as an XML Infoset [ <a href="#XMLInfoSet"> XML Information Set ].

<a name="zed-BaseRI" id="zed-BaseRI"> <a name="zed-NestedBase" id="zed-NestedBase"> <a name="zed-NestedBaseRI" id= "zed-NestedBaseRI">

Properties are unordered and unique with respect to the component they are associated with. Individual properties' definitions may constrain their content (e.g., to a typed value, another component, or a set of typed values or components), and components may require the presence of a property to be considered conformant. Such properties are marked as REQUIRED, whereas those that are not required to be present are marked as OPTIONAL. By convention, when specifying the mapping rules from the XML Infoset representation of a component to the component itself, an optional property that is absent in the component in question is described as being “empty”. Unless otherwise specified, when a property is identified as being a collection (a set or a list), its value may be a 0-element (empty) collection. In order to simplify the presentation of the rules that deal with sets of components, for all OPTIONAL properties whose type is a set, the absence of such a property from a component MUST be treated as semantically equivalent to the presence of a property with the same name and whose value is the empty set. In other words, every OPTIONAL set-valued property MUST be assumed to have the empty set as its default value, to be used in case the property is absent.

Component definitions are serializable in XML 1.0 format but are independent of any particular serialization of the component model. Component definitions use a subset (see 2.16 XML Schema 1.0 Simple Types Used in the Component Model ) of the simple types defined by the XML Schema 1.0 specification [ XML Schema: Datatypes ].

In addition to the direct XML Infoset representation described here, the component model allows components external to the Infoset through the mechanisms described in 4. Modularizing WSDL 2.0 descriptions .

A component model can be extracted from a given XML Infoset which conforms to the XML Schema for WSDL 2.0 by recursively mapping Information Items to their identified components, starting with the wsdl:description element information item . This includes the application of the mechanisms described in 4. Modularizing WSDL 2.0 descriptions .

This document does not specify a means of producing an XML Infoset representation from a component model instance. In particular, there are in general many valid ways to modularize a given component model instance into one or more XML Infosets.

2.1 Description

2.1.1 The Description Component

At the abstract level, the Description component is just a container for two categories of components: WSDL 2.0 components and type system components.

WSDL 2.0 components are interfaces, bindings and services. Type system components are element declarations and type definitions.

deleted text: Interface, Binding, Service, Element Declaration, and Type Definition components are directly contained in the Description component and are referred to as <em> top-level components </em>. The top-level WSDL 2.0 components contain other components, e.g. Interface Operation and Endpoint, which are referred to as <em> nested components </em>. Nested components may contain other nested components. The component that contains a nested component is referred to as the <em> parent </em> of the nested components. Nested components have a {parent} property that is a reference to their parent component. </p> <a name="zed-Parent" id="zed-Parent"> </a> <a name="zed-ParentRI" id="zed-ParentRI"> </a> <p> Type system components describe the constraints on a message's content. By default, these constraints are expressed in terms of the [ XML Information Set ], i.e. they define the [local name], [namespace name], [children] and [attributes] properties of an element information item. item . Type systems based upon other data models are generally accommodated by extensions to WSDL 2.0; see <a href="#language-extensibility"> 6. Language Extensibility . In the case where they define information equivalent to that of a XML Schema global element declaration, they can be treated as if they were such a declaration.

This specification does not define the behavior of a WSDL 2.0 document that uses multiple schema languages for describing type system components simultaneously.

An Element Declaration component defines the name and content model of an element information item such as that defined by an XML Schema global element declaration. It has a { name } property that is the QName of the element information item .

A Type Definition component defines the content model of an element information item such as that defined by an XML Schema global type definition. It has a { name } property that is the QName of the type.

Interface ,Binding ,Service ,Element Declaration ,and Type Definition components are directly contained in the Description component and are referred to as top-level components .The top-level WSDL 2.0 components contain other components, e.g. Interface Operation and Endpoint ,which are referred to as nested components .Nested components may contain other nested components. The component that contains a nested component is referred to as the parent of the nested components. Nested components have a { parent } property that is a reference to their parent component.

The properties of the Description component are as follows:

<a name= "zed-DescriptionRI" id="zed-DescriptionRI">

The set of top-level components contained in the Description component associated with an initial WSDL 2.0 document consists of the components defined in the initial document and the components associated with the documents that the initial document includes or imports. The component model makes no distinction between the components that are defined in the initial document versus those that are defined in the included or imported documents. However, any WSDL 2.0 document that contains component definitions that refer by QName to WSDL 2.0 components that belong to a different namespace MUST contain a ws:import element information item for that namespace (see <a href= "#imports"> 4.2 Importing Descriptions ). Furthermore, all QName references, whether to the same or to different namespaces MUST resolve to components (see 2.19 QName resolution ).

deleted text: <a name="zed-DescriptionKeys" id="zed-DescriptionKeys"> </a>

In addition to WSDL 2.0 components and type system components, additional extension components MAY be added via extensibility 6. Language Extensibility . Further, additional properties to WSDL 2.0 and type system components MAY also be added via extensibility.

2.1.2 XML Representation of Description Component

<description
      targetNamespace="xs:anyURI" >


  <documentation />?



  <documentation />*


  [ <import /> | <include /> ]*
  <types />?
  [ <interface /> | <binding /> | <service /> ]*
</description>

WSDL 2.0 definitions are represented in XML by one or more WSDL 2.0 Information Sets (Infosets), that is one or more description element information item s. A WSDL 2.0 Infoset contains representations for a collection of WSDL 2.0 components which share a common target namespace. A WSDL 2.0 Infoset which contains one or more import element information item s 4.2 Importing Descriptions corresponds to a collection with components drawn from multiple target namespaces.

The components directly defined or included within a Description component are said to belong to the same target namespace . The target namespace therefore groups a set of related component definitions and represents an unambiguous name for the intended semantics of the collection of components. The value of the targetNamespace attribute information item SHOULD be a dereferenceable URI. IRI (see [ IETF RFC 3987 ]). It SHOULD resolve to a human or machine processable document that directly or indirectly defines the intended semantics of those components. It MAY resolve to a WSDL 2.0 document which provides service description information for that namespace.

If a service description is split into multiple documents (which may be combined as needed via 4.1 Including Descriptions ), then the targetNamespace attribute information item SHOULD resolve to a master document which includes all the WSDL 2.0 documents needed for that service description. This approach enables the WSDL 2.0 component designators' fragment identifiers to be properly resolvable.

Imported components have different target namespace values from the Description component that is importing them. Thus importing is the mechanism to use components from one namespace in another set of definitions.

Each WSDL 2.0 or type system component MUST be uniquely identified by its qualified name. That is, if two distinct components of the same kind (Interface, ( Interface ,Binding , etc.) are in the same target namespace, then their QNames MUST be unique. However, different kinds of components (e.g., an Interface component and a Binding component) MAY have the same QName. Thus, QNames of components must be unique within the space of those components in a given target namespace.

The description element information item has the following Infoset properties:

  • A [local name] of description .

  • A [namespace name] of "http://www.w3.org/2005/05/wsdl". "http://www.w3.org/2005/08/wsdl".

  • One or more attribute information item s amongst its [attributes] as follows:

    • A REQUIRED targetNamespace attribute information item as described below in 2.1.2.1 targetNamespace attribute information item .

    • Zero or more namespace qualified attribute information item s whose [namespace name] is NOT "http://www.w3.org/2005/05/wsdl". "http://www.w3.org/2005/08/wsdl".

  • Zero or more element information item s amongst its [children], in order as follows:

    1. An OPTIONAL Zero or more documentation element information item s (see 5. Documentation ).

    2. Zero or more element information item s from among the following, in any order:

      • Zero or more include element information item s (see 4.1 Including Descriptions )

      • Zero or more import element information item s (see 4.2 Importing Descriptions )

      • Zero or more namespace-qualified element information item s whose [namespace name] is NOT "http://www.w3.org/2005/05/wsdl". "http://www.w3.org/2005/08/wsdl".

    3. An OPTIONAL types element information item (see 3. Types ).

    4. Zero or more element information item s from among the following, in any order:

2.1.2.1 targetNamespace attribute information item

The targetNamespace attribute information item defines the namespace affiliation of top-level components defined in this description element information item . Interfaces, Bindings Interface ,Binding and Services Service are top-level components.

The targetNamespace attribute information item has the following Infoset properties:

  • A [local name] of targetNamespace

  • A [namespace name] which has no value

The type of the targetNamespace attribute information item is xs:anyURI . The Its value deleted text: of the <code> targetNamespace </code> <em> attribute information item </em> MUST be an absolute URI IRI (see [ <a href="#RFC3986"> IETF RFC 3986 3987 ]).

2.1.3 Mapping Description's XML Representation to Component Properties

The mapping from the XML Representation of the description element information item (see 2.1.2 XML Representation of Description Component ) to the properties of the Description deleted text: component (see <a href="#Description_details"> <b> 2.1.1 The Description Component </b> ) component is described in <a href= "#tab_Description_Mapping"> Table 2-1 .


Table 2-1. Mapping from XML Representation to Description Component Properties
Property Value
{interfaces} { interfaces } The set of Interface components corresponding to all the interface element information item s in the [children] of the description element information item , if any, plus any included (via wsdl:include) or imported (via wsdl:import) Interface components (see 4. Modularizing WSDL 2.0 descriptions ).
{bindings} { bindings } The set of Binding components corresponding to all the binding element information item s in the [children] of the description element information item , if any, plus any included (via wsdl:include) or imported (via wsdl:import) Binding components (see <a href= "#modularize"> 4. Modularizing WSDL 2.0 descriptions ).
{services} { services } The set of Service components corresponding to all the service element information item s in the [children] of the description element information item , if any, plus any included (via wsdl:include) or imported (via wsdl:import) Service components (see <a href= "#modularize"> 4. Modularizing WSDL 2.0 descriptions ).
{element declarations} { element declarations } The set of element declarations Element Declaration components corresponding to all the element declarations defined as descendants of the types element information item , if any, plus any included (via xs:include) or imported element declarations. (via xs:import) Element Declaration components. At a minimum this will include all the global element declarations defined by XML Schema element element information item s. It MAY also include any declarations from some other type system which describes the [local name], [namespace name], [attributes] and [children] properties of an element information item .
{type definitions} { type definitions } The set of type definitions Type Definition components corresponding to all the type definitions defined as descendants of the types element information item , if any, plus any included (via xs:include) or imported type definitions. (via xs:import) Type Definition components. At a minimum this will include all the global type definitions defined by XML Schema simpleType and complexType element information item s. It MAY also include any definitions from some other type system which describes the [attributes] and [children] properties of an element information item . It is an error if there are multiple type definitions for each QName.

2.2 Interface

2.2.1 The Interface Component

An Interface component describes sequences of messages that a service sends and/or receives. It does this by grouping related messages into operations. An operation is a sequence of input and output messages, and an interface is a set of operations.

An interface can optionally extend one or more other interfaces. To avoid circular definitions, an interface MUST NOT appear as an element of the set of interfaces it extends, either directly or indirectly. The set of operations available in an interface includes all the operations defined by the interfaces it extends, along with any operations it directly defines. The operations directly defined on an interface are referred to as the declared operations of the interface. In the process, operation components that are equivalent per 2.17 Equivalence of Components are treated as one. The interface extension mechanism behaves in a similar way for all other components that can be defined inside an interface, namely Interface Fault, Fault ,Feature and Property components.

Interfaces are named constructs and can be referred to by QName (see 2.19 QName resolution ). For instance, Binding components refer to interfaces in this way.

The properties of the Interface component are as follows:

deleted text: <a name= "zed-InterfaceParent" id="zed-InterfaceParent"> </a> <a name= "zed-InterfaceClosure" id="zed-InterfaceClosure"> </a>

For each Interface component in the {interfaces} { interfaces } property of a description container, Description component, the {name} { name } property MUST be unique.

<a name="zed-InterfaceKeys" id="zed-InterfaceKeys">

2.2.2 XML Representation of Interface Component

<description>
  <interface
        name="xs:NCName" 
        extends="list of xs:QName"?
        styleDefault="list of xs:anyURI"? >


    <documentation />?



    <documentation />*


    [ <fault /> | <operation /> | <feature /> | <property /> ]*
  </interface>
</description>

The XML representation for an Interface component is an element information item with the following Infoset properties:

2.2.2.1 name attribute information item with interface [owner element]

The name attribute information item together with the targetNamespace attribute information item of the [parent] description element information item forms the QName of the interface.

The name attribute information item has the following Infoset properties:

  • A [local name] of name

  • A [namespace name] which has no value

The type of the name attribute information item is xs:NCName .

2.2.2.2 extends attribute information item

The extends attribute information item lists the interfaces that this interface derives from.

The extends attribute information item has the following Infoset properties:

  • A [local name] of extends

  • A [namespace name] which has no value

The type of the extends attribute information item is a list of xs:QName .

2.2.2.3 styleDefault attribute information item

The styleDefault attribute information item indicates the default style (see 2.4.1.1 Operation Style ) used to construct the {element} { element declaration } properties of {interface { interface message references} references } of all operations contained within the [owner element] interface .

The styleDefault attribute information item has the following Infoset properties:

  • A [local name] of styleDefault.

  • A [namespace name] which has no value.

The type of the styleDefault attribute information item is list of xs:anyURI . Moreover, the value of the <code> styleDefault </code> <em> attribute information item </em>, Its value, if present, MUST contain absolute URIs IRIs (see [ <a href="#RFC3986"> IETF RFC 3986 3987 ]).

2.2.3 Mapping Interface's XML Representation to Component Properties

The mapping from the XML Representation of the interface element information item (see 2.2.2 XML Representation of Interface Component ) to the properties of the Interface deleted text: component (see <a href="#Interface_details"> <b> 2.2.1 The Interface Component </b> ) component is as described in <a href= "#tab_Interface_Mapping"> Table 2-2 .


Table 2-2. Mapping from XML Representation to Interface Component Properties
Property Value
{name} { name } The QName whose local name is actual value of the name attribute information item and whose namespace name is the actual value of the targetNamespace attribute information item of the [parent] description element information item
{extended interfaces} { extended interfaces } The set of Interface components resolved to by the values in the extends attribute information item </em> , if any (see 2.19 QName resolution ).
{interface faults} { interface faults } The set of Interface Fault components corresponding to the fault element information item s in [children], if any.
{interface operations} { interface operations } The set of Interface Operation components corresponding to the operation element information item s in [children], if any.
{features} { features } The set of Feature components corresponding to the feature element information item s in [children], if any.
{properties} { properties } The set of Property components corresponding to the property element information item s in [children], if any.

Note that, per 2.2.1 The Interface Component , the Interface components in the {extended interfaces} { extended interfaces } property of a given Interface component MUST NOT contain that Interface component in any of their {extended interfaces} { extended interfaces } properties, that is to say, recursive extension of interfaces is disallowed.

2.3 Interface Fault

2.3.1 The Interface Fault Component

A fault is an event that occurs during the execution of a message exchange that disrupts the normal flow of messages.

A fault is typically raised when a party is unable to communicate an error condition inside the normal message flow, or a party wishes to terminate a message exchange. A fault message may be used to communicate out of band information such as the reason for the error, the origin of the fault, as well as other informal diagnostics such as a program stack trace.

An Interface Fault component describes a fault that MAY occur during invocation of an operation of the interface. The Interface Fault component declares an abstract fault by naming it and indicating the contents of the fault message. When and how the fault message flows is indicated by the Interface Operation component <a href="#InterfaceOperation"> <b> 2.4 Interface Operation </b> </a>. component.

The Interface Fault component provides a clear mechanism to name and describe the set of faults an interface may generate. This allows operations to easily identify the individual faults they may generate by name. This mechanism allows the ready identification of the same fault occurring across multiple operations and referenced in multiple bindings as well as reducing duplication of description for an individual fault.

Note that faults other than the ones described in the Interface component can also be generated at run-time, i.e. faults are an open set.

The properties of the Interface Fault component are as follows:

deleted text: If a type system NOT based on the XML Infoset [ <cite> <a href= "#XMLInfoSet"> XML Information Set </a> </cite> ] is in use (as considered in <a href="#other-types"> <b> 3.2 Using Other Schema Languages </b> </a> ) then additional properties would need to be added to the Interface Fault Component (along with extensibility attributes to its XML representation) to allow associating such message types with the message reference. </p> <p> For each Interface Fault component in the {interface faults} { interface faults } property of an Interface component, the {name} { name } property must be unique.

Interface Fault components are uniquely identified by the the QName of the enclosing Interface component and QName of the Interface Fault component itself.

Note:

Despite having a {name} { name } property, Interface Fault components cannot be identified solely by their QName. Indeed, two Interface components whose {name} { name } property value has the same namespace name, but different local names, can contain Interface Fault components with the same {name} { name } property value. Thus, the {name} { name } property of Interface Fault components component is not sufficient to form the unique identity of an Interface Fault component.

In cases where, due to an interface extending one or more other interfaces, two or more Interface Faults Fault components have the same value for their {name} { name } property, then the component models of those Interface Fault components MUST be equivalent (see <a href= "#compequiv"> 2.17 Equivalence of Components ). If the Interface Fault components are equivalent then they are considered to collapse into a single component. It is an error if two Interface Fault components that are available in the same Interface component have the same value for their {name} { name } properties but are not equivalent.

Note that, due to the above rules, if two interfaces that have the same value for the namespace name of their {name} { name } property also have one or more faults that have the same value for their {name} { name } property then those two interfaces cannot both form part of the derivation chain of a derived interface unless those faults are the same fault.

Note:

For the above reason, it is considered good practice to ensure, where necessary, that the local name of the {name} { name } property of Interface Fault components within a namespace are unique, thus allowing such derivation to occur without inadvertent error.

If a type system NOT based on the XML Infoset [ XML Information Set ] is in use (as considered in 3.2 Using Other Schema Languages ) then additional properties would need to be added to the Interface Fault component (along with extensibility attributes to its XML representation) to allow associating such message types with the message reference.

2.3.2 XML Representation of Interface Fault Component

<description>
  <interface>
    <fault
          name="xs:NCName" 
          element="xs:QName"? >


      <documentation />?



      <documentation />*


      [ <feature /> | <property /> ]*
    </fault>
  </interface>
</description>

The XML representation for an Interface Fault component is an element information item with the following Infoset properties:

  • A [local name] of fault

  • A [namespace name] of "http://www.w3.org/2005/05/wsdl" "http://www.w3.org/2005/08/wsdl"

  • One or more attribute information item s amongst its [attributes] as follows:

  • Zero or more element information item amongst its [children], in order, as follows:

    1. An OPTIONAL Zero or more documentation element information item s (see 5. Documentation ).

    2. Zero or more element information item s from among the following, in any order:

2.3.2.1 name attribute information item with fault [owner element]

The name attribute information item identifies a given fault element information item inside a given interface element information item .

The name attribute information item has the following Infoset properties:

  • A [local name] of name

  • A [namespace name] which has no value

The type of the name attribute information item is xs:NCName .

2.3.2.2 element attribute information item with fault [owner element]

The element attribute information item refers, by QName, to an element declaration Element Declaration component.

The element attribute information item has the following Infoset properties:

  • A [local name] of element .

  • A [namespace name] which has no value.

The type of the element attribute information item is xs:QName .

2.3.3 Mapping Interface Fault's XML Representation to Component Properties

The mapping from the XML Representation of the fault element information item (see 2.3.2 XML Representation of Interface Fault Component ) to the properties of the Interface Fault deleted text: component (see <a href="#InterfaceFault_details"> <b> 2.3.1 The Interface Fault Component </b> ) component is as described in <a href= "#tab_InterfaceFault_Mapping"> Table 2-3 .


Table 2-3. Mapping from XML Representation to Interface Fault Component Properties
Property Value
{name} { name } The QName whose local name is the actual value of the name attribute information item . and whose namespace name is the actual value of the targetNamespace attribute information item of the [parent] description element information item of the [parent] interface element information item .
{element declaration} { element declaration } The element declaration Element Declaration component from the {element declarations} { element declarations } property of <a href= "#Description_details"> <b> 2.1.1 The the Description deleted text: Component </b> component resolved to by the value of the element attribute information item if present (see 2.19 QName resolution ), otherwise empty. It is an error for the element attribute information item to have a value and for it to not resolve to a global element declaration an Element Declaration component from the {element declarations} { element declarations } property of <a href= "#Description_details"> <b> 2.1.1 The the Description Component </b> </a>. component.
{features} { features } The set of Feature components corresponding to the feature element information item s in [children], if any.
{properties} { properties } The set of Property components corresponding to the property element information item s in [children], if any.
{parent} { parent } The Interface component corresponding to the interface element information item in [parent].

2.4 Interface Operation

2.4.1 The Interface Operation Component

An Interface Operation component describes an operation that a given interface supports. An operation is an interaction with the service consisting of a set of (ordinary and fault) messages exchanged between the service and the other parties involved in the interaction. The sequencing and cardinality of the messages involved in a particular interaction is governed by the message exchange pattern used by the operation (see {message { message exchange pattern} pattern } property).

A message exchange pattern defines placeho