Copyright © 2009 W3C ® ( MIT , ERCIM , Keio ), All Rights Reserved. W3C liability , trademark and document use rules apply.
This specification describes a general SOAP-based protocol for enumerating a sequence of XML elements that is suitable for traversing logs, message queues, or other linear information models.
1 Introduction
1.1 Requirements
2 Notations and Terminology
2.1 Notational
Conventions
2.2 Considerations on the
Use of Extensibility Points
2.3 XML
Namespaces
2.4 Terminology
2.5 Compliance
3 Enumeration Messages
3.1 Enumerate
3.2 Pull
3.3 Renew
3.4 GetStatus
3.5 Release
3.6 EnumerationEnd
4 Faults
4.1 InvalidExpirationTime
4.2 ExpirationTimeExceeded
4.3 UnsupportedExpirationTime
4.3 4.4 FilteringNotSupported
4.4 4.5 FilterDialectRequestedUnavailable
4.5 4.6 CannotProcessFilter
4.6 4.7 InvalidEnumerationContext
4.7 4.8 TimedOut
4.8 UnableToRenew
4.9 UnusableEPR
5 Security Considerations
6 WS-Enumeration Policy
Assertion(s) Metadata
6.1 Enumeration
Assertion
7 Acknowledgements
8 References
8.1 Normative
References
8.2 Informative
References
A XML Schema
B WSDL
C Change Log
There are numerous applications for which a simple single-request/single-reply metaphor is insufficient for transferring large data sets over SOAP. Applications that do not fit into this simple paradigm include streaming, traversal, query, and enumeration.
This specification defines a simple SOAP-based protocol for enumeration that allows the data source to provide a session abstraction, called an enumeration context, to a consumer that represents a logical cursor through a sequence of data items. The consumer can then request XML element information items using this enumeration context over the span of one or more SOAP messages.
Somewhere, state MUST be maintained regarding the progress of the iteration. This state MAY be maintained between requests by the data source being enumerated or by the data consumer. WS-Enumeration allows the data source to decide, on a request-by-request basis, which party will be responsible for maintaining this state for the next request.
In its simplest form, WS-Enumeration defines a single an operation,
Enumerate, used to establish the creation of an enumeration session
and another operation, Pull, which allows a data source, in
the context of a specific enumeration, to produce a sequence of XML
elements in the body of a SOAP message. Each subsequent Pull
operation returns the next N elements in the aggregate
sequence.
A data source MAY provide a custom mechanism for starting a new
enumeration. For instance, a data source that provides access to a
SQL database can support a SELECT operation that performs a
database query and uses an explicit database cursor to iterate
through the returned rows. In general, however, it is simpler if
all data sources support a single, standard operation to start an
enumeration. This specification defines such an operation,
Enumerate, that data sources MAY
MUST implement for starting a new
enumeration of a data source. The Enumerate operation is used to
create new enumeration contexts for subsequent traversal/retrieval.
Each Enumerate operation results in a distinct enumeration context,
each with its own logical cursor/position.
Note that different enumerations of the same data source can produce different results; this can happen even for two enumeration contexts created concurrently by a single consumer using identical Enumerate requests. In general, the consumer of an enumeration SHOULD NOT make any assumptions about the ordering or completeness of the enumeration; the returned data items represent a selection by the data source of items it wishes to present to that consumer at that time in that order, with no guarantee that every available item is returned or that the order in which items is returned has any semantic meaning whatsoever (of course, any specific data source can provide strong guarantees, if so desired). In particular, note that the very act of enumerating the contents of a data source can modify the contents of the data source; for instance, a queue might be represented as a data source such that items that are returned in a Pull response are removed from the queue.
This specification intends to meet the following requirements:
Support enumeration of data sources that cannot practically fit into a single SOAP message.
Support both server-side and client-side enumeration state maintenance.
Minimize additional mechanism beyond the current web service architecture.
This section specifies the notations, namespaces, and terminology used in this specification.
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
[RFC2119]
[RFC 2119] .
This specification uses the following syntax to define normative outlines for messages:
The syntax appears as an XML instance, but values in italics indicate data types instead of values.
Characters are appended to elements and attributes to indicate cardinality:
"?" (0 or 1)
"*" (0 or more)
"+" (1 or more)
The character "|" is used to indicate a choice between alternatives.
The characters "(" and ")" are used to indicate that contained items are to be treated as a group with respect to cardinality or choice.
The characters "[" and "]" are used to call out references and property names.
Ellipsis (i.e. "...") indicate points of extensibility.
XML namespace prefixes (see Table 2-1 ) are used to indicate the namespace of the element being defined.
In addition to Message Information Header properties [WS-Addressing] , this specification uses the following properties to define messages:
Unordered message headers.
The value to be used for the wsa:Action URI. IRI.
A message body.
These properties bind to a SOAP Envelope as follows:
<s:Envelope> <s:Header> [Headers] <wsa:Action>[Action]</wsa:Action> ... </s:Header> <s:Body>[Body]</s:Body> </s:Envelope>
This specification can be used in terms of XML Information Set
(Infoset) [XML Infoset] , even though the
specification uses XML 1.0 terminology. Valid Infoset for this
specification are is the one serializable in XML 1.0, hence the use
of XML 1.0.
The elements defined in this specification MAY be extended at the points indicated by their outlines and schema. Implementations MAY add child elements and/or attributes at the indicated extension points but MUST NOT contradict the semantics of the parent and/or owner, respectively. If a receiver does not recognize an extension, the receiver SHOULD ignore that extension. Senders MAY indicate the presence of an extension that has to be understood through the use of a corresponding SOAP Header with a soap:mustUnderstand attribute with the value "1".
In cases where it is either desirable or necessary for the receiver of a request that has been extended to indicate that it has recognized and accepted the semantics associated with that extension, it is RECOMMENDED that the receiver add a corresponding extension to the response message. The definition of an extension SHOULD clearly specify how the extension that appears in the response correlates with that in the corresponding request.
Extension elements and attributes MUST NOT use the Web Services Enumeration namespace URI.
The XML namespace URI that MUST be used by implementations of this specification is:
http://www.w3.org/2009/02/ws-enuhttp://www.w3.org/2009/09/ws-enu
Table 2-1 lists XML namespaces that are used in this specification. The choice of any namespace prefix is arbitrary and not semantically significant.
Prefix | XML Namespace | Specification(s) |
---|---|---|
wsen | This specification | |
s | http://www.w3.org/2003/05/soap-envelope | SOAP 1.2 [SOAP12] |
s11 | http://schemas.xmlsoap.org/soap/envelope/ | SOAP 1.1 [SOAP11] |
wsa | http://www.w3.org/2005/08/addressing | WS-Addressing [WS-Addressing] |
http://www.w3.org/2001/XMLSchema | XML Schema [XMLSchema - Part 1] , [XMLSchema - Part 2] | |
wsdl | http://schemas.xmlsoap.org/wsdl | WSDL/1.1 [WSDL11] |
The working group intends to update the value of the Web Services Enumeration namespace URI each time a new version of this document is published until such time that the document reaches Candidate Recommendation status. Once it has reached Candidate Recommendation status, the working group intends to maintain the value of the Web Services Enumeration namespace URI that was assigned in the Candidate Recommendation unless significant changes are made that impact the implementation or break post-CR implementations of the specification. Also see http://www.w3.org/2001/tag/doc/namespaceState.html and http://www.w3.org/2005/07/13-nsuri .
The Web service that is requesting the data enumeration from the data source
A Web service that supports traversal using enumeration contexts via the Enumerate operation defined in this specification
A session context that represents a specific traversal through a logical sequence of XML element information items using the Pull operation defined in this specification
An implementation is not compliant with this specification if it fails to satisfy one or more of the MUST or REQUIRED level requirements defined herein. A SOAP Node MUST NOT use the XML namespace identifier for this specification (listed in 2.3 XML Namespaces ) within SOAP Envelopes unless it is compliant with this specification.
Normative text within this specification takes precedence over the XML Schema and WSDL descriptions, which in turn take precedence over outlines, which in turn take precedence over examples.
All messages defined by this specification MUST be sent to a Web service that is addressable by an EPR (see [WS-Addressing] ).
Unless otherwise noted, all URIs
IRIs are absolute URIs IRIs and
URI IRI
comparison MUST be performed according to [RFC
3986] 3987] section 6.2.1. 5.3.1.
For any message defined by this specification, any OPTIONAL elements or attributes in the message MAY be used by senders of the message, however receivers of those messages MUST understand those OPTIONAL elements and attributes, unless other behavior is explicitly defined by this specification.
Enumeration contexts represent a specific traversal through a sequence of XML information items. An Enumerate operation MAY be used to establish an enumeration context from a data source. A Pull operation is used to fetch information items from a data source according to a specific enumeration context. A Release operation is used to tell a data source that the consumer is abandoning an enumeration context before it has completed the enumeration.
Enumeration contexts are represented as XML data that is opaque
to the consumer. Initially, the consumer gets an enumeration
context from the data source by means of an Enumerate operation.
The consumer then passes that XML data back to the data source in
the Pull request. Optionally, the data source MAY return an updated
enumeration context in the Pull response; when present, this new
enumeration context SHOULD MUST replace the old one on the consumer, and
SHOULD MUST
be passed to the data source in all future responses requests
until and unless the data source again returns an updated
enumeration context.
Consumers SHOULD NOT reuse old enumeration
contexts that have been replaced by the data source. Using a
replaced enumeration context in a Pull response MAY yield undefined
results, including being ignored or generating a fault. Once the
last element in a sequence has been returned, or the enumeration
context has expired, the enumeration context is considered invalid
and the result of subsequent operations referencing that context is
undefined. Callers MAY issue a Release operation against a
valid enumeration context at any time, which causes the enumeration
context to become invalid and allows the data source to free up any
resources it might have allocated to the enumeration. Issuing a
Release operation prior to reaching the end of the sequence of
elements is explicitly allowed; however, no further operations
SHOULD MUST
be issued after a Release.
An enumeration context can become invalid for any reason including:
Enumeration completed (i.e. an EndOfSequence has been returned in a Pull response)
Enumeration released
Enumeration expired
Enumeration ended (i.e. ended via an EnumerationEnd message from data source
Enumeration context replaced in the response to another Pull request
In addition, the data source MAY invalidate an enumeration context at any time, as necessary.
When processing a Pull, Renew, GetStatus or Release operation, a data source MUST generate an wsen:InvalidEnumerationContext fault if it determines that the enumeration context supplied by the consumer in the request is invalid.
Note that the data source might not be able to determine that an enumeration context is invalid, especially if all of the state associated with the enumeration is kept in the enumeration context and refreshed on every PullResponse or RenewResponse.
All data Data sources MUST support some the Enumerate
operation that allows an enumeration to
be started. start
an enumeration. A data source MAY support the Enumerate operation, or it MAY provide
some other mechanism mechanisms
for starting an enumeration and receiving an enumeration
context.
The Enumerate operation is initiated by sending an Enumerate request message to the data source. The Enumerate request message MUST be of the following form:
[Action]http://www.w3.org/2009/02/ws-enu/Enumeratehttp://www.w3.org/2009/09/ws-enu/Enumerate [Body] <wsen:Enumerate ...> <wsen:EndTo>endpoint-reference</wsen:EndTo> ?<wsen:Expires>()</wsen:Expires> ?<wsen:Expires min="(xs:dateTime | xs:duration)"? max="(xs:dateTime | xs:duration)"? exact="xs:boolean"? ...> (xs:dateTime | xs:duration) </wsen:Expires> ? <wsen:Filter Dialect="xs:anyURI"?> xs:any </wsen:Filter> ? xs:any* </wsen:Enumerate>
The following describes additional, normative constraints on the outline listed above:
This optional OPTIONAL element denotes where to send an
EnumerationEnd message if the enumeration is terminated
unexpectedly (see 3.6
EnumerationEnd ). If present, this element MUST be of type
wsa:EndpointReferenceType. Default is to not send this message. The
endpoint to which the EndTo EPR refers MUST support the
EnumerationEndPortType portType.
Requested This
OPTIONAL element can be used by the consumer to indicate the
expiration time for of the requested
enumeration. (No implied value.) The
data source defines value of this element indicates the actual desired
expiration and is not constrained to use
a time less or greater than
for the requested
expiration. enumeration. The
expiration time MAY implied default is indefinite (no expiry). The value of
this element MUST be a specific time or
a duration from between the
enumeration's creation time. Both specific
times values of the @min and
durations are interpreted based on
@max attributes inclusive. If the request is
malformed, the data source's
clock. source MUST generate a
wsen:InvalidExpirationTime fault.
If this element does not appear,
then the request is for an enumeration
that will not expire. That is, the consumer wsen:Expires element is requesting present and
the data source is not able to
create an enumeration with grant an indefinite
lifetime. If expiry time within range
indicated by the data source grants
such an enumeration, @min and @max
attribute values, it will terminate
when the end MUST generate a
wsen:ExpirationTimeExceeded fault.
The value of the enumeration is reached, or if the consumer sends
wsen:Expires element as well as those of its
@min and @max attributes MAY be either a Release request, duration
(xs:duration) or by the
a specific time (xs:dateTime). Data sources
MUST accept duration values and MAY accept specific time values.
Upon receiving a request that contains specific time values,
a data source at any time for
reasons that does not support
such as connection termination, resource
constraints, or system shut-down. value
types MUST fail the request and generate a
wsen:UnsupportedExpirationType fault.
If The value
types in a wsen:Expires element MAY differ among the
expiration time is either element and its attributes. For example, the element
value can be a zero duration
or while the @max
attribute can be a specific time that
occurs in time. Regardless of the
past according to value types, it MUST be true that wsen:Expires/@min
<= wsen:Expires <= wsen:Expires/@max as interpreted by
the data source, then source at the time the wsen:Enumerate request is
processed. If this is not true, the request MUST fail, fail and the
data source receiver MUST generate a
wsen:InvalidExpirationTime fault indicating
that an invalid expiration time was requested. fault.
Some data sources might not have
If a "wall time"
clock available, and so are able only consumer chooses to accept
durations as expirations. If such use
specific time values in a source
receives an Enumerate request containing request, it is RECOMMENDED that these values
include a specific time
expiration, then zone component. Specific time values that lack a time
zone will be interpreted in the request
MUST fail; if so, local time zone
of the data source SHOULD generate a
wsen:UnsupportedExpirationTime fault indicating receiver.
The implied default is PT0S. This
specifies the minimum expiration time that an unsupported the consumer
is willing to accept.
The implied default is indefinite (no
expiry). This specifies the maximum expiration type was requested. time
that the consumer is willing to accept.
The default value is "false" in which case this attribute has no effect. If this attribute value is "true" both @min and @max attributes MUST be ignored and are treated as if they had the same value as the wsen:Expires element.
This optional OPTIONAL element contains a Boolean predicate in
some dialect (see [ [Body]/wsen:Enumerate/wsen:Filter/@Dialect ] )
that all elements of interest MUST satisfy. The resultant
enumeration context MUST NOT return elements for which this
predicate expression evaluates to the value false. If this element
is absent, then the implied value is the expression true(),
indicating that no filtering is desired.
If the data source does not support filtering, the request MUST fail, and the data source MUST generate a wsen:FilteringNotSupported fault.
If the data source supports filtering but cannot honor the requested filter dialect, the request MUST fail, and the data source MUST generate a wsen:FilterDialectRequestUnavailable fault.
If the data source supports filtering and the requested dialect but cannot process the requested filter content, the request MUST fail, and the data source MUST generate a wsen:CannotProcessFilter fault.
Implied value is "http://www.w3.org/2009/02/ws-enu/Dialects/XPath10".
"http://www.w3.org/2009/09/ws-enu/Dialects/XPath10".
New dialect definitions MUST include sufficient information for proper application. For example, it would need to include the context (which data) over which the filter operates.
[Body] /wsen:Enumerate/wsen:Filter/@Dialect="http://www.w3.org/2009/02/ws-enu/Dialects/XPath10"
/wsen:Enumerate/wsen:Filter/@Dialect="http://www.w3.org/2009/09/ws-enu/Dialects/XPath10"
Value of [Body] /wsenu:Enumerate/wsen:Filter is an XPath [XPath1.0] predicate expression (PredicateExpr); the context of the expression is:
Context Node: any XML element that could be returned as a direct child of the wsen:Items element.
Context Position: 1.
Context Size: 1.
Variable Bindings: None.
Function Libraries: Core Function Library [XPath1.0] .
Namespace Declarations: The [in-scope namespaces] property [XML Infoset] of [Body] /wsen:Enumerate/wsen:Filter.
Other components of the outline above are not further constrained by this specification.
If included within the Enumerate request message, the wsen:EndTo
SHOULD have some cursory validity checking performed before the
Enumerate response is returned. While not all errors can be
detected prior to sending a message to that EPR, some obvious ones
can be detected. For example, an unsupported transport specified
within the wsa:Address IRI. Detecting these errors during Enumerate
processing will lessen the chances of the consumer creating an
unusable enumeration. If this check is performed and a problem is
detected then the event data source MUST generate a wsen:UnusableEPR fault
rather than returning the EnumerateResponse message.
Upon successful processing of an Enumerate request message, a data source is expected to create an enumeration context and return that context in an Enumerate response message, which MUST adhere to the following form:
[Action]http://www.w3.org/2009/02/ws-enu/EnumerateResponsehttp://www.w3.org/2009/09/ws-enu/EnumerateResponse [Body] <wsen:EnumerateResponse ...><wsen:Expires>()</wsen:Expires> ? <wsen:EnumerationContext>...</wsen:EnumerationContext><wsen:GrantedExpires ...> (xs:dateTime | xs:duration) </wsen:GrantedExpires> ? <wsen:EnumerationContext ...>...</wsen:EnumerationContext> xs:any* </wsen:EnumerateResponse>
The following describes additional, normative constraints on the outline listed above:
The expiration time assigned by the data source. The expiration
time MAY be either an absolute
a specific time or a duration but
SHOULD MUST
be of the same type as the requested
wsen:Expires element of the corresponding
request. If the corresponding request did not contain a
wsen:Expires element, this element MUST be a duration
(xs:duration).
When expressed as a duration, the
wsen:GrantedExpires element designates a time interval that began
at the moment the enumeration is created. Although this
specification cannot dictate when, during the processing of a
Enumerate request, an enumeration is created, the data source MUST
start the expiration (if any).
interval at or before it transmits the
wsen:EnumerateResponse message.
If this element does not appear, then the enumeration will not expire. That is, the enumeration has an indefinite lifetime. It will terminate when the end of the enumeration is reached, or if the consumer sends a Release request, or by the data source at any time for reasons such as connection termination, resource constraints, or system shut-down.
The required EnumerationContext element contains the XML representation of the new enumeration context. The consumer is required to pass this XML data in Pull requests for this enumeration context, until and unless a PullResponse or RenewResponse message updates the enumeration context.
Example 3-1 lists a sample Enumerate request.
(01) <s:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" (02) xmlns:wsa="http://www.w3.org/2005/08/addressing"(03) xmlns:wsen="http://www.w3.org/2009/02/ws-enu">(03) xmlns:wsen="http://www.w3.org/2009/09/ws-enu"> (04) <s:Header> (05) <wsa:Action>(06) http://www.w3.org/2009/02/ws-enu/Enumerate(06) http://www.w3.org/2009/09/ws-enu/Enumerate (07) </wsa:Action> (08) <wsa:MessageID> (09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839 (10) </wsa:MessageID> (11) <wsa:To>http://www.example.com/relayAgent/enum19</wsa:To> (12) <wsa:ReplyTo> (13) <wsa:Address> (14) http://www.w3.org/2005/08/addressing/anonymous (15) </wsa:Address> (16) </wsa:ReplyTo> (17) </s:Header> (18) <s:Body> (19) <wsen:Enumerate>(20) <wsen:Expires> PT10M </wsen:Expires>(20) <wsen:Expires min="PT10M"> PT10M </wsen:Expires> (21) </wsen:Enumerate> (22) </s:Body> (23) </s:Envelope>
Lines (05-07) in Example 3-1 indicate this message is an Enumerate request and that the data source is expected to respond with an Enumerate response message. The wsen:Expires element on line (20) indicates that the consumer would like an enumeration context that will be good for at least 10 minutes; that is, it expects to complete its enumeration within a 10 minute period. No wsen:Filter element is present, so the resultant enumeration context is expected to return all available elements.
Example 3-2 lists a response to the request in Example 3-1 .
(01) <s:Envelope xmlns:S='http://www.w3.org/2003/05/soap-envelope'(02) xmlns:wsen='http://www.w3.org/2009/02/ws-enu'(02) xmlns:wsen='http://www.w3.org/2009/09/ws-enu' (03) xmlns:wsa='http://www.w3.org/2005/08/addressing'> (04) <s:Header> (05) <wsa:Action>(06) http://www.w3.org/2009/02/ws-enu/EnumerateResponse(06) http://www.w3.org/2009/09/ws-enu/EnumerateResponse (07) </wsa:Action> (08) <wsa:RelatesTo>(09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839(09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839 (10) </wsa:RelatesTo> (11) <wsa:To> (12) http://www.w3.org/2005/08/addressing/anonymous (13) <wsa:To> (14) </s:Header> (15) <s:Body> (16) <wsen:EnumerateResponse> (17) <wsen:Expires> PT15M </wsen:Expires> (18) <wsen:EnumerationContext> (19) 123 (20) </wsen:EnumerationContext> (21) </wsen:EnumerateResponse> (22) </s:Body> (23) </s:Envelope>
Lines (05-07) in Example 3-2 indicate this message is an Enumerate response message. Line (17) indicates that the data source has actually created an enumeration context with a lifetime of 15 minutes. Lines (18-20) are the XML representation of the enumeration context that supports the Pull operation defined below.
The Pull operation is initiated by sending a Pull request message to the data source. The Pull request message MUST be of the following form:
[Action]http://www.w3.org/2009/02/ws-enu/Pullhttp://www.w3.org/2009/09/ws-enu/Pull [Body] <wsen:Pull ...><wsen:EnumerationContext>...</wsen:EnumerationContext><wsen:EnumerationContext ...>...</wsen:EnumerationContext> <wsen:MaxTime>xs:duration</wsen:MaxTime> ? <wsen:MaxElements>xs:long</wsen:MaxElements> ? <wsen:MaxCharacters>xs:long</wsen:MaxCharacters> ? xs:any* </wsen:Pull>
The following describes additional, normative constraints on the outline listed above:
This required element contains the XML data that represents the current enumeration context.
This optional OPTIONAL element (of type xs:duration) indicates
the maximum amount of time the initiator is willing to allow the
data source to assemble the Pull response. When this element is
absent, the data source is not required to limit the amount of time
it takes to assemble the Pull response. The
data source MUST recognize the wsen:MaxTime element and return a
wsen:TimedOut fault if no elements are available prior to the
request message's deadline.
This is useful with data sources that accumulate elements over time and package them into a single Pull response.
This optional OPTIONAL element (of type xs:long) indicates the
number of items (child elements of wsen:Items in the Pull response)
the consumer is willing to accept. When this element is absent, its
implied value is 1. Implementations MUST NOT return more than this
number of elements in the Pull response message. Implementations
MAY return fewer than this number based on either the wsen:MaxTime
timeout, the wsen:MaxCharacters size limit, or
implementation-specific constraints.
This optional OPTIONAL element (of type xs:long) indicates the
maximum size of the returned elements, in Unicode characters, that
the initiator is willing to accept. When this element is absent,
the data source is not required to limit the number of characters
in the Pull response. Implementations MUST NOT return a Pull
response message whose wsen:Items element is larger than
MaxCharacters. Implementations MAY return a smaller message based
on the wsen:MaxTime timeout, the wsen:MaxElements limit, or
implementation-specific constraints.
Even if a Pull request contains a MaxCharacters element, the consumer MUST be prepared to receive a Pull response that contains more data characters than specified, as XML canonicalization or alternate XML serialization algorithms can change the size of the representation.
It can happen that the next item the data source would return to the consumer is larger than MaxCharacters. In this case, the data source MAY skip the item, or MAY return an abbreviated representation of the item that fits inside MaxCharacters. If the data source skips the item, it MAY return it as part of the response to a future Pull request with a larger value of MaxCharacters, or it MAY omit it entirely from the enumeration. If the oversized item is the last item to be returned for this enumeration context and the data source skips it, it MUST include the wsen:EndOfSequence item in the Pull response and invalidate the enumeration context. See the discussion of wsen:EndOfSequence below.
Other components of the outline above are not further constrained by this specification.
Upon receipt of a Pull request message, the data source MAY wait
as long as it deems necessary (but not longer than the value of the
wsen:MaxTime element, if present) to produce a message for delivery
to the consumer. The data source MUST recognize the wsen:MaxTime
element and return a wsen:TimedOut fault if no elements are
available prior to the request message's deadline: deadline.
Note, however, that this fault SHOULD NOT cause the enumeration
context to become invalid (of course, the data source MAY
invalidate the enumeration context for other reasons). That is, the
requestor can issue additional Pull requests using this enumeration
context after receiving this fault.
Upon successful processing of a Pull request message, a data source is expected to return a Pull response message, which MUST adhere to the following form:
[Action]http://www.w3.org/2009/02/ws-enu/PullResponsehttp://www.w3.org/2009/09/ws-enu/PullResponse [Body] <wsen:PullResponse ...><wsen:EnumerationContext>...</wsen:EnumerationContext> ? <wsen:Items> ?<wsen:EnumerationContext ...>...</wsen:EnumerationContext> ? <wsen:Items> <xs:any> enumeration-specific element </xs:any> +</wsen:Items></wsen:Items> ? <wsen:EndOfSequence/> ? xs:any* </wsen:PullResponse>
The following describes additional, normative constraints on the outline listed above:
The optional OPTIONAL EnumerationContext element, if present,
contains a new XML representation of the current enumeration
context. The consumer is required to
MUST replace the prior representation
with the contents of this element.
The optional OPTIONAL Items element contains one or more
enumeration-specific elements, one for each element being
returned.
This optional OPTIONAL element indicates that no more elements
are available from this enumeration.
Additionally, once this element is returned in a Pull response
message, subsequent Pull requests using that enumeration
context MUST generate a
wsen:InvalidEnumerationContext fault message, if the data source is
able to determine that and the
enumeration context is no longer valid.
sent by the consumer in the request becomes
invalid.
Note that at least one of wsen:Items or wsen:EndOfSequence MUST appear. It is possible for both to appear if items are returned and the sequence is exhausted. Similarly, wsen:EnumerationContext and wsen:EndOfSequence MUST NOT both appear; neither can appear, or one without the other, but not both in the same PullResponse.
Example 3-3 lists a Pull request.
(01) <s:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" (02) xmlns:wsa="http://www.w3.org/2005/08/addressing"(03) xmlns:wsen="http://www.w3.org/2009/02/ws-enu">(03) xmlns:wsen="http://www.w3.org/2009/09/ws-enu"> (04) <s:Header> (05) <wsa:Action>(06) http://www.w3.org/2009/02/ws-enu/Pull(06) http://www.w3.org/2009/09/ws-enu/Pull (07) </wsa:Action> (08) <wsa:MessageID> (09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839 (10) </wsa:MessageID> (11) <wsa:To>http://www.example.com/relayAgent</wsa:To> (12) <wsa:ReplyTo> (13) <wsa:Address> (14) http://www.w3.org/2005/08/addressing/anonymous (15) </wsa:Address> (16) </wsa:ReplyTo> (17) </s:Header> (18) <s:Body> (19) <wsen:Pull> (20) <wsen:EnumerationContext>123</wsen:EnumerationContext> (21) <wsen:MaxTime>P30S</wsen:MaxTime> (22) <wsen:MaxElements>10</wsen:MaxElements> (23) </wsen:Pull> (24) </s:Body> (25) </s:Envelope>
Lines (05-07) in Example 3-3 indicate this message is a Pull request and that the data source is expected to respond with a Pull response message. Line (21) indicates that the response message SHOULD be generated no more than 30 seconds after receipt of the Pull request message. Line (22) indicates that no more than 10 elements can be returned in the body of the Pull response message.
Example 3-4 lists a response to the request in Example 3-3 .
(01) <s:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"(02) xmlns:wsen="http://www.w3.org/2009/02/ws-enu"(02) xmlns:wsen="http://www.w3.org/2009/09/ws-enu" (03) xmlns:wsa="http://www.w3.org/2005/08/addressing"> (04) <s:Header> (05) <wsa:Action>(06) http://www.w3.org/2009/02/ws-enu/PullResponse(06) http://www.w3.org/2009/09/ws-enu/PullResponse (07) </wsa:Action> (08) <wsa:RelatesTo> (09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839 (10) </wsa:RelatesTo> (11) <wsa:To> (12) http://www.w3.org/2005/08/addressing/anonymous (13) <wsa:To> (14) </s:Header> (15) <s:Body> (16) <wsen:PullResponse> (17) <wsen:Items xmlns:xx="http://fabrikam123.example.com/schema/log"> (18) <xx:LogEntry id="1">System booted</xx:LogEntry> (19) <xx:LogEntry id="2">AppX started</xx:LogEntry> (20) <xx:LogEntry id="3">John Smith logged on</xx:LogEntry> (21) <xx:LogEntry id="4">AppY started</xx:LogEntry> (22) <xx:LogEntry id="5">AppX crashed</xx:LogEntry> (23) </wsen:Items> (24) <wsen:EndOfSequence/> (25) </wsen:PullResponse> (26) </s:Body> (27) </s:Envelope>
Lines (05-07) in Example 3-4 indicate this message is a Pull response message. Lines (18-22) are the five elements returned by this Pull request. The presence of a wsen:EndOfSequence element (line (24)) indicates that no more elements are available and that the enumeration context is now invalid.
The consumer SHOULD NOT issue additional Pull request messages after a Pull response containing a wsen:EndOfSequence element has been returned. Similarly, upon receipt of a Pull response containing a wsen:EndOfSequence element, the consumer SHOULD NOT issue a Release operation to signal that the enumeration context is no longer needed.
Data sources MUST support requests to renew enumerations.
To renew an enumeration, the consumer sends a request of the following form to the data source:
[Action]http://www.w3.org/2009/02/ws-enu/Renewhttp://www.w3.org/2009/09/ws-enu/Renew [Body] <wsen:Renew ...><wsen:EnumerationContext>...</wsen:EnumerationContext> <wsen:Expires>()</wsen:Expires> ?<wsen:EnumerationContext ...>...</wsen:EnumerationContext> <wsen:Expires min="(xs:dateTime | xs:duration)"? max="(xs:dateTime | xs:duration)"? exact="xs:boolean"? ...> (xs:dateTime | xs:duration) </wsen:Expires> ? xs:any* </wsen:Renew>
Components of the outline listed above are additionally constrained as for a request to create an enumeration (see 3.1 Enumerate ) with the following addition(s):
This required element contains the XML data that represents the current enumeration context.
Other components of the outline above are not further constrained by this specification.
If the data source accepts a request to renew an enumeration, it MUST reply with a response of the following form:
[Action]http://www.w3.org/2009/02/ws-enu/RenewResponsehttp://www.w3.org/2009/09/ws-enu/RenewResponse [Body] <wsen:RenewResponse ...><wsen:Expires>()</wsen:Expires> ? <wsen:EnumerationContext>...</wsen:EnumerationContext> ?<wsen:GrantedExpires ...> (xs:dateTime | xs:duration) </wsen:GrantedExpires> ? <wsen:EnumerationContext ...>...</wsen:EnumerationContext> ? xs:any* </wsen:RenewResponse>
Components of the outline listed above are constrained as for a response to an Enumerate request (see 3.1 Enumerate ) with the following addition:
This element is optional OPTIONAL in this response.
If the data source chooses not to renew this enumeration, the
request MUST fail, and the data source SHOULD MUST generate a
wsen:UnableToRenew SOAP 1.1 Server fault or a SOAP 1.2 Receiver fault
indicating that the renewal was not accepted.
Other components of the outline above are not further constrained by this specification.
To get the status of an enumeration, the subscriber consumer
sends a request of the following form to the data source:
[Action]http://www.w3.org/2009/02/ws-enu/GetStatushttp://www.w3.org/2009/09/ws-enu/GetStatus [Body] <wsen:GetStatus ...><wsen:EnumerationContext>...</wsen:EnumerationContext> ?<wsen:EnumerationContext ...>...</wsen:EnumerationContext> ? xs:any* </wsen:GetStatus>
Components of the outline listed above are additionally constrained as for a request to renew an enumeration (see 3.3 Renew ). Other components of the outline above are not further constrained by this specification.
If the enumeration is valid and has not
expired, the data source MUST reply with a response of the
following form:
[Action]http://www.w3.org/2009/02/ws-enu/GetStatusResponsehttp://www.w3.org/2009/09/ws-enu/GetStatusResponse [Body] <wsen:GetStatusResponse ...><wsen:Expires>()</wsen:Expires> ?<wsen:GrantedExpires ...> (xs:dateTime | xs:duration) </wsen:GrantedExpires> ? xs:any* </wsen:GetStatusResponse>
Components of the outline listed above are constrained as for a response to a renew request (see 3.3 Renew ). Other components of the outline above are not further constrained by this specification.
This operation is safe; it will not result in any side effect imputable to the requester. This means that in case of an underlying protocol error that might get unnoticed, resending the same request can be done automatically.
The Release operation is initiated by sending a Release request message to the data source. The Release request message MUST be of the following form:
[Action]http://www.w3.org/2009/02/ws-enu/Releasehttp://www.w3.org/2009/09/ws-enu/Release [Body] <wsen:Release ...><wsen:EnumerationContext>...</wsen:EnumerationContext><wsen:EnumerationContext ...>...</wsen:EnumerationContext> xs:any* </wsen:Release>
The following describes additional, normative constraints on the outline listed above:
This required element contains the XML data that represents the enumeration context being abandoned.
Other components of the outline above are not further constrained by this specification.
Upon successful processing of a Release request message, a data source is expected to return a Release response message, which MUST adhere to the following form:
[Action]http://www.w3.org/2009/02/ws-enu/ReleaseResponsehttp://www.w3.org/2009/09/ws-enu/ReleaseResponse [Body] <wsen:ReleaseResponse ...> xs:any* </wsen:ReleaseResponse>
Example 3-5 lists a Release request.
(01) <s:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" (02) xmlns:wsa="http://www.w3.org/2005/08/addressing"(03) xmlns:wsen="http://www.w3.org/2009/02/ws-enu">(03) xmlns:wsen="http://www.w3.org/2009/09/ws-enu"> (04) <s:Header> (05) <wsa:Action>(06) http://www.w3.org/2009/02/ws-enu/Release(06) http://www.w3.org/2009/09/ws-enu/Release (07) </wsa:Action> (08) <wsa:MessageID> (09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839 (10) </wsa:MessageID> (11) <wsa:To>http://www.example.com/relayAgent</wsa:To> (12) <wsa:ReplyTo> (13) <wsa:Address> (14) http://www.w3.org/2005/08/addressing/anonymous (15) </wsa:Address> (16) </wsa:ReplyTo> (17) </s:Header> (18) <s:Body> (19) <wsen:Release> (20) <wsen:EnumerationContext>123</wsen:EnumerationContext> (21) </wsen:Release> (22) </s:Body> (23) </s:Envelope>
Lines (05-07) in Example 3-5 indicate this message is a Release request and that the data source is expected to respond with a Release response message. Line (20) identifies the enumeration context to be released.
Example 3-6 lists a response to the request in Example 3-5 .
(01) <s:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"(02) xmlns:wsen="http://www.w3.org/2009/02/ws-enu"(02) xmlns:wsen="http://www.w3.org/2009/09/ws-enu" (03) xmlns:wsa="http://www.w3.org/2005/08/addressing"> (04) <s:Header> (05) <wsa:Action>(06) http://www.w3.org/2009/02/ws-enu/ReleaseResponse(06) http://www.w3.org/2009/09/ws-enu/ReleaseResponse (07) </wsa:Action> (08) <wsa:RelatesTo> (09) uuid:e7c5726b-de29-4313-b4d4-b3425b200839 (10) </wsa:RelatesTo> (11) <wsa:To> (12) http://www.w3.org/2005/08/addressing/anonymous (13) <wsa:To> (14) </s:Header> (15) <s:Body> (16) <wsen:ReleaseResponse/> (17) </s:Body> (18) </s:Envelope>
Lines (05-07) in Example 3-6 indicate this message is a Release response message.
If the data source terminates an enumeration unexpectedly, the data source SHOULD send an EnumerationEnd SOAP message to the endpoint reference indicated when the enumeration was created (see 3.1 Enumerate ). The message MUST be of the following form:
[Action]http://www.w3.org/2009/02/ws-enu/EnumerationEndhttp://www.w3.org/2009/09/ws-enu/EnumerationEnd [Body] <wsen:EnumerationEnd ...> <wsen:Code>( http://www.w3.org/2009/02/ws-enu/SourceShuttingDown | http://www.w3.org/2009/02/ws-enu/SourceCancelling )( http://www.w3.org/2009/09/ws-enu/SourceShuttingDown | http://www.w3.org/2009/09/ws-enu/SourceCancelling ) </wsen:Code> <wsen:Reason xml:lang="language identifier" > xs:string </wsen:Reason> ? xs:any* </wsen:EnumerationEnd>
The following describes additional, normative constraints on the outline listed above:
This value MUST be used if the data source terminated the enumeration because the source is being shut down in a controlled manner; that is, if the data source is being shut down but has the opportunity to send an EnumerationEnd message before it exits.
This value MUST be used if the data source terminated the enumeration for some other reason before it expired.
This optional OPTIONAL element contains text, in the language
specified by the @xml:lang attribute, describing the reason for the
unexpected enumeration termination.
Other components of the outline above are not further constrained by this specification.
All fault messages defined in this specification MUST be sent according to the rules and usage described in [WS-Addressing 1.0 SOAP Binding] Section 6 for encoding SOAP 1.1 and SOAP 1.2 faults. The [Action] property below MUST be used for faults defined in this specification:
http://www.w3.org/2009/02/ws-enu/faulthttp://www.w3.org/2009/09/ws-enu/fault
The definitions of faults in this section use the following properties:
[Code] The fault code.
[Subcode] The fault subcode.
[Reason] The English language reason element.
[Detail] The detail element. If absent, no detail element is
defined for the fault.
For SOAP 1.2, the [Code] property MUST be either "Sender" or "Receiver". These properties are serialized into text XML as follows:
SOAP Version | Sender | Receiver |
---|---|---|
SOAP 1.2 | s12:Sender | s12:Receiver |
The properties above bind to a SOAP 1.2 fault as follows:
<s12:Envelope> <s12:Header> <wsa:Action> [Action] </wsa:Action> <!-- Headers elided for brevity. --> </s12:Header> <s12:Body> <s12:Fault> <s12:Code> <s12:Value>[Code]</s12:Value> <s12:Subcode> <s12:Value>[Subcode]</s12:Value> </s12:Subcode> </s12:Code> <s12:Reason> <s12:Text xml:lang="en">[Reason]</s12:Text> </s12:Reason> <s12:Detail> [Detail] ... </s12:Detail> </s12:Fault> </s12:Body> </s12:Envelope>
The properties bind to a SOAP 1.1 fault as follows:
<s11:Envelope> <s11:Body> <s11:Fault> <faultcode> [Subcode] </faultcode> <faultstring xml:lang="en"> [Reason] </faultstring> <detail> [Detail] ... </detail> </s11:Fault> </s11:Body> </s11:Envelope>
This fault is generated if the Enumerate
expiration time is either a zero duration or when a specific time
request specifies an expiration that
occurs in the past according to the data
source. is malformed.
[Code] | s12:Sender |
[Subcode] | wsen:InvalidExpirationTime |
[Reason] | Invalid expiration time. |
[Detail] |
This fault is generated when a request specifies an expiration that is not within the min/max range.
[Code] | s12:Sender |
[Subcode] | wsen:ExpirationTimeExceeded |
[Reason] | The expiration time requested is not within the min/max range. |
[Detail] |
This fault is generated if the Enumerate expiration time is specified not as a duration.
[Code] | s12:Sender |
[Subcode] | wsen:UnsupportedExpirationTime |
[Reason] | Unsupported expiration time. |
[Detail] |
This fault is generated if the data source does not support filters.
[Code] | s12:Sender |
[Subcode] | wsen:FilteringNotSupported |
[Reason] | Filtering not supported. |
[Detail] |
This fault is generated if the data source does not support the requested filter dialect.
[Code] | s12:Sender |
[Subcode] | wsen:FilterDialectRequestedUnavailable |
[Reason] | Filer dialect requested unavailable. |
[Detail] | <wsen:SupportedDialect> + |
This fault is generated if the data source can not process the filter content.
[Code] | s12:Sender |
[Subcode] | wsen:CannotProcessFilter |
[Reason] | Cannot filter as requested. |
[Detail] |
This fault is generated if the enumeration context is invalid.
[Code] | s12:Receiver |
[Subcode] | wsen:InvalidEnumerationContext |
[Reason] | Text explaining why the enumeration context is no longer valid, or "Invalid enumeration context" if no additional information is available. |
[Detail] |
This fault is generated if the data source times out is during the processing of
a Pull operation, if the wsen:MaxTime is reached.
[Code] | s12:Receiver |
[Subcode] | wsen:TimedOut |
[Reason] | Timeout. |
[Detail] |
This fault MAY be generated when a Data
Source data source detects that
the wsen:EndTo EPR is unusable.
[Code] | s12:Sender |
[Subcode] | wsen:UnusableEPR |
[Reason] | The wsen:EndTo EPR is unusable. |
[Detail] | Details as to why the EPR is unusable. |
It is strongly RECOMMENDED that the communication between services be secured using the mechanisms described in [WS-Security] .
In order to properly secure messages, the body (even if empty)
and all relevant headers need to be included in the signature.
Specifically, the WS-Addressing header blocks, WS-Security
timestamp, and any header blocks resulting from a
<wsa:ReferenceParameters>
in references need to
be signed along with the body in order to "bind" them together and
prevent certain types of attacks.
If a requestor is issuing multiple messages to a Web service, such as when a consumer is enumerating a data source, it is RECOMMENDED that a security context be established using the mechanisms described in [WS-SecureConversation] . It is often appropriate to establish a security context that is used both for the initiation of enumeration (i.e., the Enumerate request or an equivalent service-specific request) and the actual enumeration itself (i.e., the Pull requests). It is further RECOMMENDED that if shared secrets are used, message-specific derived keys SHOULD be used to protect the secret from crypto attacks.
The access control semantics of data sources is out-of-scope of this specification and are specific to each data source. Similarly, any protection mechanisms on data source independent of their transfer (e.g. embedded signatures and encryption) are also out-of-scope.
It is RECOMMENDED that the security considerations of WS-Security also be considered.
While a comprehensive set of attacks is not feasible, the following list summarizes common classes of attacks that apply to this protocol and identifies the mechanism(s) to prevent/mitigate the attacks.
Replay - Messages, or portions of messages, can be replayed in an attempt to gain access or disrupt services. Freshness checks such as timestamps, digests, and sequences can be used to detect duplicate messages.
Invalid tokens - There are a number of token attacks including certificate authorities, false signatures, and PKI attacks. Care SHOULD be taken to ensure each token is valid (usage window, digest, signing authority, revocation, ...), and that the appropriate delegation policies are in compliance.
Man-in-the-middle - The message exchanges in this specification could be subject to man-in-the-middle attacks so care SHOULD be taken to reduce possibilities here such as establishing a secure channel and verifying that the security tokens user represent identities authorized to speak for, or on behalf of, the desired resource reference.
Message alteration - Alteration is prevented by including signatures of the message information using WS-Security. Care SHOULD be taken to review message part references to ensure they haven't been forged (e.g. ID duplication).
Message disclosure - Confidentiality is preserved by encrypting sensitive data using WS-Security.
Key integrity - Key integrity is maintained by using the strongest algorithms possible (by comparing secured policies - see [WS-Policy] and [WS-SecurityPolicy] ) and by using derived keys ( [WS-SecureConversation] ).
Authentication - Authentication is established using the mechanisms described in WS-Security and WS-Trust. Each message is authenticated using the mechanisms described in WS-Security.
Accountability - Accountability is a function of the type of and string of the key and algorithms being used. In many cases, a strong symmetric key provides sufficient accountability. However, in some environments, strong PKI signatures are required.
Availability - All reliable messaging services are subject to a variety of availability attacks. Replay detection is a common attack and it is RECOMMENDED that this be addressed by the mechanisms described in WS-Security. Other attacks, such as network-level denial of service attacks are harder to avoid and are outside the scope of this specification. That said, care SHOULD be taken to ensure that minimal state is saved prior to any authenticating sequences.
An endpoint MAY indicate that it supports WS-Enumeration, or its
features, by including the WS-Enumeration Policy assertion(s) assertion
within its WSDL. By doing so the endpoint is indicating that the
corresponding WS-Enumeration operations are supported by that
endpoint even though they do not explicitly appear in its WSDL.
The WS-Enumeration WSDL containing the operations indicated by the Enumeration Assertion MAY be exposed as described in WS-MetadataExchange [WS-MetadataExchange] Section 9. This WS-Enumeration WSDL can be annotated to indicate any endpoint specific metadata that might be needed by clients interacting with this service. For example, the WSDL MAY have policy assertions that indicate a particular security mechanism used to protect the WS-Enumeration operations supported by this endpoint.
The mechanism for indicating that a binding or endpoint conforms to the WS-Enumeration specification is through the use of the Web Services Policy - Framework [WS-Policy] and Web Services Policy - Attachment [WS-Policy Attachment] specifications.
This specification defines a policy assertion (wsenu:DataSource). The wsenu:DataSource policy assertion applies to the endpoint policy subject.
For WSDL 1.1, these assertions MAY be attached to wsdl11:port or wsdl11:binding. For WSDL 2.0, they MAY be attached to wsdl20:endpoint or wsdl20:binding. A policy expression containing the wsenu:DataSource policy assertion MUST NOT be attached to a wsdl:portType or wsdl20:interface.
The wsenu:DataSource policy assertion is a nested policy container assertion. The meaning of this assertion, when present in a policy alternative, is that WS-Enumeration is required to communicate with the subject and that the subject is a WS-Enumeration data source.
In order to indicate that the subject supports WS-Enumeration but does not require its use, an additional policy alternative SHOULD be provided which does not contain this assertion. The compact authoring style for an OPTIONAL policy assertion (the wsp:Optional attribute) provided by WS-Policy MAY be used to indicate two policy alternatives, one which contains the policy assertion, and another which does not.
The normative outline of this assertion is:
<wsenu:DataSource ...> <wsenu:FilterDialect ...> xs:anyURI </wsenu:FilterDialect> * <wsenu:MaxExpires ...> xs:duration </wsenu:MaxExpires> ? <wsenu:MaxTime ...> xs:duration </wsenu:MaxTime> ? <wsenu:MaxElements ...> xs:long </wsenu:MaxElements> ? <wsenu:MaxCharacters ...> xs:long </wsenu:MaxCharacters> ? ... </wsenu:DataSource>
The following describes additional, normative constraints on the outline listed above:
A policy assertion that specifies that WS-Enumeration protocol MUST be used when communicating with this endpoint. This assertion has Endpoint Policy Subject.
When present, this OPTIONAL parameter indicates support for the specified Filter Dialect IRI.
When present, this OPTIONAL parameter indicates the maximum lifetime of enumerations that this endpoint will support. The implied default is indefinite (no expiry). Note: a value of "PT0S" indicates that this endpoint supports enumerations with an infinite lifetime.
When present, this OPTIONAL parameter indicates the maximum MaxTime value supported by this endpoint. The implied default is indefinite (no expiry). Note: a value of "PT0S" indicates that this endpoint supports any duration value.
When present, this OPTIONAL parameter indicates the maximum MaxElements value supported by this endpoint. The value specified MUST be greater than zero.
When present, this OPTIONAL parameter indicates the maximum MaxCharacters value supported by this endpoint. The value specified MUST be greater than zero.
This specification has been developed as a result of joint work
with many individuals and teams, including: Ashok Malhotra (Oracle
Corp.), Asir Vedamuthu (Microsoft Corp.), Bob Freund (Hitachi,
Ltd.), Doug Davis (IBM), Fred Maciel (Hitachi, Ltd.), Geoff Bullen
(Microsoft Corp.), Gilbert Pilz (Oracle Corp.), Greg Carpenter
(Microsoft Corp.), Jeff Mischkinsky (Oracle Corp.), Katy Warr
(IBM), Li Li (Avaya Communications), Mark Little (Red Hat), Prasad
Yendluri (Software AG), Ram Jeyaraman (Microsoft Corp.), Sreedhara
Narayanaswamy (CA), Sumeet Vij (Software AG), Vikas Varma (Software
AG), Wu Chou (Avaya Communications), Yves Lafon (W3C) (W3C).
A normative copy of the XML Schema [XMLSchema - Part 1] , [XMLSchema - Part 2] description for this specification can be retrieved from the following address:
http://www.w3.org/2009/02/ws-enu/enumeration.xsdhttp://www.w3.org/2009/09/ws-enu/enumeration.xsd
A non-normative copy of the XML schema is listed below for convenience.
<xs:schematargetNamespace="http://www.w3.org/2009/02/ws-enu" xmlns:tns="http://www.w3.org/2009/02/ws-enu"targetNamespace="http://www.w3.org/2009/09/ws-enu" xmlns:tns="http://www.w3.org/2009/09/ws-enu" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" blockDefault="#all"> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" /> <xs:import namespace="http://www.w3.org/2005/08/addressing" schemaLocation="http://www.w3.org/2005/08/addressing/ws-addr.xsd" /> <!-- Types and global elements --> <xs:complexType name="FilterType" mixed="true"> <xs:sequence> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="Dialect" type="xs:anyURI" use="optional"default="http://www.w3.org/2009/02/ws-enu/Dialects/XPath10"/>default="http://www.w3.org/2009/09/ws-enu/Dialects/XPath10"/> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> <xs:simpleType name="PositiveDurationType"> <xs:restriction base="xs:duration"> <xs:minExclusive value="P0Y0M0DT0H0M0S" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="NonNegativeDurationType"> <xs:restriction base="xs:duration"> <xs:minInclusive value="P0Y0M0DT0H0M0S" /> </xs:restriction> </xs:simpleType><xs:simpleType name="ExpirationType"> <xs:union memberTypes="xs:dateTime tns:NonNegativeDurationType" /><simpleType name="DurationDateTime"> <xs:union memberTypes="xs:dateTime tns:NonNegativeDurationType" /> </xs:simpleType> <xs:complexType name="MiniExpirationType"> <xs:simpleContent> <xs:extension base="tns:DurationDateTime"> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="ExpirationType"> <xs:simpleContent> <xs:extension base="tns:MiniExpirationType"> <xs:attribute name="min" type="tns:DurationDateTime" use="optional"/> <xs:attribute name="max" type="tns:DurationDateTime" use="optional"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="EnumerationContextType"> <xs:complexContent mixed="true"> <xs:restriction base="xs:anyType"> <xs:sequence> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:restriction> </xs:complexContent> </xs:complexType> <xs:complexType name="ItemListType"> <xs:sequence maxOccurs="unbounded"> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="LanguageSpecificStringType"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute ref="xml:lang" /> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:extension> </xs:simpleContent> </xs:complexType> <!-- Enumerate request --> <xs:element name="Enumerate"> <xs:complexType> <xs:sequence> <xs:element name="EndTo" type="wsa:EndpointReferenceType" minOccurs="0" /> <xs:element name="Expires" type="tns:ExpirationType" minOccurs="0" /> <xs:element name="Filter" type="tns:FilterType" minOccurs="0" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Used for a fault response --> <xs:element name="SupportedDialect" type="xs:anyURI" /> <!-- Enumerate response --> <xs:element name="EnumerateResponse"> <xs:complexType> <xs:sequence><xs:element name="Expires" type="tns:ExpirationType"<xs:element name="GrantedExpires" type="tns:MiniExpirationType" minOccurs="0" /> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Pull request --> <xs:element name="Pull"> <xs:complexType> <xs:sequence> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" /> <xs:element name="MaxTime" type="tns:PositiveDurationType" minOccurs="0" /> <xs:element name="MaxElements" type="xs:positiveInteger" minOccurs="0" /> <xs:element name="MaxCharacters" type="xs:positiveInteger" minOccurs="0" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Pull response --> <xs:element name="PullResponse"> <xs:complexType> <xs:sequence> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" minOccurs="0" /> <xs:element name="Items" type="tns:ItemListType" minOccurs="0" /> <xs:element name="EndOfSequence" minOccurs="0" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Renew request --> <xs:element name="Renew"> <xs:complexType> <xs:sequence> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" /> <xs:element name="Expires" type="tns:ExpirationType" minOccurs="0" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Renew response --> <xs:element name="RenewResponse"> <xs:complexType> <xs:sequence><xs:element name="Expires" type="tns:ExpirationType"<xs:element name="GrantedExpires" type="tns:MiniExpirationType" minOccurs="0" /> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" minOccurs="0" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- GetStatus request --> <xs:element name="GetStatus"> <xs:complexType> <xs:sequence> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- GetStatus response --> <xs:element name="GetStatusResponse"> <xs:complexType> <xs:sequence><xs:element name="Expires" type="tns:ExpirationType"<xs:element name="GrantedExpires" type="tns:MiniExpirationType" minOccurs="0" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Release request --> <xs:element name="Release"> <xs:complexType> <xs:sequence> <xs:element name="EnumerationContext" type="tns:EnumerationContextType" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- Release response --> <xs:element name="ReleaseResponse"> <xs:complexType> <xs:sequence> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <!-- EnumerationEnd message --> <xs:element name="EnumerationEnd"> <xs:complexType> <xs:sequence> <xs:element name="Code" type="tns:OpenEnumerationEndCodeType" /> <xs:element name="Reason" type="tns:LanguageSpecificStringType" minOccurs="0" maxOccurs="unbounded" /> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> <xs:simpleType name="EnumerationEndCodeType"> <xs:restriction base="xs:anyURI"><xs:enumeration value= "http://www.w3.org/2009/02/ws-enu/SourceShuttingDown" /> <xs:enumeration value= "http://www.w3.org/2009/02/ws-enu/SourceCancelling" /><xs:enumeration value= "http://www.w3.org/2009/09/ws-enu/SourceShuttingDown" /> <xs:enumeration value= "http://www.w3.org/2009/09/ws-enu/SourceCancelling" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="OpenEnumerationEndCodeType"> <xs:union memberTypes="tns:EnumerationEndCodeType xs:anyURI" /> </xs:simpleType> <!-- Policy --> <xs:complexType name="Duration"> <xs:simpleContent> <xs:extension base="tns:NonNegativeDurationType"> <xs:anyAttribute namespace="##other"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="URI"> <xs:simpleContent> <xs:extension base="xs:anyURI"> <xs:anyAttribute namespace="##other"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:complexType name="Long"> <xs:simpleContent> <xs:extension base="xs:long"> <xs:anyAttribute namespace="##other"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="DataSource"> <xs:complexType> <xs:sequence> <xs:element name="FilterDialect" type="tns:URI" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="MaxExpires" type="tns:Duration" minOccurs="0"/> <xs:element name="MaxTime" type="tns:Duration" minOccurs="0"/> <xs:element name="MaxElements" type="tns:Long" minOccurs="0"/> <xs:element name="MaxCharacters" type="tns:Long" minOccurs="0"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> </xs:element> </xs:schema>
A normative copy of the WSDL [WSDL11] description for this specification can be retrieved from the following address:
http://www.w3.org/2009/02/ws-enu/enumeration.wsdlhttp://www.w3.org/2009/09/ws-enu/enumeration.wsdl
A non-normative copy of the WSDL description is listed below for convenience.
<wsdl:definitionstargetNamespace="http://www.w3.org/2009/02/ws-enu"targetNamespace="http://www.w3.org/2009/09/ws-enu" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"xmlns:wsen="http://www.w3.org/2009/02/ws-enu"xmlns:wsen="http://www.w3.org/2009/09/ws-enu" xmlns:xs="http://www.w3.org/2001/XMLSchema" > <wsdl:types> <xs:schema> <xs:importnamespace="http://www.w3.org/2009/02/ws-enu" schemaLocation="http://www.w3.org/2009/02/ws-enu/enumeration.xsd" />namespace="http://www.w3.org/2009/09/ws-enu" schemaLocation="http://www.w3.org/2009/09/ws-enu/enumeration.xsd" /> </xs:schema> </wsdl:types> <wsdl:message name="EnumerateMessage"> <wsdl:part name="Body" element="wsen:Enumerate" /> </wsdl:message> <wsdl:message name="EnumerateResponseMessage"> <wsdl:part name="Body" element="wsen:EnumerateResponse" /> </wsdl:message> <wsdl:message name="PullMessage"> <wsdl:part name="Body" element="wsen:Pull" /> </wsdl:message> <wsdl:message name="PullResponseMessage"> <wsdl:part name="Body" element="wsen:PullResponse" /> </wsdl:message> <wsdl:message name="RenewMessage" > <wsdl:part name="Body" element="wsen:Renew" /> </wsdl:message> <wsdl:message name="RenewResponseMessage" > <wsdl:part name="Body" element="wsen:RenewResponse" /> </wsdl:message> <wsdl:message name="GetStatusMessage" > <wsdl:part name="Body" element="wsen:GetStatus" /> </wsdl:message> <wsdl:message name="GetStatusResponseMessage" > <wsdl:part name="Body" element="wsen:GetStatusResponse" /> </wsdl:message> <wsdl:message name="ReleaseMessage"> <wsdl:part name="Body" element="wsen:Release" /> </wsdl:message> <wsdl:message name="ReleaseResponseMessage"> <wsdl:part name="Body" element="wsen:ReleaseResponse" /> </wsdl:message> <wsdl:message name="EnumerationEndMessage" > <wsdl:part name="Body" element="wsen:EnumerationEnd" /> </wsdl:message> <wsdl:portType name="DataSource"> <wsdl:operation name="EnumerateOp"> <wsdl:input message="wsen:EnumerateMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/Enumerate" />wsam:Action="http://www.w3.org/2009/09/ws-enu/Enumerate" /> <wsdl:output message="wsen:EnumerateResponseMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/EnumerateResponse" />wsam:Action="http://www.w3.org/2009/09/ws-enu/EnumerateResponse" /> </wsdl:operation> <wsdl:operation name="PullOp"> <wsdl:input message="wsen:PullMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/Pull" />wsam:Action="http://www.w3.org/2009/09/ws-enu/Pull" /> <wsdl:output message="wsen:PullResponseMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/PullResponse" />wsam:Action="http://www.w3.org/2009/09/ws-enu/PullResponse" /> </wsdl:operation> <wsdl:operation name="RenewOp" > <wsdl:input message="wsen:RenewMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/Renew" />wsam:Action="http://www.w3.org/2009/09/ws-enu/Renew" /> <wsdl:output message="wsen:RenewResponseMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/RenewResponse" />wsam:Action="http://www.w3.org/2009/09/ws-enu/RenewResponse" /> </wsdl:operation> <wsdl:operation name="GetStatusOp" > <wsdl:input message="wsen:GetStatusMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/GetStatus" />wsam:Action="http://www.w3.org/2009/09/ws-enu/GetStatus" /> <wsdl:output message="wsen:GetStatusResponseMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/GetStatusResponse" />wsam:Action="http://www.w3.org/2009/09/ws-enu/GetStatusResponse" /> </wsdl:operation> <wsdl:operation name="ReleaseOp"> <wsdl:input message="wsen:ReleaseMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/Release" />wsam:Action="http://www.w3.org/2009/09/ws-enu/Release" /> <wsdl:output message="wsen:ReleaseResponseMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/ReleaseResponse" />wsam:Action="http://www.w3.org/2009/09/ws-enu/ReleaseResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:portType name="EnumerationEndPortType"> <wsdl:operation name="EnumerationEndOp" > <wsdl:input message="wsen:EnumerationEndMessage"wsam:Action="http://www.w3.org/2009/02/ws-enu/EnumerationEnd" />wsam:Action="http://www.w3.org/2009/09/ws-enu/EnumerationEnd" /> </wsdl:operation> </wsdl:portType> </wsdl:definitions>
Data | Author | Description |
---|---|---|
2009/03/04 | DD | Added resolution of issue 6391 |
2009/03/04 | DD | Added resolution of issue 6519 |
2009/03/11 | DD | Added change log |
2009/03/11 | DD | Added resolution of issue 6641 |
2009/03/11 | DD | Added resolution of issue 6425 |
2009/03/16 | KW | Added resolution of issue 6587 |
2009/03/17 | DD | Added resolution of issue 6399 |
2009/03/23 | DD | Added resolution of issue 6666 |
2009/03/24 | DD | Added resolution of issue 6648 |
2009/04/07 | DD | Added resolution of issue 6499 |
2009/04/07 | DD | Added resolution of issue 6726 |
2009/04/22 | KW | Added resolution of issue 6739 |
2009/04/28 | DD | Added resolution of issue 6787 |
2009/05/12 | DD | Added resolution of issue 6860 |
2009/05/13 | DD | Added resolution of issue 6696 |
2009/05/21 | DD | Added resolution of issue 6674 |
2009/05/26 | KW | Added resolution of issue 6920 |
2009/05/27 | DD | Added resolution of issue 6906 |
2009/06/04 | DD | Added resolution of issue 6916 |
2009/06/11 | DD | Added resolution of issue 6956 |
2009/08/05 | DD | Added resolution of issue 7159 |
2009/08/06 | DD | Added resolution of issue 7192 |
2009/08/18 | DD | Added resolution of issue 7206 |
2009/08/18 | DD | Added resolution of issue 7193 |
2009/08/25 | DD | Added resolution of issue 7365 |
2009/08/25 | DD | Added resolution of issue 7270 |
2009/08/25 | DD | Added resolution of issue 7235 |
2009/09/01 | DD | Added resolution of issue 6427 |
2009/09/01 | DD | Added resolution of issue 6701 |
2009/09/01 | DD | Added resolution of issue 7430 |
2009/09/02 | DD | Added resolution of issue 6694 |
2009/09/02 | DD | Added resolution of issue 6533 |
2009/09/23 | DD | Added resolution of issue 6568 |
2009/09/30 | DD | Added resolution of issue 7716 |
2009/10/02 | DD | Added resolution of issue 7426 |
2009/10/05 | DD | Added resolution of issues 6403 ,6721 |
2009/10/06 | DD | Added resolution of issue 7587 |
2009/10/13 | DD | Added resolution of issue 7827 |
2009/10/20 | DD | Added resol |