<img
width="72" height="48" alt= "W3C"
src="http://www.w3.org/Icons/w3c_home" />
This document is also available in these non-normative formats: postscript , PDF , XML , and plain text .
Copyright © 2004 © 2004 W3C ® ® ( <a href="http://www.csail.mit.edu/"> 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. It also defines criteria for a conformant processor of this language.
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"> W3C Last Call Working Draft .If the feedback is positive, the Working Group plans to submit this specification for consideration as a W3C Candidate Recommendation. Comments on this document are invited and are to be sent to the public public-ws-desc-comments@w3.org mailing list ( public archive ). Comments can be sent until 4 October 2004 .
Three formal objections from Working Group participants have been received against portions of the Web Services Description Language (WSDL) WSDL 2.0 document. specification. Feedback is specifically encouraged on these topics:
Compositors (see objection )
Feature and properties (see objection and follow-on message )
Requiring unique GEDs or required feature to distinguish operations (see objection )
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. Part 1 Change Log . A <a href= "http://dev.w3.org/cvsweb/%7Echeckout%7E/2002/ws/desc/issues/wsd-issues.html"> list of open issues against Issues about this document are documented in the last call issues list is also available. maintained by the Working Group.
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.
deleted text: Comments on this document are invited and are to be sent to the public <a href="mailto:www-ws-desc@w3.org"> www-ws-desc@w3.org </a> mailing list ( <a href= "http://lists.w3.org/Archives/Public/www-ws-desc/"> public archive </a> ). </p> <p> 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 .
1. Introduction
2. Component Model
3. Types
4. Modularizing WSDL descriptions
5. Documentation
6. Language
Extensibility
7. Locating WSDL Documents
8. Conformance
9. XML Syntax Summary
(Non-Normative)
10. References
A. The application/wsdl+xml Media
Type
B. Acknowledgements
(Non-Normative)
C. URI References for WSDL
constructs (Non-Normative)
D. Migrating from WSDL 1.1 to WSDL 2.0
(Non-Normative)
E. Examples of Specifications of
Extension Elements for Alternative Schema Language Support.
(Non-Normative)
F. Part 1 Change Log
(Non-Normative)
1. Introduction
1.1 Web
Service
1.2 Notational
Conventions
1.3 WSDL
Terminology
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.1.1
Operation
Name Mapping Requirement
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
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]
2.3.2.2
element attribute
information item with fault [owner]
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 RPC Style
2.4.2.1
wrpc:signature Extension
2.4.2.2
XML Representation of the wrpc:signature
Extension
2.4.2.3
wrpc:signature Extension Mapping To Properties of an
Interface Operation Component
2.4.3
XML Representation of
Interface Operation Component
2.4.2.1
2.4.3.1
name attribute
information item with operation [owner]
2.4.2.2
2.4.3.2
pattern attribute
information item with operation [owner]
2.4.2.3
2.4.3.3
style attribute
information item with operation [owner]
2.4.2.4
2.4.3.4
safe attribute
information item with operation [owner]
2.4.3
2.4.4
Mapping Interface Operation's
XML Representation to Component Properties
deleted text: 2.4.4
<a href= "#RPCStyle"> RPC Style </a> <br />
2.4.4.1
<a href= "#InterfaceOperation_RPC_Signature_Definition">
wrpc:signature Extension </a> <br />
2.4.4.2
<a href="#InterfaceOperation_RPC_Signature_XMLRep"> XML
Representation of the wrpc:signature Extension </a> <br
/>
2.4.4.3
<a href="#InterfaceOperation_RPC_Signature_Mapping">
wrpc:signature Extension Mapping To Properties of an Interface
Operation Component </a> <br />
2.5 Message
Reference
2.5.1 The Message Reference
Component
2.5.2 XML Representation of Message Reference
Component
2.5.2.1
messageLabel
attribute information item with input, or output [owner]
2.5.2.2
element attribute
information item with input, or output [owner]
2.5.3 Mapping Message Reference's XML
Representation to Component Properties
2.6 Fault
Reference
2.6.1 The Fault Reference Component
2.6.2 XML Representation of Fault Reference
Component
2.6.2.1
ref attribute information
item with infault, or outfault [owner]
2.6.2.2
messageLabel
attribute information item with infault, or outfault
[owner]
2.6.3 Mapping 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
uri attribute information item
with feature [owner]
2.7.2.2
required attribute
information item with feature [owner]
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
uri attribute information item
with property [owner]
2.8.2.2
required attribute
information item with feature
property [owner]
2.8.2.3
value element information item
with property [parent]
2.8.2.4
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]
2.9.2.2
interface attribute
information item with binding [owner]
2.9.2.3
type
attribute information item with binding [owner]
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]
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]
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]
2.12.2.2
Binding
Message Reference extension elements
2.12.3 Mapping Binding Message
Reference's XML Representation to Component Properties
2.13 Service
2.13.1 The Service Component
2.13.2 XML Representation of Service Component
2.13.2.1
name attribute information item
with service [owner]
2.13.2.2
interface attribute
information item with service [owner]
2.13.3 Mapping Service's XML Representation to
Component Properties
2.14 Endpoint
2.14.1 The Endpoint Component
2.14.2 XML Representation of Endpoint
Component
2.14.2.1
name attribute information item
with endpoint [owner]
2.14.2.2
binding attribute information
item with endpoint [owner]
2.14.2.3
address attribute information item with endpoint
[owner]
2.14.2.4
Endpoint extension
elements
2.14.3 Mapping Endpoint's XML Representation to
Component Properties
2.15 Definition of the Simple Types Used in the Component
Model
2.15.1
string
Type
2.15.2
Token
Type
2.15.3
NCName
Type
2.15.4
anyURI
Type
2.15.5
QName
Type
2.15.6
boolean
Type
2.15.7
int
Type
2.16 Equivalence of Components
2.16
2.17 Symbol Spaces
2.17
2.18 QName resolution
2.18
2.19 Comparing URIs
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 <a
href="#eii-extensbility"> 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 Documents
7.1 wsdli:wsdlLocation attribute information
item
8. Conformance
8.1 Document
Conformance
8.2 XML Information Set
Conformance
8.3 Processor
Conformance
9. XML Syntax Summary
(Non-Normative)
10. References
10.1 Normative References
10.2 Informative References
A. The application/wsdl+xml
Media Type
A.1 Registration
A.2 Security
considerations
B. Acknowledgements
(Non-Normative)
C. URI References for WSDL
constructs (Non-Normative)
C.1 WSDL
URIs
C.2 Fragment
Identifiers
C.3 Extension
Elements
C.4 Example
D. Migrating from WSDL 1.1 to WSDL 2.0
(Non-Normative)
D.1 Operation
Overloading
D.2 PortTypes
D.3 Ports
E. Examples of Specifications of
Extension Elements for Alternative Schema Language Support.
(Non-Normative)
E.1 DTD
E.1.1 namespace attribute information item
E.1.2 location attribute information item
E.1.3 References to Element Definitions
E.2 RELAX NG
E.2.1 Importing RELAX NG
E.2.1.1
ns attribute information
item
E.2.1.2
href attribute information
item
E.2.2 Embedding RELAX NG
E.2.2.1
ns attribute information
item
E.2.3 References to Element Declarations
F. Part 1 Change Log (Non-Normative)
F.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. It also defines criteria for a conformant processor of this language. The WSDL Version 2.0 Part 2: Message Exchange Patterns specification [ WSDL 2.0 Message Exchange Patterns Predefined Extensions ] defines 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 ]).
This specification uses curly brackets (e.g., {property}) to indicate a property in the WSDL component model, as defined in 2. Component Model .
| Prefix | Namespace | Notes |
|---|---|---|
| wsdl | "http://www.w3.org/2004/03/wsdl" "http://www.w3.org/2004/08/wsdl" | A normative XML Schema [ XML Schema: Structures ], [ XML Schema: Datatypes ] document for the "http://www.w3.org/2004/03/wsdl" "http://www.w3.org/2004/08/wsdl" namespace can be found at <a href= "http://www.w3.org/2004/03/wsdl"> http://www.w3.org/2004/03/wsdl http://www.w3.org/2004/08/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. |
| wsdli | "http://www.w3.org/2004/03/wsdl-instance" "http://www.w3.org/2004/08/wsdl-instance" | A normative XML Schema [ XML Schema: Structures ], [ XML Schema: Datatypes ] document for the "http://www.w3.org/2004/03/wsdl-instance" "http://www.w3.org/2004/08/wsdl-instance" namespace can be found at <a href= "http://www.w3.org/2004/03/wsdl-instance"> http://www.w3.org/2004/03/wsdl-instance http://www.w3.org/2004/08/wsdl-instance . |
| wsdls | "http://www.w3.org/2004/08/wsdl-simple-types" | This prefix and namespace name are used to refer to the simple types defined by this specification for use in the component model, see 2.15 Definition of the Simple Types Used in the Component Model . |
| wrpc | "http://www.w3.org/2004/03/wsdl/rpc" "http://www.w3.org/2004/08/wsdl/rpc" | A normative XML Schema [ XML Schema: Structures ], [ XML Schema: Datatypes ] document for the "http://www.w3.org/2004/03/wsdl/rpc" "http://www.w3.org/2004/08/wsdl/rpc" namespace can be found at <a href= "http://www.w3.org/2004/03/wsdl/rpc"> http://www.w3.org/2004/03/wsdl/rpc http://www.w3.org/2004/08/wsdl/rpc . 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 wsoap | "http://www.w3.org/2003/11/wsdl/soap12" "http://www.w3.org/2004/08/wsdl/soap12" | Defined by WSDL 2.0: Bindings [ WSDL 2.0 Bindings ]. |
| whttp | "http://www.w3.org/2003/11/wsdl/http" "http://www.w3.org/2004/08/wsdl/http" | |
| 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 notes, pseudo-schemas, examples, and sections explicitly marked as "Non-Normative".
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, `|' represents choice. Attributes are conventionally assigned a value which corresponds to their type, 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>
This section describes the terms and concepts introduced in Part 1 of the WSDL Version 2.0 specification (this document).
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 reference, etc.
This section describes the conceptual model for of WSDL as a set of components with attached properties, each aspect of which collectively describe a Web service that WSDL can describe having service. Each subsection herein describes a different type of component, its own property. In addition defined properties, and its representation as an XML Infoset [ XML Information Set ].
Components are typed collections of properties that correspond to different aspects of Web services.
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 these components all OPTIONAL properties whose type is provided, along 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 independent of any particular serialization of the component model. In order to avoid creating an implicit dependency on a particular serialization, this specification defines its own set of simple types for use by component definitions, rather than reusing an existing one (say [ XML Schema: Datatypes ]). By convention, those types are defined in the http://www.w3.org/2004/08/wsdl-simple-types namespace and references to them use the wsdls prefix, see 2.15 Definition of the Simple Types Used in the Component Model .All the value spaces of all simple types used by the the component model are a superset of the value spaces of the XML Schema simple types with the same name, i.e. every xs:string is also a wsdls:string (but the opposite is not true). Hence, for brevity, in the sections describing the mapping from that the XML Infoset representation of a WSDL document to the various its component properties. How model we use "actual values" as defined by the XML Schema specification [ XML Schema: Datatypes ] as if they were members of the value space of the corresponding WSDL-defined simple types. So, for instance, we talk of "assigning the actual value of the "name" attribute information item (a xs:string ) "to the {name} property (of type wsdls:string )" of a certain component.
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 descriptions .
A component model can be extracted from a given XML Infoset which conforms to the XML Schema for WSDL 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 descriptions .
This document does not specify a means of producing an XML Infoset representation from a given set of WSDL components. Furthermore, given a particular serialization, not all valid sets of components is constructed is outside need be serializable to it. For instance, due to the scope use in the component model of this specification. types that cannot be described using XML schema (.e.g wsdls:string ), it is possible to come up with a valid set of WSDL components that cannot be serialized as an XML 1.0 document.
At the abstract level, the Definitions component is just a container for two categories of components; WSDL components and type system components.
WSDL components are interfaces, bindings and services.
Type system components describe the constraints on a message's content. By default, these constraints are element declarations drawn from some type system. They expressed in terms of the [ XML Information Set ], i.e. they define the [local name], [namespace name], [children] and [attributes] properties of an deleted text: <em> element information item </em>. item. Type systems based upon other data models are generally accommodated by extensions to WSDL; see 6. Language Extensibility .In the case where they define information equivalent to that of a XML Schema global element declaration, they can more simply be treated as if they were such a declaration.
The properties of the Definitions component are as follows:
{interfaces} OPTIONAL. A set of named interface definitions Interface components.
{bindings} OPTIONAL. A set of named binding definitions Binding components.
{services} OPTIONAL. A set of named service definitions Service components.
{element declarations} OPTIONAL. A set of named element declarations, each one isomorphic to a global element declaration as defined by XML Schema Schema.
{type definitions} OPTIONAL. A set of named type definitions, each one isomorphic to a global type definition 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. Note that 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 represents an unambiguous name for the intended semantics of the collection of components. The target namespace URI SHOULD point to a human or machine processable document that directly or indirectly defines the intended semantics of those components.
Note that it is RECOMMENDED that the value of the
targetNamespace attribute information item
SHOULD be a dereferencible URI and that it resolve to a WSDL
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 documents needed for that
service description. This approach enables the WSDL component
designators' fragment identifiers to be properly resolvable.
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 system 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 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.
In addition to WSDL components and type system components, additional extension components MAY be added via extensibility 6. Language Extensibility . Further, additional properties to WSDL and type system 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 item s. 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 item s 4.2 Importing
Descriptions corresponds to a collection with components
drawn from multiple target namespaces.
The targetNamespace URI MUST be an absolute URI (see [ IETF RFC 2396 ]).
The definitions element information item
has the following Infoset properties:
A [local name] of definitions .
A [namespace name] of "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/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. The [namespace name] of such attribute information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/wsdl".
Zero or more element information item s amongst its [children], in order as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation ).
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. The [namespace name] of such element information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/wsdl".
An OPTIONAL types element information item
(see 3. Types ).
Zero or more element information item s from among the following, in any order:
interface element information item s (see
2.2.2 XML Representation of
Interface Component ).
binding element information item s (see
2.9.2 XML Representation of Binding
Component ).
service element information item s (see
2.13.2 XML Representation of Service
Component ).
Zero or more namespace-qualified element information item s. The [namespace name] of such element information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/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 set of Interface
components corresponding to all the interface
element information item s in the [children] of the
definitions element information item , if
any, plus any included or imported interface
definitions Interface
components (see <a
href="#modularize"> 4.
Modularizing WSDL descriptions ). |
| {bindings} | The binding
definitions set of Binding
components corresponding to all the binding
element information item s in the [children] of the
definitions element information item , if
any, plus any included or imported binding
definitions Binding components
(see <a href="#modularize">
4. Modularizing WSDL descriptions
). |
| {services} | The service
definitions set of Service
components corresponding to all the service
element information item s in the [children] of the
definitions element information item , if
any, plus any included or imported service
definitions Service components
(see <a href="#modularize">
4. Modularizing WSDL descriptions
). |
| {element declarations} | The set
of element declaration
components declarations
corresponding to all the element declarations defined as
descendants of the types element information
item , if any, plus any imported element definitions. declarations. 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 definition
declarations 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 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. Thus, an interface defines the design of the application.
An interface can optionally extend one or more other interfaces. In such cases To avoid circular definitions, an interface MUST NOT appear as an element of the set of interfaces it extends, either directly or indirectly. An interface contains all the operations of defined by the interfaces it extends, along with any operations it directly defines. In the process, operation components that are equivalent per 2.16 Equivalence of Components are treated as one. The deleted text: interfaces a given interface extends MUST NOT themselves extend extension mechanism behaves in a similar way for all other components that interface either directly or indirectly. can be defined inside an interface, namely Interface Fault, Feature and Property components.
Interfaces are named constructs and can be referred to by QName (see 2.17 2.18 QName resolution ). For instance, Binding components refer to interfaces in this way.
The properties of the Interface component are as follows:
{name} An NCName REQUIRED. A wsdls:NCName as defined by [ <cite> <a href="#XMLNS"> XML Namespaces </a> 2.15.3 NCName Type </cite> ]. .
{target namespace} REQUIRED. A namespace name, wsdls:anyURI , as defined in [ <cite> <a href="#XMLNS"> XML Namespaces </a> 2.15.4 anyURI Type </cite> ]. .
{extended interfaces} OPTIONAL. A set of named interface definitions Interface components which this interface extends. This set MUST be closed under the operation of adding the values of the {extended interfaces} properties of all its members.
{faults} OPTIONAL. A set of named Interface Fault components. This set MUST include the values of the {faults} properties of all the interface fault definitions. definitions that are listed under the {extended interfaces} property of the component.
{operations} OPTIONAL. A set of named interface operation definitions. Interface Operation components. This set MUST include the values of the {operations} properties of all the Interface components that are listed under the {extended interfaces} property of the component.
{features} OPTIONAL. A set of named feature definitions. Feature components. This set MUST include the values of the {features} properties of all the Interface components that are listed under the {extended interfaces} property of the component.
{properties} OPTIONAL. A set of named Property components. This set MUST include the values of the {properties} properties of all the Interface components that are listed under the {extended interfaces} property definitions. of the component.
For each Interface component in the {interfaces} property of a definitions container, the combination of {name} and {target namespace} properties MUST be unique.
Additionally, an Interface component MUST satisfy the Operation Name Mapping requirement, as defined below. This requirement is intended to ensure that a received message can be uniquely mapped to a corresponding wsdl:operation.
Consider all Interface Operation components specified in the {operations} property of an Interface component. Further, consider all Message Reference components specified in the {message references} properties of said Interface Operation components. Further, consider all said Message Reference components that have the same value for their {direction} property (i.e., either the token in or the token out ). If the {message content model} property of any of these Message Reference components has a value of "#any", or if more than one of these Message Reference components has a value of "#none", or if the qualified names of the global element declarations specified by the values of the {element} properties of these Message Reference components are not unique when considered together, then either one of the following two conditions MUST apply:
the {features} property of the Interface component MUST contain a Feature component, having a {required} property with a value of true ,that unambiguously identifies the mechanism that a message sender is required to support in order to enable the message recipient to unambiguously determine the name of the Interface Operation component that is intended to be associated with the received message; or
the element information item for the Interface component MUST contain an extension element (i.e., an element that is not in the http://www.w3.org/2004/08/wsdl namespace), having a wsdl:required attribute information item with a value of "true", that unambiguously identifies the mechanism that a message sender is required to support in order to enable the message recipient to unambiguously determine the name of the Interface Operation component that is intended to be associated with the received message.
<definitions>
<interface
name="xs:NCName"
extends="list of xs:QName"?
styleDefault="<em>xs:anyURI</em>"? >
styleDefault="list of xs:anyURI"? >
<documentation />?
[ <fault /> | <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/2004/03/wsdl" "http://www.w3.org/2004/08/wsdl"
One or more attribute information item s 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 item s. The [namespace name] of such attribute information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/wsdl".
Zero or more element information item s amongst its [children], in order, as follows:
An OPTIONAL documentation element information
item (see 5.
Documentation ).
Zero or more element information item s from among the following, in any order:
Zero or more fault element information
item s 2.3.2 XML
Representation of Interface Fault Component .
Zero or more operation element information
item s 2.4.2 2.4.3 XML
Representation of Interface Operation Component .
Zero or more feature element information
item s 2.7.2 XML Representation
of Feature Component .
Zero or more property element information
item s 2.8.2 XML Representation
of Property Component .
Zero or more namespace-qualified element information item s amongst its [children]. The [namespace name] of such element information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/wsdl".
name
attribute information item with interface
[owner]The name attribute information item
together with the targetNamespace attribute
information item of the [parent] 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
{element} 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 list of
xs:anyURI . Moreover, the value of the
styleDefault attribute information item , if
present, MUST be an contain absolute URI URIs (see [
<a href= "#RFC2396">
IETF RFC 2396 ]).
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 |
| {extended interfaces} | The set of interface definitions Interface components resolved to by the values in
the extends attribute information item if
any, plus the set of interface
definitions Interface
components in the {extended interfaces} property of those
interface definitions, otherwise
empty. if any. |
| {faults} | The set of interface fault definitions Interface Fault components corresponding to the
fault element information item s in
[children], if any, plus the set of interface fault definitions Interface Fault components in the {faults}
property of the interface definitions
Interface components in {extended
interfaces}, if any. |
| {operations} | The set of interface operation definitions Interface Operation components corresponding to
the operation element information item s in
[children], if any, plus the set of interface operation definitions Interface Operation components in the
{operations} property of the interface
definitions Interface
components in {extended interfaces}, if any. |
| {features} | The set of feature definitions Feature components corresponding to the
feature element information item s in
[children], if any, plus the set of feature
definitions Feature components
in the {features} property of the feature
definitions Interface
components in {extended interfaces}, if any. |
| {properties} | The set of property definitions Property components corresponding to the
property element information item s in
[children], if any, plus the set of property
definitions Property
components in the {properties} property of the property definitions Interface components in {extended interfaces}, if
any. |
Note that, 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.
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 deleted text: be occur during execution invocation of an operation of the interface. The Interface Fault component declares a an abstract fault by naming it and indicating the content or payload contents of the fault message. When and how the fault message flows is indicated by the Interface Operation component 2.4 Interface Operation .
The deleted text: reason the Interface Fault component deleted text: is a property of the Interface component is because that provides a convenient clear mechanism to declare a name and describe the set of fault message types and then indicate which faults an interface may generate. This allows operations deleted text: use those types, thus allowing one to easily indicate that identify the individual faults they may generate by name. This mechanism allows the ready identification of the same fault message type can occur occurring across multiple operations and referenced in multiple operations. 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:
{name} An NCName REQUIRED. A wsdls:NCName as defined by [ <cite> <a href="#XMLNS"> XML Namespaces </a> 2.15.3 NCName Type </cite> ]. .
{target namespace} REQUIRED. A wsdls:anyURI ,as defined in 2.15.4 anyURI Type .
{element} OPTIONAL. A reference to an XML element declaration in the {element declarations} property of 2.1.1 The Definitions Component . This element represents the content or "payload" of the fault.
{features} OPTIONAL. A set of Feature components.
{properties} OPTIONAL. A set of Property components.
If a deleted text: non-XML type system NOT based on the XML Infoset [ XML Information Set ] is in use (as considered in <a href= "#other-types"> 3.2 Using Other Schema Languages ) then additional properties would need to be added to the Fault Component (along with extensibility attributes to its XML representation) to allow associating such message types with the message reference.
For each Interface Fault component in the {faults} property of an Interface component, the combination of {name} and {target namespace} properties must be unique.
Interface Fault components are local to Interface components; they cannot be referred to by QName, despite having both {name} and {target namespace} properties. That is, two Interface components sharing the same {target namespace} property but with different {name} properties MAY contain Interface Fault components which share the same {name} property. Thus, the {name} and {target namespace} properties of the Interface Fault components are not sufficient to form the unique identity of an Interface Fault component. To uniquely identify an Interface Fault component one must first identify the Interface component (by QName) and then identify the Interface Fault within that Interface component (by a further QName).
In cases where, due to an interface extending one or more other interfaces, two or more Interface Faults components have the same value for their {name} and {target namespace} properties, then the component models of those Interface Fault components MUST be equivalent (see 2.15 2.16 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 have the same value for their {name} and {target namespace} properties but are not equivalent.
Note that, due to the above rules, if two interfaces that have the same value for their {target namespace} property also have one or more faults 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 faults are the same fault.
Note:
For the above reason, it is considered good practice to ensure, where necessary, that the {name} property of Interface Fault components within a namespace are unique, thus allowing such derivation to occur without inadvertent error.
<definitions>
<interface>
<fault
name="xs:NCName"
element="xs:QName"? >
<documentation />?
[ <feature /> | <property /> ]*
</fault>
</interface>
</definitions>
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/2004/03/wsdl" "http://www.w3.org/2004/08/wsdl"
Two or more attribute information item s amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.3.2.1 name attribute
information item with fault [owner] .
An OPTIONAL element attribute information
item as described below in 2.3.2.2 element attribute
information item with fault [owner] .
Zero or more namespace qualified attribute information item s. The [namespace name] of such attribute information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/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 item s from among the following, in any order:
Zero or more feature element
information item s
2.7.2 XML
Representation of Feature Component
Zero or more property element information item s 2.8.2 XML Representation of Property
Component
Zero or more namespace-qualified element information item s amongst its [children]. The [namespace name] of such element information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/wsdl".
name
attribute information item with fault
[owner]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 .
element
attribute information item with fault
[owner]The element attribute information item
refers, by QName, to an 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 .
The mapping between the properties of the Interface Fault
component (see 2.3.1 The
Interface Fault Component ) and the XML Representation of
the fault element information item (see
2.3.2 XML Representation of
Interface Fault 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 . |
| {element} | The element declaration from the
{element declarations} property of 2.1.1 The Definitions Component
resolved to by the value of the element attribute
information item if present, 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 from the {element declarations} property of 2.1.1 The Definitions Component
. |
| {features} | The set of
Feature components corresponding to the feature element
information item s in
[children], if any. |
| {properties} | The set of
Property components corresponding to the property element information item s in [children], if any. |
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 requestor. 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 that uses the pattern by means of 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 Predefined Extensions ] 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 REQUIRED. A wsdls:NCName as defined by [ <cite> <a href="#XMLNS"> XML Namespaces </a> 2.15.3 NCName Type </cite> ]. .
{target namespace} REQUIRED. A namespace name, wsdls:anyURI , as defined in [ <cite> <a href="#XMLNS"> XML Namespaces </a> 2.15.4 anyURI Type </cite> ]. .
{message exchange pattern} REQUIRED. A URI wsdls:anyURI identifying the message exchange pattern used by the operation. This URI MUST be an absolute URI (see [ <a href="#RFC2396"> IETF RFC 2396 ]).
{message references} OPTIONAL. A set of Message Reference components for the ordinary messages the operation accepts or sends. (See <a href= "#MessageReference"> 2.5 Message Reference .)
{fault references} OPTIONAL. A set of Fault Reference components for the fault messages the operation accepts or sends. (See <a href= "#FaultReference"> 2.6 Fault Reference .)
{style} OPTIONAL. A URI set of wsdls:anyURI s identifying the rules that were used to construct the {element} properties of {message references}. (See 2.4.1.1 Operation Style .) This URI These URIs MUST be deleted text: an absolute URI URIs (see [ IETF RFC 2396 ]).
{safety} REQUIRED. A wsdls:boolean (see 2.15.6 boolean Type ) indicating whether the operation is asserted to be safe (as defined in Section 3.5 of [ <a href= "#webarch"> Web Architecture ]) for users of the described service to invoke. If this property is false or is not set, false, then no assertion has been made about the safety of the operation, thus the operation MAY or MAY NOT be safe. However, an operation SHOULD be marked safe if it meets the criteria for a safe interaction defined in Section 3.5 of [ Web Architecture ]. deleted text: The default value of this property is false.
{features} OPTIONAL. A set of named feature definitions used by the operation Feature components.
{properties} OPTIONAL. A set of named property definitions used by the operation Property components.
For each Interface Operation component in the {operations} property of an Interface component, the combination of {name} and {target namespace} properties MUST be unique.
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, two Interface components sharing the same {target namespace} property but with different {name} properties MAY contain Interface Operation components which share the same {name} property. Thus, the {name} and {target namespace} properties of the Interface Operation components are not sufficient to uniquely identify an Interface Operation component. In order to uniquely identify an Interface Operation component, one must first identify the Interface component (by QName) and then identify the Interface Operation within that Interface component (by a further QName).
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.15 2.16 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 that, 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.
Note:
For the above reason, 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) set of URIs) implies the rules that were used to define the {element} properties (or other property which defines the content of the message properties; see 3.2 Using Other Schema Languages ) of all the Message Reference components which are members of the {message references} property of that component.
Note that the property MAY not have any value. If this property has a given value, value (a set of URIs), then for each individual URI that is an element of that set, the rules implied by that value URI (such as rules that govern the schemas) MUST be followed or it is an error. So, if the set of URIs has more than one item in it, then the rules implied by ALL the URIs must be adhered to by the content definitions.
This specification defines the following pre-defined operation style:
RPC Style (see 2.4.4 2.4.2 RPC Style )
The RPC style is selected by assigning to an Interface Operation component's {style} property the value http://www.w3.org/2004/08/wsdl/style/rpc .
The RPC style MUST NOT be used for Interface Operation components whose {message exchange pattern} property has a value other than 'http://www.w3.org/2004/08/wsdl/in-only' or 'http://www.w3.org/2004/08/wsdl/in-out'.
When this value is used, the associated messages MUST conform to the rules below, described using XML Schema [ XML Schema: Structures ]. Note that operations containing messages described by other type systems may also indicate use of the RPC style, as long as they are constructed in such a way as to follow these rules.
If the Interface Operation component uses a {message exchange pattern} for which there is no output element, such as 'http://www.w3.org/2004/08/wsdl/in-only', then the conditions stated below that refer to output elements MUST be considered to be implicitely satisfied.
The content model of input and output {element} elements MUST be 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".
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 elements declared with the same name.
wrpc:signature ExtensionThe wrpc:signature extension AII MAY be be used in conjunction with the RPC
style to describe the exact signature of the function represented
by an operation that uses the RPC style.
When present, the
wrpc:signature
extension contributes the following property
to the interface operation component it is applied to:
{rpc-signature} REQUIRED. A list of pairs (q, t) whose first component is of type wsdls:QName (as defined by 2.15.4 anyURI Type ) and whose second component is of type wsdls:Token (as defined by 2.15.2 Token Type ). Values for the second component MUST be chosen among the following four: "#in", "#out", "#inout" "#return".
The value of the {rpc-signature} property MUST satisfy the following conditions:
The value of the first component of each pair (q, t) MUST be unique within the list.
For each child element of the input and output messages of the operation, a pair (q, t) whose first component q is equal to the qualified name of that element MUST be present in the list, with the caveat that elements that appear with cardinality greater than one MUST be treated as as a single element.
For each pair (q, #in) ,there MUST be a child element of the input element with a name of q and there MUST NOT be a child element of the output element with the same name.
For each pair (q, #out) ,there MUST be a child element of the output element with a name of q and there MUST NOT be a child element of the input element with the same name.
For each pair (q, #inout) ,there MUST be a child element of the input element with a name of q and there MUST be a child element of the output element with the same name. Furthermore, those two elements MUST have the same type.
For each pair (q, #return) ,there MUST be a child element of the output element with a name of q and there MUST NOT be a child element of the input element with the same name.
The function signature defined by
a wrpc:signature
extension is determined as
follows:
Start with the value of the {rpc-signature} property, a (possibly empty) list of pairs of this form:
[(q0, t0), (q1, t1), ...]
Filter the elements of this list into two lists, the first one (L1) comprising pairs whose t component is one of {#in, #out, #inout} ,the second (L2) pairs whose t component is #return .
For ease of visualization, let's denote the two lists as
(L1) [(a0, u0), (a1, u1),...]
and
(L2) [(r0, #return), (r1, #return),...]
respectively.
Then the formal signature of the function is
f([d0] a0, [d1] a1, ...) => (r0, r1, ...)
i.e.
the list of formal arguments to the function is [a0, a1, ...] ;
the direction of each formal argument a is one of [in] ,[out] ,[inout] ,determined according to the value of its corresponding u token;
the list of formal return parameters of the function is [r0, r1, ...] ;
each formal argument and formal return parameter is typed according to the type of the child element identified by it (unique per the conditions given above).
wrpc:signature
ExtensionThe XML representation for the RPC signature extension is an attribute information item with the following Infoset properties:
A [local name] of
signature
A [namespace name] of "http://www.w3.org/2004/08/wsdl/rpc"
The type of the name attribute
information item is a list type
whose item type is the union of the xs:QName type and the
subtype of the xs:Token type
restricted to the following four values: "#in", "#out", "#inout",
"#return". See Example 2-1 for a
definition of this type.
Additionally, each even-numbered item (0, 2, 4, ...) in the list MUST be of type xs:QName and each odd-numbered item (1, 3, 5, ...) in the list MUST be of the subtype of xs:Token described in the previous paragraph.
Example 2-1. Definition of the wrpc:signature extension
<xs:attribute name="signature" type="wrpc:signatureType"/>
<xs:simpleType name="signatureType">
<xs:list itemType="wrpc:signatureItemType"/>
</xs:simpleType>
<xs:simpleType name="signatureItemType">
<xs:union memberTypes="wrpc:directionToken xsd:QName"/>
</xs:simpleType>
<xs:simpleType name="directionToken">
<xs:restriction base="xs:token">
<xs:enumeration value="#in"/>
<xs:enumeration value="#out"/>
<xs:enumeration value="#inout"/>
<xs:enumeration value="#return"/>
</xs:restriction>
</xs:simpleType>
wrpc:signature Extension Mapping To Properties of an Interface
Operation ComponentA wrpc:signature extension attribute
information item is mapped to
the following property of the Interface Operation component
(see 2.4.1 The Interface Operation Component
) defined by its [owner].
| Property | Mapping |
|---|---|
| {rpc-signature} | A list of
(xs:QName, xs:Token)
pairs formed by grouping the items present
in the actual value of the wrpc:signature attribute information item in the order in which they appear there. |
<definitions>
<interface>
<operation
name="xs:NCName"
pattern="xs:anyURI"
style="<em>xs:anyURI</em>"?
style="list of xs:anyURI"?
safe="xs:boolean"? >
<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/2004/03/wsdl" "http://www.w3.org/2004/08/wsdl"
Two or more attribute information item s amongst its [attributes] as follows:
A REQUIRED name attribute information item
as described below in 2.4.2.1 2.4.3.1
name attribute information item with operation [owner]
.
A REQUIRED pattern attribute information
item as described below in 2.4.2.2 2.4.3.2
pattern attribute information item with operation [owner]
.
An OPTIONAL style attribute information
item as described below in 2.4.2.3 2.4.3.3
style attribute information item with operation [owner]
.
An OPTIONAL safe attribute information
item as described below in 2.4.2.4 2.4.3.4
safe attribute information item with operation [owner]
.
Zero or more namespace qualified attribute information item s. The [namespace name] of such attribute information item s MUST NOT be "http://www.w3.org/2004/03/wsdl". "http://www.w3.org/2004/08/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 item s from among the following, in any order:
Zero or more input element information
item s (see 2.5.2 XML
Representation of Message Reference Component ).
Zero or more output element information
item s (see 2.5.2 XML
Representation of Message Reference Component ).
Zero or more infault element information
item s (see 2.6.2 XML
Representation of Fault Reference Component ).