This document is also available in these non-normative formats: postscript, PDF, XML, and plain text.
Copyright © 2003 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
This document describes the Web Services Description Language (WSDL) Version 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.
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 W3C Working Draft of the Web Services Description Language (WSDL) 2.0 document.
This document has been produced as part of the W3C Web Services Activity. The authors of this document are the Web Services Description Working Group members.
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.
Comments on this document are invited and have to be sent to the public www-ws-desc@w3.org mailing list (public archive).
Patent disclosures relevant to this specification may be found on the Working Group's patent disclosure page.
1. Introduction
2. Component Model
3. Types
4. Modularizing WSDL descriptions
5. Documentation
6. Language
Extensibility
7. References
A. The application/wsdl+xml Media
Type
B. Acknowledgements
(Non-Normative)
C. Migrating from WSDL 1.1 to WSDL 2.0
(Non-Normative)
D. Examples of Specifications of
Extension Elements for Alternative Schema Language Support.
(Non-Normative)
E. Part 1 Change Log (Non-Normative)
1. Introduction
1.1 Web
Service
1.2 Notational
Conventions
2. Component Model
2.1 Definitions
2.1.1 The Definitions Component
2.1.2 XML Representation of Definitions
Component
2.1.2.1
targetNamespace
attribute information item
2.1.3 Mapping Definitions' 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]
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
Operation
2.3.1 The Interface Operation
Component
2.3.1.1
Operation Style
2.3.1.1.1
RPC Style
2.3.1.1.2
Set-Attribute Style
2.3.1.1.3
Get-Attribute Style
2.3.2 XML Representation of Interface
Operation Component
2.3.2.1
name attribute
information item with operation [owner]
2.3.2.2
pattern attribute
information item with operation [owner]
2.3.2.3
style attribute
information item with operation [owner]
2.3.3 Mapping Interface Operation's XML
Representation to Component Properties
2.4 Message
Reference
2.4.1 The Message Reference
Component
2.4.2 XML Representation of Message Reference
Component
2.4.2.1
messageReference
attribute information item with input, or output [owner]
2.4.2.2
message attribute
information item with input, or output [owner]
2.4.3 Mapping Message Reference's XML
Representation to Component Properties
2.5 Fault
Reference
2.5.1 The Fault Reference Component
2.5.2 XML Representation of Fault Reference
Component
2.5.2.1
name attribute information
item with infault, or outfault [owner]
2.5.2.2
messageReference
attribute information item with infault, or outfault
[owner]
2.5.2.3
message attribute
information item with infault, or outfault [owner]
2.5.3 Mapping Fault Reference's XML
Representation to Component Properties
2.6 Feature
2.6.1 The Feature Component
2.6.2 XML Representation of Feature Component
2.6.2.1
uri attribute information item
with feature [owner]
2.6.2.2
required attribute
information item with feature [owner]
2.6.3 Mapping Feature's XML Representation to
Component Properties
2.7 Property
2.7.1 The Property Component
2.7.2 XML Representation of Property
Component
2.7.2.1
uri attribute information item
with property [owner]
2.7.2.2
required attribute
information item with feature [owner]
2.7.2.3
value element information item
with property [parent]
2.7.2.4
constraint element
information item with property [parent]
2.7.3 Mapping Property's XML Representation to
Component Properties
2.8 Binding
2.8.1 The Binding Component
2.8.2 XML Representation of Binding Component
2.8.2.1
name attribute information item
with binding [owner]
2.8.2.2
interface attribute
information item with binding [owner]
2.8.2.3
Binding extension
elements
2.8.3 Mapping Binding's XML Representation to
Component Properties
2.9 Binding
Operation
2.9.1 The Binding Operation
Component
2.9.2 XML Representation of Binding Operation
Component
2.9.2.1
name attribute
information item with operation [owner]
2.9.2.2
Binding Operation
extension elements
2.9.3 Mapping Binding Operation's XML
Representation to Component Properties
2.10 Binding Message Reference
2.10.1 The Binding Message Reference
Component
2.10.2 XML Representation of Binding
Message Reference Component
2.10.2.1
messageReference
attribute information item with input or output [owner]
2.10.2.2
Binding
Message Reference extension elements
2.10.3 Mapping Binding Message
Reference's XML Representation to Component Properties
2.11 Binding Fault Reference
2.11.1 The Binding Fault Reference
Component
2.11.2 XML Representation of Binding
Fault Reference Component
2.11.2.1
name attribute
information item with infault or outfault [owner]
2.11.2.2
messageReference
attribute information item with infault or outfault
[owner]
2.11.2.3
Binding Fault
Reference extension elements
2.11.3 Mapping Binding Fault
Reference's XML Representation to Component Properties
2.12 Service
2.12.1 The Service Component
2.12.2 XML Representation of Service Component
2.12.2.1
name attribute information item
with service [owner]
2.12.2.2
interface attribute
information item with service [owner]
2.12.3 Mapping Service's XML Representation to
Component Properties
2.13 Endpoint
2.13.1 The Endpoint Component
2.13.2 XML Representation of Endpoint
Component
2.13.2.1
name attribute information item
with endpoint [owner]
2.13.2.2
binding attribute information
item with endpoint [owner]
2.13.2.3
Endpoint extension
elements
2.13.3 Mapping Endpoint's XML Representation to
Component Properties
2.14 Equivalence of
Components
2.15 Symbol
Spaces
2.16 QName
resolution
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 Embedding 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
4. Modularizing WSDL descriptions
4.1 Including
Descriptions
4.1.1 location attribute information item
with include [owner]
4.2 Importing
Descriptions
4.2.1 namespace attribute information
item
4.2.2 location attribute information item
with import [owner]
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
7. References
7.1 Normative References
7.2 Informative References
A. The application/wsdl+xml
Media Type
A.1 Registration
A.2 Security
considerations
B. Acknowledgements
(Non-Normative)
C. Migrating from WSDL 1.1 to WSDL 2.0
(Non-Normative)
C.1 Operation
Overloading
C.2 PortTypes
C.3 Ports
D. Examples of Specifications of
Extension Elements for Alternative Schema Language Support.
(Non-Normative)
D.1 DTD
D.1.1 namespace attribute information item
D.1.2 location attribute information item
D.1.3 References to Element Definitions
D.2 RELAX NG
D.2.1 Importing RELAX NG
D.2.1.1
ns attribute information
item
D.2.1.2
href attribute information
item
D.2.2 Embedding RELAX NG
D.2.2.1
ns attribute information
item
D.2.3 References to Element Declarations
E. Part 1 Change Log (Non-Normative)
E.1 WSDL
Specification Changes
Web Services Description Language (WSDL) provides a model and an XML format for describing Web services. WSDL 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. The WSDL Version 2.0 Part 2: Message Exchange Patterns specification [WSDL 2.0 Message Exchange Patterns] defines define the sequence and cardinality of abstract messages sent or received by an operation. The WSDL Version 2.0 Part 3: Bindings specification [WSDL 2.0 Bindings] defines a language for describing such concrete details for SOAP 1.2 [SOAP 1.2 Part 1: Messaging Framework], HTTP [IETF RFC 2616] and MIME [IETF RFC 2045].
WSDL 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 separate independent design concerns.
At an abstract level, WSDL 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.
The keywords "MUST", "MUST NOT", "REQUIRED", "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].
This specification uses properties from the XML Information Set [XML Information Set]. Such properties are denoted by square brackets, e.g. [namespace name].
This specification uses namespace prefixes throughout; they are listed in Table 1-1. Note that the choice of any namespace prefix is arbitrary and not semantically significant (see [XML Information Set]).
| Prefix | Namespace | Notes |
|---|---|---|
| wsdl | "http://www.w3.org/2003/11/wsdl" | A normative XML Schema [XML Schema: Structures], [XML Schema: Datatypes] document for the "http://www.w3.org/2003/11/wsdl" namespace can be found at http://www.w3.org/2003/11/wsdl. WSDL documents that do NOT conform to this schema are not valid WSDL documents. WSDL documents that DO conform to this schema and also conform to the other constraints defined in this specification are valid WSDL documents. |
| wsoap12 | "http://www.w3.org/2003/11/wsdl/soap12" | Defined by WSDL 2.0: Bindings [WSDL 2.0 Bindings]. |
| whttp | "http://www.w3.org/2003/11/wsdl/http" | |
| wmime | "http://www.w3.org/2003/11/wsdl/mime" | |
| 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" |
Namespace names of the general form "http://example.org/..." and "http://example.com/..." represent application or context-dependent URIs [IETF RFC 2396].
All parts of this specification are normative, with the EXCEPTION of pseudo-schemas, examples, and sections explicitly marked as "Non-Normative". Pseudo-schemas are provided for each component, before the description of this component.
This section describes the conceptual model for WSDL as a set of components with properties, each aspect of a Web service that WSDL can describe having its own property. In addition an XML Infoset representation for these components is provided, along with a mapping from that representation to the various component properties. How the XML Infoset representation of a given set of WSDL components is constructed is outside the scope of this specification.
At the abstract level, the Definitions component is just a container for two categories of component; WSDL components and type system components.
WSDL components are interfaces, bindings and services.
Type system components are element declarations and type definitions drawn from some type system. The former define the [local name], [namespace name], [children] and [attributes] properties of an element information item; the latter define only the [children] and [attributes] properties.
The properties of the Definitions component are as follows:
{interfaces} A set of named interface definitions
{bindings} A set of named binding definitions
{services} A set of named service definitions
{type definitions} A set of named type definitions, each one isomorphic to a simple or complex type as defined by XML Schema
{element declarations} A set of named element declarations, each one isomorphic to a global element declaration as defined by XML Schema
The set of interfaces/binding/services/etc. available in the Definitions component include those that are defined within the component itself and those that are imported and/or included. At the component model level, there is no distinction between directly defined components vs. imported/included components.
The components directly defined within a single Definitions component are said to belong to the same target namespace. The target namespace therefore groups a set of related component definitions and provides a hint of the intended semantics of the components.
Imported components have different target namespace values from the Definitions component that is importing them. Thus importing is the mechanism to use components from one namespace in another set of definitions.
Each WSDL or type/element component MUST be uniquely identified by its qualified name. That is, if two distinct components of the same kind (Interface, Binding etc.) are in the same target namespace, then their QNames MUST be unique. However, different kids 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.
In addition to WSDL components and type and element components, additional extension components MAY be added via extensibility 6. Language Extensibility. Further, additional properties to WSDL and type/element components MAY also be added via extensibility.
<definitions
targetNamespace="xs:anyURI" >
<documentation />?
[ <import /> | <include /> ]*
<types />?
[ <interface /> | <binding /> | <service /> ]*
</definitions>
WSDL definitions are represented in XML by one or more WSDL
Information Sets (Infosets), that is one or more
definitions element information items. A WSDL
Infoset contains representations for a collection of WSDL
components which share a common target namespace. A WSDL Infoset
which contains one or more import element
information items 4.2 Importing
Descriptions corresponds to a collection with components
drawn from multiple target namespaces.
The target namespace represents an unambiguous name for the intended semantics of the WSDL Infoset. The targetNamespace URI SHOULD point to a human or machine processable document that directly or indirectly defines the semantics of the WSDL Infoset.
The definitions element information item
has the following Infoset properties:
A [local name] of definitions .
A [namespace name] of "http://www.w3.org/2003/11/wsdl".
One or more attribute information items 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 items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more element information items from among the following, in any order:
Zero or more include element information
items (see 4.1 Including
Descriptions)
Zero or more import element information
items (see 4.2 Importing
Descriptions)
Zero or more namespace-qualified element information items. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
An OPTIONAL types element information item
(see 3. Types).
Zero or more element information items from among the following, in any order:
interface element information items (see
2.2.2 XML Representation of
Interface Component).
binding element information items (see
2.8.2 XML Representation of Binding
Component).
service element information items (see
2.12.2 XML Representation of Service
Component).
Zero or more namespace-qualified element information items. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
targetNamespace attribute information
itemThe targetNamespace attribute information
item defines the namespace affiliation of top-level components
defined in this definitions element information
item. Interfaces, Bindings and Services 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 mapping between the properties of the Definitions component
(see 2.1.1 The Definitions
Component) and the XML Representation of the
definitions element information item (see
2.1.2 XML Representation of
Definitions Component) is described in Table 2-1.
| Property | Mapping |
|---|---|
| {interfaces} | The interface definitions corresponding
to all the interface element information
items in the [children] of the definitions
element information item, if any, plus any included or
imported interface definitions (see 4.
Modularizing WSDL descriptions). |
| {bindings} | The binding definitions corresponding
to all the binding element information items
in the [children] of the definitions element
information item, if any, plus any included or imported
binding definitions (see 4. Modularizing
WSDL descriptions). |
| {services} | The service definitions corresponding
to all the service element information items
in the [children] of the definitions element
information item, if any, plus any included or imported
service definitions (see 4. Modularizing
WSDL descriptions). |
| {type definitions} | The type definition components
corresponding to all the type definitions defined as descendants of
the types element information item, if any,
plus any imported type definitions. At a minimum this will include
all the types defined by XML Schema simpleType and
complexType element information items. It MAY
also include any definition from some other type system which
describes the [attributes] and [children] properties of an
element information item. |
| {element declarations} | The element declaration components
corresponding to all the element declarations defined as
descendants of the types element information
item, if any, plus any imported element definitions. At a
minimum this will include all the global element declarations
defined by XML Schema element element information
items. It MAY also include any definition from some other type
system which describes the [local name], [namespace name],
[attributes] and [children] properties of an element
information item. |
An Interface component describes sets of messages that a service sends and/or receives. It does this by grouping related messages into operations. An operation is a set of input and output messages, an interface is a set of operations.
An interface can optionally extend one or more other interfaces. In such cases the interface contains the operations of the interfaces it extends, along with any operations it defines. The interfaces a given interface extends MUST NOT themselves extend that interface either directly or indirectly.
Interfaces are named constructs and can be referred to by QName (see 2.16 QName resolution). For instance, Binding components refer to interfaces in this way.
The properties of the Interface component are as follows:
{name} An NCName as defined by [XML Namespaces].
{target namespace} A namespace name, as defined in [XML Namespaces].
{extended interfaces} A set of named interface definitions which this interface extends.
{style default} The default style of message schemas of the operations. If a per-operation value is not specified for this property, then this value becomes the default value of the property. See 2.3.2.3 style attribute information item with operation [owner]
{operations} A set of named interface operation definitions.
{features} A set of named feature definitions.
{properties} A set of named property definitions.
For each Interface component in the {interfaces} property of a definitions container the combination of {name} and {target namespace} properties must be unique.
<definitions>
<interface
name="xs:NCName"
extends="list of xs:QName"?
styleDefault="xs:anyURI"? >
<documentation />?
[ <operation /> | <feature /> | <property /> ]*
</interface>
</definitions>
The XML representation for an Interface component is an element information item with the following Infoset properties:
A [local name] of interface
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.2.2.1 name attribute information
item with interface [owner].
An OPTIONAL extends attribute information
item as described below in 2.2.2.2 extends attribute
information item.
An OPTIONAL styleDefault attribute information
item as described below in 2.2.2.3 styleDefault
attribute information item.
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more element information items from among the following, in any order:
Zero or more operation element information
items 2.3.2 XML
Representation of Interface Operation Component.
Zero or more feature element information
items 2.6.2 XML Representation of
Feature Component.
Zero or more property element information
items 2.7.2 XML Representation
of Property Component.
Zero or more namespace-qualified element information items amongst its [children]. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
name
attribute information item with interface
[owner]The name attribute information item
together with the targetNamespace attribute
information item of the definitions 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.
extends
attribute information itemThe 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.
styleDefault attribute information itemThe styleDefault attribute information
item indicates the default style used to construct the
{message} properties of {message references} of all operations
contained within the [owner] 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 xs:anyURI.
The mapping between the properties of the Interface component
(see 2.2.1 The Interface
Component) and the XML Representation of the
interface element information item (see
2.2.2 XML Representation of
Interface Component) is as described in Table 2-2.
| Property | Mapping |
|---|---|
| {name} | The actual value of the
name attribute information item |
| {target namespace} | The actual value of the
targetNamespace attribute information item of
the [parent] definitions element information
item |
| {style default} | The actual value of the
styleDefault attribute information item |
| {extended interfaces} | The set of interface definitions
resolved to by the values in the extends attribute
information item if any, plus the set of interface definitions
in the {extended interfaces} property of those interface
definitions, otherwise empty. |
| {operations} | The set of interface operation
definitions corresponding to the operation element
information items in [children], if any, plus the set of
interface operation definitions in the {operations} property of the
interface definitions in {extended interfaces}, if any. |
| {features} | The set of feature definitions
corresponding to the feature element information
items in [children], if any, plus the set of feature
definitions in the {features} property of the feature definitions
in {extended interfaces}, if any. |
| {properties} | The set of property definitions
corresponding to the property element information
items in [children], if any, plus the set of property
definitions in the {properties} property of the property
definitions in {extended interfaces}, if any. |
Note:
Per 2.2.1 The Interface Component, the Interface components in the {extended interfaces} property of a given Interface component MUST NOT contain that Interface component in any of their {extended interfaces} properties, that is to say, recursive extension of interfaces is disallowed.
An Interface Operation component describes an operation that a given interface supports. An operation is an interaction with the service consisting of a set (ordinary and fault) messages exchanged between the service and the other roles involved in the interaction, in particular the service requester. 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 exchange pattern} property).
A message exchange pattern defines placeholders for messages, the participants in the pattern (i.e., the sources and sinks of the messages), and the cardinality and sequencing of messages exchanged by the participants. The message placeholders are associated with specific message types by the operation using the pattern via message and fault references (see {message references} and {fault references} properties). The service whose operation is using the pattern becomes one of the participants of the pattern. This specification does not define a machine understandable language for defining message exchange patterns nor does it define any specific patterns. The companion specification, [WSDL 2.0 Message Exchange Patterns] defines a set of such patterns and defines identifying URIs any of which MAY be used as the value of the {message exchange pattern} property.
The properties of the Interface Operation component are as follows:
{name} An NCName as defined by [XML Namespaces].
{target namespace} A namespace name, as defined in [XML Namespaces].
{message exchange pattern} A URI identifying the message exchange pattern used by the operation.
{message references} A set of Message Reference components for the ordinary messages the operation accepts or sends. (See 2.4 Message Reference.)
{fault references} A set of Fault Reference components for the fault messages the operation accepts or sends. (See 2.5 Fault Reference.)
{style} A URI identifying the rules that were used to construct the {message} properties of {message references}. (See 2.3.1.1 Operation Style
{features} A set of named feature definitions used by the operation
{properties} A set of named property definitions used by the operation
Interface Operation components are local to Interface components; they cannot be referred to by QName, despite having both {name} and {target namespace} properties. That is, this specification does not preclude one from having two distinct Interface Operation components which have the same {name} and {target namespace} properties, as long as they are in different Interface components (with the same {target namespace} property).
For each Interface Operation component in the {operations} property of an Interface component the combination of {name} and {target namespace} properties must be unique.
In cases where, due to an interface extending one or more other interfaces, two or more Interface Operation components have the same value for their {name} and {target namespace} properties, then the component models of those Interface Operation components MUST be equivalent (see 2.14 Equivalence of Components). If the Interface Operation components are equivalent then they are considered to collapse into a single component. It is an error if two Interface Operation components have the same value for their {name} and {target namespace} properties but are not equivalent.
Note:
Due to the above rules, if two interfaces that have the same value for their {target namespace} property also have one or more operations that have the same value for their {name} property then those two interfaces cannot both form part of the derivation chain of a derived interface unless those operations are the same operation. Therefore it is considered good practice to ensure, where necessary, that the {name} property of Interface Operation components within a namespace are unique, thus allowing such derivation to occur without inadvertent error.
If the {style} property of an Interface Operation component has a value then that value (a URI) implies the rules that were used to define the {message} properties of all {message reference}s within that component. Note that the property MAY not have any value. If this property has a given value, then the rules implied by that value (such as rules that govern the schemas) MUST be followed or it is an error.
This specification defines the following pre-defined operation styles:
RPC Style (see 2.3.1.1.1 RPC Style)
Set-Attribute Style (see 2.3.1.1.2 Set-Attribute Style)
Get-Attribute Style (see 2.3.1.1.3 Get-Attribute Style)
The RPC style is selected by assigning the Interface Operation component's {style} property the value http://www.w3.org/2003/11/wsdl/style/rpc.
The RPC style may only be used for Interface Operation components whose {message exchange pattern} property has the value 'http://www.w3.org/2003/11/wsdl/in-only' or 'http://www.w3.org/2003/11/wsdl/in-out'.
Use of this value indicates that XML Schema [XML Schema: Structures] was used to define the schemas of the {message} properties of all {message reference} components of the Interface Operation component. Those schemas MUST adhere to the rules below.
Note that if the Interface Operation component uses the {message exchange pattern} 'http://www.w3.org/2003/11/wsdl/in-only' then there is no output element and hence the rules which refer to the output element do not apply.
The content model of input and output {message} elements are defined using a complex type that contains a sequence from XML Schema.
The sequence MUST only contain elements. It MUST NOT contain other structures such as xs:choice.
The sequence MUST contain only local element children. Note that these child elements MAY contain the following attributes: nillable, minOccurs and maxOccurs.
The localPart of input element's QName MUST be the same as the Interface operation component's name.
The localPart of the output element's QName is obtained by concatenating the name of the operation and the string value "Response", i.e. concat(operation/@name,"Response").
Input and output elements MUST both be in the same namespace.
The complex type that defines the body of an input or an output element MUST NOT contain any attributes.
If elements with the same qualified name appear as children of both the input and output elements, then they MUST both be declared using the same type.
The input or output sequence MUST NOT contain multiple children element declared with the same name.
Furthermore, the following rules MAY BE used to map between a message and a signature of a remote procedure call. These rules are suggested conventions to accommodate mapping.
If an element is a child of the input element and an element with the same name is not a child of the output element, then it represents an input parameter.
If an element is a child of the output element and an element with the same name is not a child of the input element, then it represents an output parameter.
If an element that occurs as a child element both in the input and the output elements, then it represents an in/out parameter.
Each element represents a single parameter irrespective of its cardinality.
| Editorial note: SW | 20031103 |
| The WG has adopted a proposal (http://lists.w3.org/Archives/Public/www-ws-desc/2003Oct/0347.html) to capture the signature using an extension attribute - that will be included here at a later draft. | |
The Set-Attribute style is selected by assigning the Interface Operation component's {style} property the value http://www.w3.org/2003/11/wsdl/style/set-attribute.
| Editorial note: JS | 20031105 |
| The WG has adopted the rules recommended by the attributes task force for this style, and these rules will be included in an updated draft. | |
The Get-Attribute style is selected by assigning the Interface Operation component's {style} property the value http://www.w3.org/2003/11/wsdl/style/get-attribute.
| Editorial note: JS | 20031105 |
| The WG has adopted the rules recommended by the attributes task force for this style, and these rules will be included in an updated draft. | |
<definitions>
<interface>
<operation
name="xs:NCName"
pattern="xs:anyURI"
style="xs:anyURI"? >
<documentation />?
[ <feature /> | <property /> |
[ <input /> | <output /> | <infault /> | <outfault /> ]+
]*
</operation>
</interface>
</definitions>
The XML representation for an Interface Operation component is an element information item with the following Infoset properties:
A [local name] of operation
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
Two or more attribute information items amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.3.2.1 name attribute
information item with operation [owner].
A REQUIRED pattern attribute information
item as described below in 2.3.2.2 pattern
attribute information item with operation [owner].
An OPTIONAL style attribute information
item as described below in 2.3.2.3 style attribute
information item with operation [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information item amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more element information items from among the following, in any order:
Zero or more input element information
items (see 2.4.2 XML
Representation of Message Reference Component).
Zero or more output element information
items (see 2.4.2 XML
Representation of Message Reference Component).
Zero or more infault element information
items (see 2.5.2 XML
Representation of Fault Reference Component).
Zero or more outfault element information
items (see 2.5.2 XML
Representation of Fault Reference Component).
A feature element information item (see
2.6.2 XML Representation of Feature
Component).
A property element information item (see
2.7.2 XML Representation of Property
Component).
Zero or more namespace-qualified element information items amongst its [children]. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
At least one of the [children] MUST be an input ,
output , infault , or
outfault element information item.
name
attribute information item with operation
[owner]The name attribute information item
identifies a given operation 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.
pattern attribute information item with
operation [owner]The pattern attribute information item
identifies the message exchange pattern a given operation uses.
The pattern attribute information item has
the following Infoset properties:
A [local name] of pattern
A [namespace name] which has no value
The type of the pattern attribute information
item is xs:anyURI.
style
attribute information item with operation
[owner]The style attribute information item
indicates the rules that were used to construct the {message}
properties of {message reference} components of the [owner]
operation.
The style attribute information item has
the following Infoset properties:
A [local name] of style
A [namespace name] which has no value
The type of the style attribute information
item is xs:anyURI.
The mapping between the properties of the Interface Operation
component (see 2.3.1 The
Interface Operation Component) and the XML Representation
of the interface element information item
(see 2.3.2 XML
Representation of Interface Operation Component) is as
described in Table
2-3.
| Property | Mapping |
|---|---|
| {name} | The actual value of the
name attribute information item |
| {target namespace} | The actual value of the
targetNamespace attribute information item of
the [parent] definitions element information
item of the [parent] interface element
information item. |
| {message exchange pattern} | The actual value of the
pattern attribute information item |
| {message references} | The set of message references
corresponding to the input and output
element information items in [children], if any. |
| {fault references} | The set of fault references
corresponding to the infault and outfault
element information items in [children] if any. |
| {style} | The actual value of the
style attribute information item if present,
otherwise the actual value of the styleDefault
attribute information item of the [parent]
interface element information item if
present, otherwise none. |
| {features} | The set of features corresponding to
the feature element information items in
[children], if any. |
| {properties} | The set of properties corresponding to
the property element information items in
[children], if any. |
A Message Reference component associates XML element declarations that define the message content for one of the messages participating in an operation.
Message Reference components are identified by the role the message plays in the {message exchange pattern} that the operation is using. That is, a message exchange pattern defines a set of placeholder messages that participate in the pattern and assigns them unique names within the pattern. The purpose of a Message Reference component is to associate an actual message type (XML element declaration for message content) for the message that will perform a specific role in the message exchange pattern.
The properties of the Message Reference component are as follows:
{message reference} An NCName as defined by [XML Namespaces]. This property identifies the role this message plays in the {message exchange pattern} of the Interface Operation component this is contained within. The value of this property MUST match the name of a placeholder message defined by the message exchange pattern.
{direction} One of 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 reference} property in the {message exchange pattern} of the Interface Operation component this is contained within.
{message} A reference to an XML element declaration. This element represents the content or "payload" of the message.
For each Message Reference component in the {message references} property of an Interface Operation component the {message reference} property MUST be unique.
<definitions>
<interface>
<operation>
<input
messageReference="xs:NCName"?
message="xs:QName"? >
<documentation />?
</input>
<output
messageReference="xs:NCName"?
message="xs:QName"? >
<documentation />?
</output>
</operation>
</interface>
</definitions>
The XML representation for a Message Reference component is an element information item with the following Infoset properties:
A [local name] of input or output
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
Zero or more attribute information items amongst its [attributes] as follows:
An OPTIONAL messageReference attribute
information item as described below in 2.4.2.1
messageReference attribute information item with input, or output
[owner].
If the {message exchange pattern} of the Interface Operation
component has only one message with a given value for {direction},
then the messageReference attribute information
item is optional for the XML representation of the Message
Reference component with that {direction}.
An OPTIONAL message attribute information
item as described below in 2.4.2.2 message attribute
information item with input, or output [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more namespace-qualified element information items. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
messageReference attribute information item
with input , or output [owner]The messageReference attribute information
item identifies the role of this message in the message
exchange pattern of the given operation element
information item.
The messageReference attribute information
item has the following Infoset properties:
A [local name] of messageReference
A [namespace name] which has no value
The type of the messageReference attribute
information item is xs:NCName.
message attribute information item with
input , or output [owner]The message attribute information item
refers, by QName, to an element declaration component.
The message attribute information item has
the following Infoset properties:
A [local name] of message .
A [namespace name] which has no value.
The type of the message attribute information
item is xs:QName.
The mapping between the properties of the Message Reference component (see 2.4.1 The Message Reference Component) and the XML Representation of the message reference element information item (see 2.4.2 XML Representation of Message Reference Component) is as described in Table 2-4.
| Property | Mapping |
|---|---|
| {message reference} | The actual value of the
messageReference attribute information item
if any; otherwise the {message reference} property of the message
with same {direction} from the {message exchange pattern} of the
Interface Operation component, provided there is exactly one such
message; otherwise empty. |
| {direction} | If the [local name] of the element
information item is input then "in", else if the
[local name] of the element information item is
output then "out". |
| {message} | The element declaration resolved to by
the value of the message attribute information
item if present, otherwise a similar construct in some type
system as referred to by some other attribute information
item if present, otherwise empty. |
A Fault Reference component associates an XML element declaration that defines the fault message contents for a fault that occurs related to a message participating in an operation.
Fault Reference components are identified by the role the related message plays in the {message exchange pattern} that the operation is using. That is, a message exchange pattern defines a set of placeholder messages that participate in the pattern and assigns them unique names within the pattern. The purpose of a Fault Reference component is to associate an actual message type (XML element declaration) for the fault that will occur related to a specific message in the message exchange pattern.
The companion specification [WSDL 2.0 Message Exchange Patterns] defines two fault patterns that a given message exchange pattern may use. For the pattern fault-replaces-message, the message that the fault relates to identifies the message in place of which the declared fault message will occur. Thus, the fault message will travel in the same direction as the message it replaces in the pattern. For the pattern message-triggers-fault, the message that the fault relates to identifies the message after which the indicated fault may occur, in the opposite direction of the referred to message. That is, the fault message will travel in the opposite direction of the message it comes after in the pattern.
More than one Fault Reference component may refer to the same message role. This allows one to indicate that there is more than one type of fault that is related to that message.
The properties of the Fault Reference component are as follows:
{name} An NCName as defined by [XML Namespaces]. This property is used to identify the fault.
{message reference} An NCName as defined by [XML Namespaces]. This property identifies the message which this fault relates to in the {message exchange pattern} of the Interface Operation component this is contained within. The value of this property MUST match the name of a placeholder message defined by the message exchange pattern.
{direction} One of in or out indicating whether the fault is coming to the service or going from the service, respectively. The direction MUST be consistent with the direction implied by the fault rule used in the message exchange pattern of the operation. For example, if the fault rule fault-replaces-message is used, then a fault which refers to an outgoing message would have a {direction} property value of out. If the fault rule message-triggers-fault is used, then a fault which refers to an outgoing message would have a {direction} property value of in as the fault travels in the opposite direction of the message.
{message} A reference to an XML element declaration. This element represents the content or "payload" of the fault.
If two or more Interface Operation components in the same Interface component have Fault Reference components with the same {name} value, then their {message} properties MUST have the same value. This allows two or more operations to indicate that they both produce the same fault.
<definitions>
<interface>
<operation>
<infault
name="xs:NCName"
messageReference="xs:NCName"?
message="xs:QName"?
<documentation />?
</infault>*
<outfault
name="xs:NCName"
messageReference="xs:NCName"?
message="xs:QName"?
<documentation />?
</outfault>*
</operation>
</interface>
</definitions>
The XML representation for a Fault Reference component is an element information item with the following Infoset properties:
A [local name] of infault or
outfault
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.5.2.1 name attribute
information item with infault, or outfault [owner].
An OPTIONAL messageReference attribute
information item as described below in 2.5.2.2
messageReference attribute information item with infault, or
outfault [owner].
If the {message exchange pattern} of the Interface Operation
component has only one message with a given value for {direction},
the messageReference attribute information
item is optional for the XML representation of any Fault
Reference component with the same value for {direction} (if the
fault pattern of the {message exchange pattern} is
fault-replaces-message) or of any Fault Reference
component with the opposite value for {direction} (if the fault
pattern is message-triggers-fault).
An OPTIONAL message attribute information
item as described below in 2.5.2.3 message attribute
information item with infault, or outfault [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more namespace-qualified element information items. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
name
attribute information item with infault , or
outfault [owner]The name attribute information item
identifies the fault.
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.
messageReference attribute information item
with infault , or outfault [owner]The messageReference attribute information
item identifies the message in the message exchange pattern of
the given operation element information item
to which this fault is related to.
The messageReference attribute information
item has the following Infoset properties:
A [local name] of messageReference
A [namespace name] which has no value
The type of the messageReference attribute
information item is xs:NCName.
message
attribute information item with infault , or
outfault [owner]The message attribute information item
refers, by QName, to an element declaration component.
The message attribute information item has
the following Infoset properties:
A [local name] of message .
A [namespace name] which has no value.
The type of the message attribute information
item is xs:QName.
The mapping between the properties of the Fault Reference component (see 2.5.1 The Fault Reference Component) and the XML Representation of the message reference element information item (see 2.5.2 XML Representation of Fault Reference Component) is as described in Table 2-5.
| Property | Mapping |
|---|---|
| {name} | The actual value of the
name attribute information item |
| {message reference} | The actual value of the
messageReference attribute information item
if any; otherwise the {message reference} property of the message
with the same {direction} from the {message exchange pattern} of
the Interface Operation component, provided there is exactly one
such message and the fault pattern of the {message
exchange pattern} is fault-replaces-message; otherwise the
{message reference} property of the message with the opposite
{direction}, provided there is exactly one such message and the
fault pattern is message-triggers-fault;
otherwise empty. |
| {direction} | If the [local name] of the element
information item is infault then "in", else if
the [local name] of the element information item is
outfault then "out". |
| {message} | The element declaration resolved to by
the value of the message attribute information
item if present, otherwise a similar construct in some type
system as referred to by some other attribute information
item if present, otherwise empty. |
A feature component describes an abstract piece of functionality typically associated with the exchange of messages between communicating parties. Although WSDL poses no constraints on the potential scope of such features, examples might include "reliability", "security", "correlation", and "routing". The presence of a feature component in a WSDL description indicates that the feature is either accepted or required in particular interactions.
Features in the Feature component are identified by their URI. Unless otherwise specified, recognizing a feature's URI is assumed to be semantically equivalent to understanding the feature's specification.
The properties of the Feature component are as follows:
{name} A URI as defined by [IETF RFC 2396].
{required} A boolean value.
<feature
uri="xs:QName"
required="xs:boolean"? >
<documentation />?
</feature>
The XML representation for a Feature component is an element information item with the following Infoset properties:
A [local name] of feature
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED uri attribute information item
as described below in 2.6.2.1
uri attribute information item with feature [owner].
An OPTIONAL required attribute information
item as described below in 2.6.2.2 required attribute
information item with feature [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more namespace-qualified element information items. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
uri attribute
information item with feature [owner]The uri attribute information item
specifies the URI of the feature.
The uri attribute information item has the
following Infoset properties:
A [local name] of uri
A [namespace name] which has no value
The type of the uri attribute information
item is xs:anyURI .
required
attribute information item with feature
[owner]The required attribute information item
specifies whether the use of the feature is mandatory or
optional.
The required attribute information item
has the following Infoset properties:
A [local name] of required
A [namespace name] which has no value
The type of the required attribute information
item is xs:boolean .
The mapping between the properties of the Feature component (see
2.6.1 The Feature Component)
and the XML Representation of the feature element
information item (see 2.6.2 XML
Representation of Feature Component) is as described in
Table 2-6.
| Property | Mapping |
|---|---|
| {name} | The actual value of the
uri attribute information item |
| {required} | If the value of the
required attribute information item is "true"
or "1", then "true", otherwise "false". |
A Property component describes the set of possible values for a particular property. The permissible values are specified by references to a Schema description. A property is typically used to control a feature's behavior. Properties, and hence property values, can be shared amongst features.
The properties of the Property component are as follows:
{name} A URI as defined by [IETF RFC 2396].
{required} A boolean value.
{value constraint} A type definition constraining the value of the property.
<property
uri="xs:QName"
required="xs:boolean"? >
<documentation />?
[ <value /> | <constraint /> ]
</property>
The XML representation for a Property component is an element information item with the following Infoset properties:
A [local name] of property
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED uri attribute information item
as described below in 2.7.2.1
uri attribute information item with property [owner].
An OPTIONAL required attribute information
item as described below in 2.7.2.2 required attribute
information item with feature [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
One or more element information items amongst its [children], in order as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
One REQUIRED element information item from among the following:
A value element information item as
described in 2.7.2.3 value
element information item with property [parent]
A constraint element information item as
described in 2.7.2.4
constraint element information item with property
[parent]
Zero or more namespace-qualified element information items amongst its [children]. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
uri attribute
information item with property [owner]The uri attribute information item
specifies the URI of the property. It has the following Infoset
properties:
A [local name] of uri
A [namespace name] which has no value
The type of the uri attribute information
item is xs:anyURI .
required
attribute information item with feature
[owner]The required attribute information item
specifies whether the use of the property is mandatory or
optional.
The required attribute information item
has the following Infoset properties:
A [local name] of required
A [namespace name] which has no value
The type of the required attribute information
item is xs:boolean .
value element
information item with property [parent]
<property>
<value>
xs:anySimpleType
</value>
</property>
The value element information item
specifies the value of the property. It has the following Infoset
properties:
A [local name] of value
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
The type of the value element information
item is xs:anySimpleType .
constraint
element information item with property
[parent]
<property>
<constraint>
xs:QName
</constraint>
</property>
The constraint element information item
specifies a constraint on the value of the property. It has the
following Infoset properties:
A [local name] of constraint
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
The type of the constraint attribute
information item is xs:QName .
The mapping between the properties of the Property component
(see 2.7.1 The Property
Component) and the XML Representation of the
property element information item (see
2.7.2 XML Representation of Property
Component) is as described in Table 2-7.
| Property | Mapping |
|---|---|
| {name} | The actual value of the
uri attribute information item |
| {value constraint} | If the constraint
element information item is present, the type referred to
by the value of this element information item. Otherwise,
if the value element information item is
present, an anonymous simple type, whose base type is
"xs:anySimpleType", with a single "enumeration" facet whose value
is that of the element information item. Otherwise,
"xs:anySimpleType". |
A Binding component describes a concrete message format and transmission protocol which may be used to define an endpoint (see 2.13 Endpoint). Binding components can be used to describe such information in a re-usable manner for any interface or specifically for a given interface. Furthermore, binding information MAY be specified on a per-operation basis (see 2.9.1 The Binding Operation Component) within an interface in addition to across all operations of an interface.
If a Binding component specifies operation-specific binding details (by including Binding Operation components) then it MUST specify an interface the Binding component applies to to indicate which interface the operations come from.
Conversely, a Binding component MAY omit any operation-specific binding details and MAY omit specifying an interface. Binding components that do not specify an interface MAY be used to specify operation-independent binding details for Service components with different interfaces.
No concrete binding details are given in this specification. The companion specification, WSDL (Version 2.0): Bindings [WSDL 2.0 Bindings] defines such bindings for SOAP 1.2 [SOAP 1.2 Part 1: Messaging Framework], HTTP [IETF RFC 2616] and MIME [IETF RFC 2045]. Other specifications MAY define additional binding details. Such specifications are expected to annotate the Binding component (and its sub-components) with additional properties and specify the mapping between those properties and the XML representation.
Bindings are named constructs and can be referred to by QName (see 2.16 QName resolution). For instance, Endpoint components refer to bindings in this way.
The properties of the Binding component are as follows:
{name} An NCName as defined by [XML Namespaces].
{target namespace} A namespace name, as defined in [XML Namespaces].
{interface} An named interface definition indicating the interface for which binding information is being specified.
{operations} A set of named binding operation definitions
{features} A set of named feature definitions
{properties} A set of named property definitions
For each Binding component in the {bindings} property of a definitions container, the combination of {name} and {target namespace} properties must be unique.
<definitions>
<binding
name="xs:NCName"
interface="xs:QName"? >
<documentation />?
[ <feature /> | <property /> | <operation /> ]*
</binding>
</definitions>
The XML representation for a Binding component is an element information item with the following Infoset properties:
A [local name] of binding
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.8.2.1
name attribute information item with binding [owner].
An OPTIONAL interface attribute information
item as described below in 2.8.2.2 interface attribute
information item with binding [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more element information items from among the following, in any order:
Zero or more operation element information
items (see 2.9.2 XML
Representation of Binding Operation Component).
Zero or more feature element information
items (see 2.6.2 XML
Representation of Feature Component).
Zero or more property element information
items (see 2.7.2 XML
Representation of Property Component).
Zero or more namespace-qualified element information items. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl". Such element information items are considered to be binding extension elements(see 2.8.2.3 Binding extension elements).
name
attribute information item with binding
[owner]The name attribute information item
together with the targetNamespace attribute
information item of the definitions element
information item forms the QName of the binding.
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.
interface
attribute information item with binding
[owner]The interface attribute information item
refers, by QName, to an Interface component.
The interface attribute information item
has the following Infoset properties:
A [local name] of interface
A [namespace name] which has no value
The type of the interface attribute information
item is xs:QName.
Binding extension elements are used to provide information specific to a particular binding. The semantics of such element information items are defined by the specification for those element information items. Such specifications are expected to annotate the Binding component with additional properties and specify the mapping between those properties and the XML representation.
The mapping between the properties of the Binding component (see
2.8.1 The Binding Component)
and the XML Representation of the binding element
information item (see 2.8.2 XML
Representation of Binding Component) is as described in
Table 2-8.
| Property | Mapping |
|---|---|
| {name} | The actual value of the
name attribute information item |
| {target namespace} | The actual value of the
targetNamespace attribute information item of
the [parent] definitions element information
item. |
| {interface} | The Interface component resolved to by
the actual value of the interface attribute
information item, if any. |
| {operations} | The set of Binding Operation components
corresponding to the operation element information
items in [children], if any. |
| {features} | The set of Feature components
corresponding to the feature element information
items in [children], if any. |
| {properties} | The set of Property components
corresponding to the property element information
items in [children], if any. |
A Binding Operation component describes a concrete binding for a particular operation of an interface to a particular concrete message format. A particular operation of an interface is uniquely identified by the target namespace of the interface and the name of the operation within that interface.
The properties of the Binding Operation component are as follows:
{name} An NCName as defined by [XML Namespaces].
{target namespace} A namespace name, as defined in [XML Namespaces].
{message references} A set of Binding Message Reference components
{fault references} A set of Binding Fault Reference components
The tuple of properties {name} and {target namespace} identify the operation for which binding information is being specified.
For each Binding Operation component in the {operations} property of a Binding component the combination of {name} and {target namespace} properties must be unique. That is, one cannot define multiple bindings for the same operation.
<definitions>
<binding>
<operation
name="xs:QName" >
<documentation />?
[ <feature /> | <property /> |
[ <input /> | <output /> | <infault /> | <outfault /> ]+
]*
</operation>
</binding>
</definitions>
The XML representation for a Binding Operation component is an element information item with the following Infoset properties:
A [local name] of operation
A [namespace name] of "http://www.w3.org/2003/11/wsdl"
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.9.2.1 name attribute
information item with operation [owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more element information items from among the following, in any order:
Zero or more input element information
items (see 2.10
Binding Message Reference )
Zero or more output element information
items (see 2.10
Binding Message Reference )
Zero or more infault element information
items (see 2.10
Binding Message Reference )
Zero or more outfault element information
items (see 2.10
Binding Message Reference )
Zero or more feature element information
items
Zero or more property element information
items
Zero or more namespace-qualified element information items amongst its [children]. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl". Such element information items are considered to be binding operation extension elements as described below (see 2.9.2.2 Binding Operation extension elements).
name
attribute information item with operation
[owner]The name attribute information item
identified a given operation element information
item within a given binding 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:QName.
Binding Operation extension elements are used to provide information specific to a particular operation in a binding. The semantics of such element information items are defined by the specification for those element information items. Such specifications are expected to annotate the Binding Operation component with additional properties and specify the mapping between those properties and the XML representation.
The mapping between the properties of the Binding Operation
component (see 2.9.1 The
Binding Operation Component) and the XML Representation of
the binding element information item (see
2.9.2 XML Representation of
Binding Operation Component) is as described in Table 2-9.
| Property | Mapping |
|---|---|
| {name} | The value of the [local name] Infoset
property of the qualified name which is the actual value of the
name attribute information item. |
| {target namespace} | The value of the [namespace name]
Infoset property of the qualified name which is the actual value of
the name attribute information item. |
| {messages references} | The set of Binding Message Reference
components corresponding to the input and
output element information items in
[children], if any. |
| {fault references} | The set of Binding Fault Reference
components corresponding to the infault and
outfault element information items in
[children], if any. |
| {features} | The set of Feature components
corresponding to the feature element information
item in [children], if any. |
| {properties} | The set of Property components
corresponding to the property element information
item in [children], if any. |
A Binding Message Reference component describes a concrete binding for a particular message participating in an operation to a particular concrete message format.
The properties of the Binding Message Reference component are as follows:
{message reference} An NCName as defined by [XML Namespaces]. The value of this property identifies the message within the operation for which binding details are being specified.
{direction} One of in or out indicating whether the message is coming to the service or going from the service, respectively.
For each Binding Message Reference component in the {message references} property of a Binding Operation component the {message reference} property must be unique. That is, the same message cannot be bound twice within the same operation.
<definitions>
<binding>
<operation>
<input
messageReference="xs:NCName" >
<documentation />?
</input>
<output
messageReference="xs:NCName" >
<documentation />?
</output>
</operation>
</binding>
</definitions>
The XML representation for a Binding Message Reference component is an element information item with the following Infoset properties:
A [local name] of input or output
.
A [namespace name] of "http://www.w3.org/2003/11/wsdl".
One or more attribute information items amongst its [attributes] as follows:
A REQUIRED messageReference attribute
information item as described below in 2.10.2.1
messageReference attribute information item with input or output
[owner].
Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be "http://www.w3.org/2003/11/wsdl".
Zero or more element information items amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation).
Zero or more namespace-qualified element information items amongst its [children]. The [namespace name] of such element information items MUST NOT be "http://www.w3.org/2003/11/wsdl". Such element information items are considered to be binding message reference extension elements, as described below (see 2.10.2.2 Binding Message Reference extension elements).
messageReference attribute information item
with input or output [owner]The messageReference attribute information
item has the following Infoset properties:
A [local name] of messageReference .
A [namespace name] which has no value.
The type of the messageReference attribute
information item is xs:NCName.
Binding Message Reference extension elements are used to provide information specific to a particular message in an operation. The semantics of such element information items are defined by the specification for those element information items. Such specifications are expected to annotate the Binding Message Reference component with additional properties and specify the mapping between those properties and the XML representation.
The mapping between the properties of the Binding Message
Reference component (see 2.10.1 The Binding Message
Reference Component) and the XML Representation of the
binding element information item (see
2.10.2 XML
Representation of Binding Message Reference Component) is
as described in Table 2-10.
| Property | Mapping |
|---|---|
| {message reference} | The actual value of the
messageReference attribute information
item |
| {direction} | If the [local name] of the element
information item is input then "in", else if the
[local name] of the element i |