This document is also available in these non-normative formats: <a href="wsdl20-adjuncts.ps"> postscript </a>, <a href= "wsdl20-adjuncts.pdf"> PDF , PostScript , XML , and plain text .
Copyright © 2005 W3C ® ( MIT , ERCIM , Keio ), All Rights Reserved. W3C liability , trademark and document use rules apply.
WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information. Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts defines predefined extensions for use in WSDL 2.0:
Message exchange patterns
Operation styles
Bindings Binding Extensions
This specification depends on WSDL Version 2.0 [ WSDL 2.0 Core 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"> the W3C Last Call Working Draft of deleted text: the Web Services Description Language (WSDL) Version 2.0 document. This document Part 2: Adjuncts. It has been produced as by the Web Services Description Working Group ,which is part of the <a href="http://www.w3.org/2002/ws/Activity.html"> W3C Web Services Activity . The authors of this document are If the feedback is positive, the deleted text: <a href= "http://www.w3.org/2002/ws/desc/"> Web Services Description Working Group </a> members. plans to submit this specification for consideration as a W3C Candidate Recommendation.
This document is Working Draft addresses all the result of comments received during the first Last Call review period on the deleted text: merge of WSDL 2.0 Part 2 Predefined Extensions and 3 Bindings. </p> <p> The drafts. Another Last Call Working Group is in Draft resulting from the process merge of deleted text: addressing the comments it has received on previous drafts of WSDL 2.0 Part deleted text: 1, 2 and 3 during its Last Call period. This document reflects is being published as substantive changes were made to the current state documents as a result of this work. review. The latest status detailed disposition of the last call issues comments received deleted text: by the Working Group can be found in the <a href= "http://www.w3.org/2002/ws/desc/last-call-issues"> last call first Last Call issues list .
The Working Group is planning would like to publish add a new Last Call Working Draft once defaulting rule for one-way message exchange patterns in the SOAP 1.2 binding defined in section 5.11.3 Default Binding Rules (see editorial note ) before it has closed all these issues. publishes a Candidate Recommendation of this document if a SOAP 1.2 one-way message exchange pattern becomes available. Feedback is welcome on this topic.
Comments on this document are to be sent to the public public-ws-desc-comments@w3.org mailing list ( public archive ). ) until 19 September 2005 .
A diff-marked version against the previous version of this document is available. For a detailed list of changes since the last publication of this document, please refer to appendix B. C. Part 2 Change Log . Issues about this document are documented in the new Last Call issues list maintained by the Working Group. A list of formal objections against the set of WSDL 2.0 Working Drafts is also available.
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document has been produced under the 24 January 2002 Current Patent Practice as amended by the W3C Patent Policy Transition Procedure . Patent disclosures relevant to this specification may be found on the Working Group's patent disclosure page . An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) with respect to this specification should disclose the information in accordance with section 6 of the W3C Patent Policy .
1. Introduction
2. Predefined Message Exchange Patterns
3. Predefined
Extensions
4. Predefined
Operation Styles
4. 5.
WSDL SOAP Binding Extension
5. 6.
WSDL HTTP Binding Extension
6. 7.
References
A. Acknowledgements
(Non-Normative)
B. Component
Summary (Non-Normative)
C. Part 2 Change
Log (Non-Normative)
1. Introduction
1.1 Notational
Conventions
2. Predefined Message Exchange Patterns
2.1 Template for Message Exchange Patterns
2.1.1
Pattern
Name
2.2 Fault Propagation Rules
2.1.1
2.2.1
Fault Replaces Message
2.1.2
2.2.2
Message Triggers Fault
2.1.3
2.2.3
No Faults
2.2
2.3 Message Exchange Patterns
2.2.1
2.3.1
In-Only
2.2.2
2.3.2
Robust In-Only
2.2.3
2.3.3
In-Out
2.2.4
2.3.4
In-Optional-Out
2.2.5
2.3.5
Out-Only
2.2.6
2.3.6
Robust Out-Only
2.2.7
2.3.7
Out-In
2.2.8
2.3.8
Out-Optional-In
2.4 Security
Considerations
3. Predefined
Extensions
3.1 Operation safety
3.1.1
Relationship
to WSDL Component Model
3.1.2
XML
Representation
3.1.3
Mapping from
XML Representation to Component Properties
4. Predefined
Operation Styles
3.1
4.1 RPC Style
3.1.1
4.1.1
wrpc:signature
Extension
3.1.2
4.1.2
XML
Representation of the wrpc:signature Extension
3.1.3
4.1.3
wrpc:signature
Extension Mapping To Properties of an Interface Operation
Component component
3.2 <a
href="#_operation_uri_style"> URI 4.2 IRI
Style
3.3
4.3 Multipart style
4. 5.
WSDL SOAP Binding Extension
4.1
5.1 XML Syntax Summary (Non-Normative)
4.2
5.2 Identifying the use of the SOAP
Binding
4.3
5.3 Default Binding Rules
4.4
5.4 Specifying the SOAP Version
4.4.1
5.4.1
Description
4.4.2
5.4.2
Relationship to WSDL Component
Model
4.4.3
5.4.3
XML Representation
4.4.4
5.4.4
Mapping from XML
Representation to Component properties
4.5
5.5 Specifying the SOAP Underlying Protocol
4.5.1
5.5.1
Description
4.5.2
5.5.2
Relationship to WSDL Component
Model
4.5.3
5.5.3
XML Representation
4.5.4
5.5.4
Mapping from XML
Representation to Component Properties
4.6
5.6 Specifying the Default SOAP MEP
4.6.1
5.6.1
Description
4.6.2
5.6.2
Relationship to WSDL
Component Model
4.6.3
5.6.3
XML Representation
4.7
5.7 Binding Faults
4.7.1
5.7.1
Description
4.7.2
5.7.2
Relationship to WSDL Component
Model
4.7.3
5.7.3
XML Representation
4.7.4
5.7.4
Mapping XML Representation to
Component Properties
4.8
5.8 Binding Operations
4.8.1
5.8.1
Description
4.8.2
5.8.2
Relationship to WSDL
Component Model
4.8.3
5.8.3
XML Representation
4.8.4
5.8.4
Mapping from XML
Representation to Component Properties
4.9
5.9 Declaring SOAP Modules
4.9.1
5.9.1
Description
4.9.2
5.9.2
Relationship to WSDL Component
Model
4.9.3
5.9.3
SOAP Module Component component
4.9.4
5.9.4
XML Representation
4.9.5
5.9.5
Mapping from XML Representation
to Component Properties
4.10
5.9.6
IRI
Identification Of A SOAP Module component
5.10 Declaring SOAP Header Blocks
4.10.1
5.10.1
Description
4.10.2
5.10.2
Relationship to WSDL Component
Model
4.10.3
5.10.3
SOAP Header Block Component component
4.10.4
5.10.4
XML Representation
4.10.5
5.10.5
Mapping XML Representation to
Component Properties
4.11
5.10.6
IRI
Identification Of A SOAP Header Block component
5.11 WSDL SOAP 1.2
Binding
4.11.1
5.11.1
Identifying a WSDL SOAP 1.2 Binding
4.11.2
5.11.2
Description
4.11.3
5.11.3
Default Binding Rules
4.12
5.12 Conformance
5. 6.
WSDL HTTP Binding Extension
5.1
6.1 Identifying the use of the HTTP
Binding
5.2
6.2 HTTP Syntax Summary (Non-Normative)
5.3
6.3 Default Binding Rules
5.4
6.4 Specifying the HTTP Version
5.4.1
6.4.1
Description
5.4.2
6.4.2
Relationship to WSDL Component
Model
5.4.3
6.4.3
XML Representation
5.4.4
6.4.4
Mapping from XML
Representation to Component Properties
5.5
6.5 Specifying the Default HTTP
Method
5.5.1
6.5.1
Description
5.5.2
6.5.2
Relationship to WSDL
Component Model
5.5.3
6.5.3
XML
Representation
5.6
6.6 Binding Operations
5.6.1
6.6.1
Description
5.6.2
6.6.2
Relationship to WSDL
Component Model
5.6.3
6.6.3
XML Representation
5.6.4
6.6.4
Mapping from XML
Representation to Component Properties
5.7
6.7 Declaring HTTP Headers
5.7.1
6.7.1
Description
5.7.2
6.7.2
Relationship to WSDL Component
Model
5.7.3
6.7.3
HTTP Header Component component
5.7.4
6.7.4
XML Representation
5.7.5
6.7.5
Mapping from XML
Representation to Component Properties
5.8
6.7.6
IRI
Identification Of A HTTP Header component
6.8 Specifying HTTP Error Code and Reason for
Faults
5.8.1
6.8.1
Description
5.8.2
6.8.2
Relationship to WSDL Component
Model
5.8.3
6.8.3
XML Representation
5.8.4
6.8.4
Mapping from XML Representation
to Component Properties
5.9
6.9 Serialization Format of Instance
Data
5.9.1
6.9.1
Serialization as
application/x-www-form-urlencoded
5.9.1.1
6.9.1.1
Case of elements
cited in the {http location} property
5.9.1.2
6.9.1.2
Case elements NOT
cited in the {http location} property
5.9.1.2.1
<a href="#_http_operation_location_notcited_uri">
6.9.1.2.1
Serialization in
the request URI IRI
5.9.1.2.2
6.9.1.2.2
Serialization in
the message body
5.9.2
6.9.2
Serialization as
application/xml
5.9.3
6.9.3
Serialization as
multipart/form-data
5.10
6.10 Specifying the Transfer
Coding
5.10.1
6.10.1
Description
5.10.2
6.10.2
Relationship to WSDL
Component Model
5.10.3
6.10.3
XML
Representation
5.10.4
6.10.4
Mapping from XML
Representation to Component Properties
5.11
6.11 Specifying the Use of HTTP Cookies
5.11.1
6.11.1
Description
5.11.2
6.11.2
Relationship to WSDL Component
Model
5.11.3
6.11.3
XML Representation
5.11.4
6.11.4
Mapping from XML
Representation to Component Properties
5.12
6.12 Specifying HTTP Access Authentication
5.12.1
6.12.1
Description
5.12.2
6.12.2
Relationship to WSDL Component
Model
5.12.3
6.12.3
XML Representation
5.12.4
6.12.4
Mapping from XML Representation
to Component Properties
5.13
6.13 Conformance
6. 7.
References
6.1
7.1 Normative References
6.2
7.2 Informative References
A. Acknowledgements
(Non-Normative)
B. Component
Summary (Non-Normative)
C. Part 2 Change
Log (Non-Normative)
B.1 <a
href="#id2299885"> C.1 WSDL 2.0 Extensions Change Log
B.2 <a
href="#id2300878"> C.2 WSDL 2.0 Bindings Change Log
The Web Services Description Language WSDL Version 2.0 (WSDL) [ WSDL 2.0 Core Language ] defines an XML language for describing network services as collections of communication endpoints capable of exchanging messages. WSDL service definitions provide documentation for distributed systems and serve as a recipe for automating the details involved in applications communication. This document defines extensions for the WSDL 2.0 language:
Message exchange patterns: 2. Predefined Message Exchange Patterns )
Operation styles: 3. 4. Predefined Operation Styles )
Bindings: Binding extensions:
A SOAP 1.2 [ SOAP 1.2 Part 1: Messaging Framework ] binding: binding extension: 4. 5. WSDL SOAP Binding Extension
An HTTP/1.1 [ IETF RFC 2616 ] binding: binding extension: 5. 6. WSDL HTTP Binding Extension
WSDL 2.0 Primer [ WSDL 2.0 Primer ] is a non-normative document intended to provide an easily understandable tutorial on the features of the WSDL Version 2.0 specifications.
The Core Language [ WSDL 2.0 Core Language ] of the WSDL 2.0 specification describes the core elements of the WSDL language.
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 RFC2119 [ IETF RFC 2119 ].
This specification uses a number of 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/2005/05/wsdl" "http://www.w3.org/2005/08/wsdl" | A normative XML Schema [ XML Schema Structures ], [ XML Schema Datatypes ] document for the "http://www.w3.org/2005/05/wsdl" "http://www.w3.org/2005/08/wsdl" namespace can be found at <a href= "http://www.w3.org/2005/05/wsdl"> http://www.w3.org/2005/05/wsdl http://www.w3.org/2005/08/wsdl . |
| wsdl-x | "http://www.w3.org/2005/08/wsdl-extensions" | A normative XML Schema [ XML Schema Structures ], [ XML Schema Datatypes ] document for the "http://www.w3.org/2005/08/wsdl-extensions" namespace can be found at http://www.w3.org/2005/08/wsdl-extensions . |
| wsoap | "http://www.w3.org/2005/05/wsdl/soap" "http://www.w3.org/2005/08/wsdl/soap" | A normative XML Schema [ XML Schema Structures ], [ XML Schema Datatypes ] document for the "http://www.w3.org/2005/05/wsdl/soap" "http://www.w3.org/2005/08/wsdl/soap" namespace can be found at <a href= "http://www.w3.org/2005/05/wsdl/soap"> http://www.w3.org/2005/05/wsdl/soap http://www.w3.org/2005/08/wsdl/soap . |
| whttp | "http://www.w3.org/2005/05/wsdl/http" "http://www.w3.org/2005/08/wsdl/http" | A normative XML Schema [ XML Schema Structures ], [ XML Schema Datatypes ] document for the "http://www.w3.org/2005/05/wsdl/http" "http://www.w3.org/2005/08/wsdl/http" namespace can be found at <a href= "http://www.w3.org/2005/05/wsdl/http"> http://www.w3.org/2005/05/wsdl/http http://www.w3.org/2005/08/wsdl/http . |
| xs | "http://www.w3.org/2001/XMLSchema" | Defined in the W3C XML Schema specification [ XML Schema Structures ], [ XML Schema Datatypes ]. |
Namespace names of the general form "http://example.org/..." and "http://example.com/..." represent application or context-dependent URIs [ IETF RFC 3986 ].
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. They provide visual help for the XML [ XML 1.0 ] serialization.
A node is an agent ( section 2.3.2.2 Agent of the Web Services Architecture [ Web Services Architecture ]) that can transmit and/or receive message(s) described in WSDL description(s) and process them.
Note:
A node may be accessible via more than one physical address or transport.
Web Services Description Language (WSDL) message exchange patterns (hereafter simply 'patterns') define the sequence and of abstract messages listed in an operation. Message exchange patterns also define which other nodes send messages to, and receive messages from, the service implementing the operation. WSDL message exchange patterns describe the interaction at the abstract (interface) level, which may be distinct from the pattern used by the underlying protocol binding (e.g. SOAP Message Exchange Patterns; section 4.11.3 5.11.3 Default Binding Rules contains the default binding rules for the selection of a SOAP 1.2 message exchange pattern based on the WSDL message exchange pattern in use for the SOAP binding extension defined in this specification in section <a href="#soap-binding"> 4. 5. WSDL SOAP Binding Extension ).
By design, WSDL message exchange patterns abstract out specific message types. Patterns identify placeholders for messages, and placeholders are associated with specific message types by the operation using the pattern.
Unless explicitly stated otherwise, WSDL message exchange patterns also abstract out binding-specific information like timing between messages, whether the pattern is synchronous or asynchronous, and whether the message are sent over a single or multiple channels.
Like interfaces and operations, WSDL message exchange patterns do not exhaustively describe the set of messages exchanged between a service and other nodes; by some prior agreement, another node and/or the service may send other messages (to each other or to other nodes) that are not described by the pattern. For instance, even though a pattern may define a single message sent from a service to one other node, the Web Service may multicast that message to other nodes.
To maximize reuse, WSDL message exchange patterns identify a minimal contract between other parties and Web Services, and contain only information that is relevant to both the Web Service and another party.
This specification defines several message exchange patterns for use with WSDL Version 2.0 Part 1: Core Language [ WSDL 2.0 Core Language ].
New Message Exchange Patterns may be defined by any organization able and willing to do so. It is recommended that the patterns use the general template provided here, after examination of existing predefined patterns.
This pattern consists of [number] message[s, in order] as follows:
[enumeration, specifying, for each message] A[n optional] message:
indicated by a Interface Message Reference component whose { message label } is "[label]" and direction is "[direction]"
[received from|sent to] ['some' if first mention] node [node identifier]
This pattern uses the rule [fault ruleset reference].
An operation using this message exchange pattern has a { message exchange pattern } property with the value "[pattern IRI]".
Note: In the template, the bracketed items indicate a replacement operation. Substitute the correct terms for each bracketed item.
Note: the "received from" and "sent to" are always from the point of view of the service, and participating nodes other than the service are implicitly identified as the originators of or destinations for messages in the exchange.
WSDL patterns specify their fault propagation model using standard rulesets to indicate where faults may occur. The most common patterns for fault propagation are defined here, and referenced by patterns later in the document. "Propagation" is defined as a best-effort attempt to transmit the fault message to its designated recipient.
WSDL patterns specify propagation of faults, not their generation. Nodes which generate a fault MUST attempt to propagate the faults in accordance with the governing ruleset, but it is understood that any delivery of a network message is best effort, not guaranteed. The rulesets establish the direction of the fault message and the fault recipient, they do not provide reliability or other delivery guarantees. When a fault is generated, the generating node MUST attempt to propagate the fault, and MUST do so in the direction and to deleted text: to the recipient specified by the ruleset. However, extensions or bindings may binding extensions MAY modify these rulesets. For example, WS-Addressing [ WSA 1.0 Core ] defines a "FaultTo" address for messages, which is used in lieu of the recipient nominated by the ruleset.
Generation of a fault, regardless of ruleset, terminates the exchange.
Bindings, Binding extensions, features, or extension specifications may override the semantics of a fault propagation ruleset, but this practice is strongly discouraged.
Any message after the first in the pattern MAY be replaced with a fault message, which MUST have identical direction. The fault message MUST be delivered to the same target node as the message it replaces. replaces, unless otherwise specified by an extension or binding extension. If there is no path to this node, the fault MUST be discarded.
Any message, including the first, first in the pattern, MAY trigger a fault message, which MUST have opposite direction. The fault message in response. Each recipient MUST be delivered to the originator of the triggering message, unless otherwise specified by an extension of binding extension. Any node MAY propagate a fault message, and MUST propagate no not do so more than one fault once for each triggering message. deleted text: Each fault message has direction the reverse of its triggering message. The fault message MUST be delivered to the originator of the message which triggered it. If there is no path to this node, the originator, the fault MUST be discarded.
WSDL patterns are described in terms of the WSDL component model, specifically the Interface Message Label Reference and Interface Fault Reference components.
This pattern consists of exactly one message as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'In' "In" and {direction} { direction } is 'in' "in"
received from some node N
This pattern uses the rule 2.1.3 2.2.3 No Faults .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/in-only'. "http://www.w3.org/2005/08/wsdl/in-only".
This pattern consists of exactly one message as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'In' "In" and {direction} { direction } is 'in' "in"
received from some node N
This pattern uses the rule 2.1.2 2.2.2 Message Triggers Fault .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/robust-in-only'. "http://www.w3.org/2005/08/wsdl/robust-in-only".
This pattern consists of exactly two messages, in order, as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'In' "In" and {direction} { direction } is 'in' "in"
received from some node N
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'Out' "Out" and {direction} { direction } is 'out' "out"
sent to node N
This pattern uses the rule 2.1.1 2.2.1 Fault Replaces Message .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/in-out'. "http://www.w3.org/2005/08/wsdl/in-out".
This pattern consists of one or two messages, in order, as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'In' "In" and {direction} { direction } is 'in' "in"
received from some node N
An optional message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'Out' "Out" and {direction} { direction } is 'out' "out"
sent to node N
This pattern uses the rule 2.1.2 2.2.2 Message Triggers Fault .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/in-opt-out'. "http://www.w3.org/2005/08/wsdl/in-opt-out".
This pattern consists of exactly one message as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'Out' "Out " and {direction} { direction } is 'out' "out"
sent to some node N
This pattern uses the rule 2.1.3 2.2.3 No Faults .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/out-only'. "http://www.w3.org/2005/08/wsdl/out-only".
This pattern consists of exactly one message as follows:
message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'Out' "Out" and {direction} { direction } is 'out' "out"
sent to some node N
This pattern uses the rule 2.1.2 2.2.2 Message Triggers Fault .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/robust-out-only'. "http://www.w3.org/2005/08/wsdl/robust-out-only".
This pattern consists of exactly two messages, in order, as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'Out' "Out" and {direction} { direction } is 'out' "out"
sent to some node N
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'In' "In" and {direction} { direction } is 'in' "in"
sent from node N
This pattern uses the rule 2.1.1 2.2.1 Fault Replaces Message .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/out-in'. "http://www.w3.org/2005/08/wsdl/out-in".
This pattern consists of one or two messages, in order, as follows:
A message:
indicated by a Interface Message Label Reference component whose {message label} { message label } is 'Out' "Out" and {direction} { direction } is 'out' "out"
sent to some node N
An optional message:
indicated by a MessageLabel Interface Message Reference component whose {message label} { message label } is 'In' "In" and {direction} { direction } is 'in' "in"
sent from node N
This pattern uses the rule 2.1.2 2.2.2 Message Triggers Fault .
An operation using this message exchange pattern has a {pattern} { message exchange pattern } property with the value 'http://www.w3.org/2005/05/wsdl/out-opt-in'. "http://www.w3.org/2005/08/wsdl/out-opt-in".
Note that many of the message exchange patterns defined above describe responses to an initial message (either a normal response message or a fault.)
Such responses may be used in attempts to disrupt, attack, or map a network, host, or services. When such responses are directed to an address other than that originating the initial message, the source of an attack may be obscured, or blame laid on a third party, or may enable or exacerbate denial-of-service attacks.
Security mechanisms addressing such attacks may prevent the delivery of response messages to the receiving node. Conformance to the message exchange pattern is measured prior to the application of these security mechanisms.
This section defines an extension to WSDL 2.0 [ WSDL 2.0 Core Language ] which allows to mark an operation as a safe interaction, as defined in section 3.4. Safe Interactions of [ Web Architecture ].
This extension MAY be used for setting defaults in bindings, such as in an HTTP binding per this specification (see 6.6.4 Mapping from XML Representation to Component Properties ).
The safety extension adds the following property to the Interface Operation component model (as defined in [ WSDL 2.0 Core Language ]):
{ safety } REQUIRED. An xs:boolean indicating whether the operation is asserted to be safe for users of the described service to invoke. If this property is "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 ].
<description>
<interface>
<operation name="xs:NCName" pattern="xs:anyURI"
wsdlx:safe="xs:boolean"? >
</operation>
</interface>
</description>
The XML representation for the safety extension is an attribute information item with the following Infoset properties:
An OPTIONAL safe attribute
information item with the
following Infoset properties:
A [local name] of
safe
A [namespace name] of "http://www.w3.org/2005/08/wsdl-extensions"
A type of xs:boolean
This section defines <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceOperationStyle"> operation styles used by serialization formats to place constraints on Interface Operations bound.
The RPC style is selected by assigning to an Interface Operation component's <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceOperation_details"> {style} { style } property the value <em> http://www.w3.org/2005/05/wsdl/style/rpc </em>. "http://www.w3.org/2005/08/wsdl/style/rpc".
In order to conform with the specification for the RPC style, an
Interface Operation Component
component MUST obey the constraints
listed below. Furthermore, if the wrpc:signature
extension is used, the corresponding attribute information
item MUST be valid according to the schema for the extension
and additionally MUST obey the constraints listed in 3.1.1 4.1.1
wrpc:signature Extension and 3.1.2 4.1.2 XML
Representation of the wrpc:signature Extension .
The RPC style MUST NOT be used for Interface Operation components whose <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceOperation_details"> {message { message exchange pattern} pattern } property has a value other than 'http://www.w3.org/2005/05/wsdl/in-only' "http://www.w3.org/2005/08/wsdl/in-only" or 'http://www.w3.org/2005/05/wsdl/in-out'. "http://www.w3.org/2005/08/wsdl/in-out".
The RPC style places restrictions for Remote Procedure Call-types of interactions. 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 <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceOperation_details"> {message { message exchange pattern} pattern } for which there is no output element, i.e. 'http://www.w3.org/2005/05/wsdl/in-only', "http://www.w3.org/2005/08/wsdl/in-only", then the conditions stated below that refer to output elements MUST be considered to be implicitly satisfied.
The content model of input and output <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceMessageReference_details"> {element} { element declaration } elements MUST be defined using a complex type that contains a sequence from XML Schema.
The input sequence MUST only contain elements and element wildcards. It MUST NOT contain other structures such as xs:choice. The input sequence MUST NOT contain more than one element wildcard. The element wildcard, if present, MUST appear after any elements.
The output 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 local name of input element's QName MUST be the same as the Interface operation Operation component's name.
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 local attributes. Extension attributes are allowed for purposes of managing the message infrastructure (e.g. adding identifiers to facilitate digitally signing the contents of the message). They must not be considered as part of the application data that is conveyed by the message. Therefore, they are never included in an RPC signature (see 4.1.1 wrpc:signature Extension ).
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 named type.
The input or output sequence MUST NOT contain multiple children elements declared with the same name.
wrpc:signature ExtensionThe wrpc:signature extension attribute
information item MAY 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
Interface Operation component it
is applied to:
{rpc-signature} { rpc signature } REQUIRED. A list of pairs (q, t) whose first component is of type xs:QName and whose second component is of type xs:token . Values for the second component MUST be chosen among the following four: "#in", "#out", "#inout" "#return".
The value of the {rpc-signature} { 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 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} { 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 . During the composition of L1 and L2 , the relative order of members in the original list MUST be preserved.
For ease of visualization, let's denote the two lists as
(L1) [(a0, u0), (a1, u1),...]
and
(L2) [(r0, #return), (r1, #return),...]
respectively.
Then, if the input sequence ends with an element wildcard, the formal signature of the function is
f([d0] a0, [d1] a1, ..., rest) => (r0, r1, ...)
where rest is a formal parameter representing the elements in the input message matched by the element wildcard.
Otherwise 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 d 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).
Note:
The wrpc:signature extension allows the
specification of multiple return values for an operation. Several
popular programming languages support multiple return values for a
function. Moreover, for languages who do not, the burden on
implementors should be small, as typically multiple return values
will be mapped to a single return value of a structure type (or its
closest language-specific equivalent).
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/2005/05/wsdl/rpc" "http://www.w3.org/2005/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
3-1 4-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 3-1. 4-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 xs: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 Component
componentA wrpc:signature extension attribute
information item is mapped to the following property of the
Interface Operation component defined by its [owner].
| Property | Value |
|---|---|
| {rpc-signature} { 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. |
The URI IRI style may be used for Interface Operation components using a message exchange pattern with an initial message.
The URI IRI style is selected by assigning the Interface Operation component's <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceOperation_details"> {style} { style } property the value <em> http://www.w3.org/2005/05/wsdl/style/uri </em>. "http://www.w3.org/2005/08/wsdl/style/iri".
Use of this value indicates that XML Schema [ XML Schema Structures ] was used to define the schema of the <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceMessageReference_details"> {element} { element declaration } property of the Interface Message Reference component of the Interface Operation component corresponding to the initial message of the message exchange pattern. This schema MUST adhere to the rules below:
The content model of this element is 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. These
child elements MAY contain the nillable attribute, and
the attributes minOccurs and maxOccurs
MUST have a value 0 or 1 .
The localPart of the element's QName MUST be the same as the Interface operation Operation component's name.
The complex type that defines the body of the element or its children elements MUST NOT contain any attributes.
The sequence MUST NOT contain multiple children element elements declared with the same local name.
If the children elements of the sequence are defined using an
XML Schema type, they MUST derive from xs:simpleType ,
and MUST NOT be of the type or derive from xs:QName ,
xs:NOTATION , xs:hexBinary or
xs:base64Binary .
The Multipart style may be used for Interface Operation components using a message exchange pattern with an initial message.
The Multipart style is selected by assigning the Interface Operation component's <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceOperation_details"> {style} { style } property the value <em> http://www.w3.org/2005/05/wsdl/style/multipart </em>. "http://www.w3.org/2005/08/wsdl/style/multipart".
Use of this value indicates that XML Schema [ XML Schema Structures ] was used to define the schema of the <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceMessageReference_details"> {element} { element declaration } property of the Interface Message Reference component of the Interface Operation component corresponding to the initial message of the message exchange pattern. This schema MUST adhere to the rules below:
The content model of this element is 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. These
child elements MAY contain the nillable attribute, and
the attributes minOccurs and maxOccurs
MUST have a value 1 .
The localPart of the element's QName MUST be the same as the Interface operation Operation component's name.
The complex type that defines the body of the element or its children elements MUST NOT contain any attributes.
The sequence MUST NOT contain multiple children element declared with the same local name.
The SOAP binding extension described in this section is SOAP version independent ("1.2" as well as other versions) and an extension for [ WSDL 2.0 Core Language ] to enable Web Services applications to use SOAP. This binding extension extends WSDL 2.0 by adding properties to the <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#Binding"> Binding component as defined in [ WSDL 2.0 Core Language ]. In addition, an XML Infoset representation for these additional properties is provided, along with a mapping from that representation to the various component properties.
As allowed in [ WSDL 2.0 Core Language ], a Binding component MAY exist without indicating a specific <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#Interface"> Interface deleted text: component component that it applies to. In this case, there MUST NOT be any <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#Binding_Operation"> Binding Operation or <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#Binding_Fault"> Binding Fault components present in the Binding component.
The SOAP binding extension is designed with the objective of minimizing what needs to be explicitly declared for common cases. This is achieved by defining a set of default rules which apply for all Interface Operation components of an Interface component, unless specifically overidden on a per Interface Operation basis. Thus, if a given Interface Operation component is not referred to specifically, then all the default rules apply for that component. That is, per the requirements of [ WSDL 2.0 Core Language ], all operations of an Interface component are bound by according to this binding. binding extension.
Notice that there are no default binding rules defined for <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceFault"> Interface Fault components by this binding, binding extension, as no reasonable default is applicable to all cases. Thus, if a given Interface component has any Interface Fault components, then such Interface components MUST be bound via Binding components which indicate a specific interface and contain as many Binding Fault components as there are Interface Fault components in the Interface Fault component.
A subset of the HTTP properties specified in the HTTP binding extension defined in section 5. 6. WSDL HTTP Binding Extension may be expressed in a SOAP binding when the SOAP binding uses HTTP as the underlying protocol, for example, when the value of the {soap { soap underlying protocol} protocol } property of the Binding component is "http://www.w3.org/2003/05/soap/bindings/HTTP/". The properties that are allowed are the ones that describe the underlying protocol:
{http version} { http version } as defined in 5.4 6.4 Specifying the HTTP Version
{http location} { http location } as defined in <a href= "#http-operation-decl"> 5.6 6.6 Binding Operations
{http headers} { http headers } as defined in 5.7 6.7 Declaring HTTP Headers
{http { http transfer coding} coding } as defined in 5.10 6.10 Specifying the Transfer Coding
{http cookies} { http cookies } as defined in <a href= "#http-cookies-decl"> 5.11 6.11 Specifying the Use of HTTP Cookies
{http { http authentication scheme} scheme } and {http { http authentication realm} realm } as defined in 5.12 6.12 Specifying HTTP Access Authentication
<description> <binding name="xs:NCName" interface="xs:QName"? type="<em>http://www.w3.org/2005/05/wsdl/soap</em>" type="http://www.w3.org/2005/08/wsdl/soap" whttp:version="xs:string"?? whttp:transferCodingDefault="xs:string"?? wsoap:version="xs:string"? wsoap:protocol="xs:anyURI" wsoap:mepDefault="xs:anyURI"? > <documentation />? <documentation />* <<b>wsoap:module</b> uri="<em>xs:anyURI</em>" required="<em>xs:boolean</em>"? > <documentation />? <wsoap:module ref="xs:anyURI" required="xs:boolean"? > <documentation />* </wsoap:module>* <fault ref="xs:QName" <b>wsoap:code</b>="<em>xs:QName</em>" wsoap:code="union of xs:QName, xs:token"? wsoap:subcodes="list of xs:QName"? > <documentation />? <documentation />* <wsoap:module ... />* <wsoap:header element="xs:QName" mustUnderstand="xs:boolean"?> <documentation />? <documentation />* </wsoap:header>* <whttp:header ... />*?? [ <feature /> | <property /> ]* </fault>* <operation ref="xs:QName" whttp:location="xs:anyURI"?? whttp:transferCodingDefault="xs:string"?? > wsoap:mep="xs:anyURI"? wsoap:action="xs:anyURI"? > <documentation />? <documentation />* <wsoap:module ... />* <input messageLabel="xs:NCName"? whttp:transferCoding="xs:string"?? > <documentation />? <documentation />* <wsoap:module ... />* <wsoap:header ... />* <whttp:header ... />*?? [ <feature /> | <property /> ]* </input>* <output messageLabel="xs:NCName"? whttp:transferCoding="xs:string"?? > <documentation />? <documentation />* <wsoap:module ... />* <wsoap:header ... />* <whttp:header ... />*?? [ <feature /> | <property /> ]* </output>* <infault ref="xs:QName" messageLabel="xs:NCName"? whttp:transferCoding="xs:string"?? > <documentation />? <documentation />* <wsoap:module ... />* [ <feature /> | <property /> ]* </infault>* <outfault ref="xs:QName" messageLabel="xs:NCName"? whttp:transferCoding="xs:string"?? > <documentation />? <documentation />* <wsoap:module ... />* [ <feature /> | <property /> ]* </outfault>* [ <feature /> | <property /> ]* </operation>* [ <feature /> | <property /> ]* </binding> <service> <endpoint name="xs:NCName" binding="xs:QName" address="xs:anyURI"? whttp:authenticationType="xs:string"?? whttp:authenticationRealm="xs:string"?? > <documentation />? <documentation />* [ <feature /> | <property /> ]* </endpoint> [ <feature /> | <property /> ]* </service> </description>
Note:
The double question marks (" ?? ") after the
attributes in the whttp namespace indicates that those
optional attributes only make sense when the SOAP binding uses HTTP
as the underlying protocol, for example, when the value of the
wsoap:protocol attribute is
"http://www.w3.org/2003/05/soap/bindings/HTTP/".
A Binding component (defined in [ <a href= "#WSDL-PART1"> WSDL 2.0 Core Language ]) is identified as a SOAP binding by assigning the value "http://www.w3.org/2005/05/wsdl/soap" "http://www.w3.org/2005/08/wsdl/soap" to the <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#Binding_details"> {type} { type } property of the Binding component.
Payload Construction. When formulating the SOAP envelope to be transmitted the contents of the payload (i.e., the contents of the SOAP Body element information item of the SOAP envelope) MUST be what is defined by the corresponding Interface Message Reference component. This is subject to optimization by a feature that is in use which may affect serialization, such as MTOM [ SOAP Message Transmission Optimization Mechanism ]. The following default binding rules MUST be adhered to:
If the value of the <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceMessageReference_details"> {message { message content model} model } property of the Interface Message Reference component is <em> #any </em> "#any" then the payload MAY be any one XML element.
If the value is <em> #none </em> "#none" then the payload MUST be empty.
If the value is <em> #element </em> "#element" then the payload will be the element information item identified by the <a href= "http://www.w3.org/TR/2005/WD-wsdl20-20050510#InterfaceMessageReference_details"> {element} { element declaration } property of the Interface Message Reference component.
If the Interface Message Reference component is declared using a non-XML type system (as considered in the Types section of [ WSDL 2.0 Core Language ]) then additional binding rules MUST be defined to indicate how to map those components into the SOAP envelope.
Note:
This SOAP binding extension only allows one single element in SOAP body.
SOAP Header Construction. If the {soap headers} { soap headers } property as defined in section 4.10 5.10 Declaring SOAP Header Blocks exists and is not empty in a Binding Message Reference or Binding Fault component, element information item conforming to the element declaration of a SOAP Header Block component's {element} { element } property, in the {soap headers} { soap headers } property, MUST be turned into a SOAP header block for the corresponding message.
And, if the SOAP Header Block component's