Web
Services Enumeration (WS-Enumeration)
Latest version:
http://www.w3.org/TR/ws-enumeration
Previous
version:
http://www.w3.org/TR/2009/WD-ws-enumeration-20090317
Editors:
Doug Davis, IBM
Ashok Malhotra, Oracle
Katy Warr, IBM
Wu Chou, Avaya
Copyright ©
2010 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.
This document is an
editors' copy that has no official standing.
1 Composable Architecture
2 Introduction
2.1 Requirements
3 Notations and Terminology
3.1 Notational Conventions
3.2 Considerations on the Use of
Extensibility Points
3.3 Terminology
3.4 Compliance
3.5 XML Namespaces
4 Enumeration Messages
4.1 Enumerate
4.2 Pull
4.3 Renew
4.4 GetStatus
4.5 Release
4.6 EnumerationEnd
5 Faults
5.1 ExpiresNotSupported
5.2 UnsupportedExpirationValue
5.3 UnsupportedExpirationTime
5.4 FilteringNotSupported
5.5 FilterDialectRequestedUnavailable
5.6 CannotProcessFilter
5.7 InvalidEnumerationContext
5.8 TimedOut
5.9 UnusableEPR
5.10 EndToNotSupported
5.11 EmptyFilter
6 Security Considerations
6.1 Creating Enumeration Contexts
6.2 Protecting Enumeration Contexts
6.3 Endpoint Verification
7 WS-Enumeration Metadata
7.1 Enumeration Assertion
8 Acknowledgements
9 References
9.1 Normative References
9.2 Informative References
A XML Schema
B WSDL
C Action Tables
D Change Log
By using the XML, SOAP [SOAP11], [SOAP12], and WSDL [WSDL11] extensibility models, the Web service
specifications (WS-*) are designed to be composed with each other to provide a
rich set of tools for the Web services environment. This specification
specifically relies on other Web service specifications to provide secure,
reliable, and/or transacted message delivery and to express Web service and
client policy.
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
an operation, EnumeratePull, used to
establish the creation of an enumeration session or 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 mandates defines
such an operation, Enumerate, that data sources MUST implement the Pull
operation for starting a new enumeration of a data source. The
Enumerate operation is used to create new enumeration contexts for subsequent
traversal/retrieval. Each new enumeration 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 Pull requests.
The ordering or completeness of the enumeration is undefined; 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 [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 3-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:
[Headers]
Unordered message headers.
[Action]
The value to be used for the wsa:Action IRI.
[Body]
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
is the one serializable in XML 1.0, hence the use of XML 1.0.
The term "generate" is used in relation to the
various faults defined by this specification to imply that a fault is produced
and no further processing SHOULD be performed. In these cases the fault SHOULD
be transmitted. However, there might be reasons when a compliant implementation
can choose not to transmit the fault - for example, security concerns - in
these situations the service MAY choose not to transmit the fault.
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.
Consumer
The
Web service that is requesting the data enumeration from the data source
Data Source
A Web
service that supports traversal using enumeration contexts via the Enumerate Pull operation
defined in this specification
Enumeration context
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 3.5 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 conform
to the WS-Addressing specifications and be sent to a Web service that is
addressable by an EPR (see [WS-Addressing]).
Unless otherwise noted, all IRIs are absolute IRIs and
IRI comparison MUST be performed according to [RFC 3987]
section 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 support those OPTIONAL
elements and attributes, unless other behavior is explicitly defined by this
specification.
Implementations are expected to support both UTF-8 and
UTF-16 as described in XML 1.0.
The XML namespace URI that MUST be used by
implementations of this specification is:
Table 3-1 lists XML
namespaces that are used in this specification. The choice of any namespace
prefix is arbitrary and not semantically significant.
Table 3-1: Prefixes
and XML namespaces used in this specification |
||
Prefix |
XML Namespace |
Specification(s) |
wsen |
This specification |
|
s |
SOAP 1.2 [SOAP12] |
|
s11 |
SOAP 1.1 [SOAP11] |
|
wsa |
WS-Addressing [WS-Addressing] |
|
xs |
XML Schema [XMLSchema -
Part 1], [XMLSchema - Part 2] |
|
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
.
Enumeration contexts represent a specific
traversal through a sequence of XML information items. An Enumerate Pull operation
can be used to establish an enumeration context from a data source. A subsequent
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 PullEnumerate
operation. The consumer then passes that XML data back to the data source in subsequentthe
Pull requests. Optionally, the data source MAY
return an updated enumeration context in the Pull response; when present, this
new enumeration context MUST replace the old one on the consumer, and MUST be
passed to the data source in all future requests until and unless the data
source again returns an updated enumeration context.
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 MUST be issued after a Release.
An enumeration context can become invalid for
any reason including:
1. Enumeration completed (i.e. an EndOfSequence has been returned in a Pull
response)
2. Enumeration released
3. Enumeration expired
4. Enumeration ended (i.e. ended via an EnumerationEnd message from data
source)
5. 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.
Once a consumer determines that an
enumeration context is invalid, it MUST NOT issue any more WS-Enumeration
request messages referencing that enumeration context.
This specification defines the Enumerate operation
to start an enumeration. This operation MUST be supported by compliant data
sources.
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/2002/ws/ra/edcopies/ws-enu/Enumerate
[Body]
<wsen:Enumerate ...>
<wsen:EndTo>endpoint-reference</wsen:EndTo>
?
<wsen:Expires BestEffort="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:
[Body]/wsen:Enumerate/wsen:EndTo
This
OPTIONAL element denotes where to send an EnumerationEnd message if the
enumeration is terminated unexpectedly (see 4.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. Unless some mechanism is used to indicate
otherwise, the messages sent to this endpoint MUST use the same version of SOAP
that was used for the Enumerate message.
If the data source does not support the use of the
EndTo EPR, the data source MUST generate a wsen:EndToNotSupported fault.
[Body]/wsen:Enumerate/wsen:Expires
This OPTIONAL element can be used by the consumer
to indicate the expiration time of the requested enumeration. If this element
is not present, the implied default expiration time is indefinite. A value of
PT0S indicates a request for an indefinite expiration time.
If the data source does not support the
wsen:Expires element being present in an Enumerate request message then a
wsen:ExpiresNotSupported fault MUST be generated.
If the wsen:Expires element is present and the data
source is not able to grant an expiration time that matches the specified value
then it MUST generate a wsen:UnsupporedExpirationValue fault.
The value of the wsen:Expires element MAY be either
a duration (xs:duration) or 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 that does not support
such value types MUST fail the request and generate a
wsen:UnsupportedExpirationType fault.
If a consumer chooses to use specific time values
in a request, it is RECOMMENDED that these values include a time zone
component. Specific time values that lack a time zone MUST be interpreted in
the local time zone of the receiver.
[Body]/wsen:Enumerate/wsen:Expires@BestEffort
This OPTIONAL attribute, when present with a value
of 'true', indicates that the data source MUST grant an expiration time that is
its best effort to match the requested expiration time. Default value of this
attribute is "false" in which case the data source MUST grant the
requested expiration time or fault the enumeration request as defined above.
[Body]/wsen:Enumerate/wsen:Filter
This 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:FilterDialectRequestedUnavailable 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.
It is possible for an Enumerate request to contain
a filter that will never evaluate to true for the lifetime of the enumeration.
If a data source detects this condition it MUST generate a wsen:EmptyFilter
fault in response to the Enumerate request message.
[Body]/wsen:Enumerate/wsen:Filter/@Dialect
Implied
value is
"http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Dialects/XPath10".
If
filtering is supported, then support for the XPath 1.0 dialect (described
below) is RECOMMENDED. Alternate filter dialects can be defined. Such dialect
definitions MUST include sufficient information for proper application. For
example, it would need to define the context (which data) over which the filter
operates.
[Body]/wsen:Enumerate/wsen:Filter/@Dialect="
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Dialects/XPath10
Value of [Body]/wsen: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.
The namespace bindings are evaluated against any
namespace declarations that are in scope where the XPath expression appears
within the SOAP message. Note that the evaluation of expressions that rely on
such context dependent bindings is fragile in the face of transformations that
alter namespace prefixes. Such transformations might occur during the
transmission, processing, storage, or retrieval of a request. Clients that wish
to isolate expressions from the effects of any changes to the namespace
prefixes in the containing SOAP message are advised to construct expressions in
a manner that avoids the use of namespace prefixes. For example, use an
expression such as "/a[namespace-uri()='http://www.example.com']" not
"/ns1:a".
[Body]/wsen:Enumerate/wsen:Filter/@Dialect="
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Dialects/XPath20
This filter dialect is the same as the XPath 1.0
filter dialect except that it uses [XPath2.0] instead of XPath
1.0 as the expression language.
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 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 MUST create an enumeration context and return that
context in an Enumerate response message of the following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/EnumerateResponse
[Body]
<wsen:EnumerateResponse ...>
<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:
[Body]/wsen:EnumerateResponse/wsen:GrantedExpires
The expiration time assigned by the data source.
The expiration time MAY be either a specific time or a duration but MUST be of
the same type as the 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 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. Likewise, a value of PT0S indicates that the enumeration will not
expire. 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.
[Body]/wsen:EnumerateResponse/wsen:EnumerationContext
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 4-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/2002/ws/ra/edcopies/ws-enu">
(04) <s:Header>
(05) <wsa:Action>
(06) http://www.w3.org/2002/ws/ra/edcopies/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>
(21) </wsen:Enumerate>
(22) </s:Body>
(23) </s:Envelope>
Lines (05-07) in Example 4-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 10 minutes. No wsen:Filter element is
present, so the resultant enumeration context is expected to return all
available elements.
Example 4-2 lists a response to the request in Example 4-1.
(01) <s:Envelope
xmlns:S='http://www.w3.org/2003/05/soap-envelope'
(02) xmlns:wsen='http://www.w3.org/2002/ws/ra/edcopies/ws-enu'
(03)
xmlns:wsa='http://www.w3.org/2005/08/addressing'>
(04) <s:Header>
(05) <wsa:Action>
(06)
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/EnumerateResponse
(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:EnumerateResponse>
(17) <wsen:Expires> PT10M
</wsen:Expires>
(18) <wsen:EnumerationContext>
(19) 123
(20) </wsen:EnumerationContext>
(21) </wsen:EnumerateResponse>
(22) </s:Body>
(23) </s:Envelope>
Lines (05-07) in Example 4-2 indicate this message is an Enumerate response
message. Line (17) indicates that the data source has created an enumeration
context with a lifetime of 10 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. This operation MUST be supported by
compliant data sources. The Pull request message MUST be of the following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Pull
[Body]
<wsen:Pull ...>
( <wsen:NewContext>
<wsen:EndTo> endpoint-reference
</wsen:EndTo> ?
<wsen:Expires
BestEffort="xs:boolean"? ...>
(xs:dateTime | xs:duration)
</wsen:Expires> ?
<wsen:Filter
Dialect="xs:anyURI"?> xs:any </wsen:Filter> ?
xs:any*
</wsen:NewContext> |
<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:
[Body]/wsen:Pull/wsen:EnumerationContext
This REQUIRED element
contains the XML data that represents the current enumeration context. [Body]/wsen:Pull/wsen:NewContext
This OPTIONAL
element contains the information necessary to create a new
Enumeration.
[Body]/wsen:Pull/wsen:NewContext/wsen:EndTo
This
OPTIONAL element denotes where to send an
EnumerationEnd message if the enumeration is terminated unexpectedly (see 4.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.
Unless some mechanism is used to indicate otherwise, the messages sent to this
endpoint MUST use the same version of SOAP that was used for the Pull message.
If the
data source does not support the use of the EndTo EPR, the data source MUST
generate a wsen:EndToNotSupported fault.
If included within the EnumeratePull request message, the wsen:EndTo SHOULD have some
cursory validity checking performed before the EnumeratePull 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 EnumeratePull processing will lessen the chances of the consumer
creating an unusable enumeration. If this check is performed and a problem is
detected then the data source MUST generate a wsen:UnusableEPR fault rather
than returning the EnumeratePullResponse message.
[Body]/wsen:Pull/wsen:NewContext/wsen:Expires
This
OPTIONAL element can be used by the consumer to indicate the expiration time of
the requested enumeration. If this element is not present, the implied default
expiration time is indefinite. A value of PT0S indicates a request for an
indefinite expiration time.
If the
data source does not support the wsen:Expires element being present in an Pull request message
then a wsen:ExpiresNotSupported fault MUST be generated.
If the
wsen:Expires element is present and the data source is not able to grant an
expiration time that matches the specified value then it MUST generate a
wsen:UnsupporedExpirationValue fault.
The value
of the wsen:Expires element MAY be either a duration (xs:duration) or 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 that does not support such value types MUST fail the
request and generate a wsen:UnsupportedExpirationType fault.
If a
consumer chooses to use specific time values in a request, it is RECOMMENDED
that these values include a time zone component. Specific time values that lack
a time zone MUST be interpreted in the local time zone of the receiver.
[Body]/wsen:Pull/wsen:NewContext/wsen:Expires@BestEffort
This
OPTIONAL attribute, when present with a value of 'true', indicates that the
data source MUST grant an expiration time that is its best effort to match the
requested expiration time. Default value of this attribute is "false"
in which case the data source MUST grant the requested expiration time or fault
the enumeration request as defined above.
[Body]/wsen:Pull/wsen:NewContext/wsen:Filter
This
OPTIONAL element contains a Boolean predicate in some dialect (see [[Body]/wsen:Pull/ wsen:NewContext/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:FilterDialectRequestedUnavailable 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.
It is
possible for an Pull request to contain a filter
that will never evaluate to true for the lifetime of the enumeration. If a data
source detects this condition it MUST generate a wsen:EmptyFilter fault in
response to the Pull request message.
[Body]/wsen:Pull/wsen:NewContext/wsen:Filter/@Dialect
Implied
value is
"http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Dialects/XPath10".
If
filtering is supported, then support for the XPath 1.0 dialect (described
below) is RECOMMENDED. Alternate filter dialects can be defined. Such dialect
definitions MUST include sufficient information for proper application. For
example, it would need to define the context (which data) over which the filter
operates.
[Body]/wsen:Pull/wsen:NewContext/wsen:Filter/@Dialect="
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Dialects/XPath10
Value of [Body]/wsen:Pull/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:Pull/wsen:Filter.
The
namespace bindings are evaluated against any namespace declarations that are in
scope where the XPath expression appears within the SOAP message. Note that the
evaluation of expressions that rely on such context dependent bindings is
fragile in the face of transformations that alter namespace prefixes. Such
transformations might occur during the transmission, processing, storage, or
retrieval of a request. Clients that wish to isolate expressions from the
effects of any changes to the namespace prefixes in the containing SOAP message
are advised to construct expressions in a manner that avoids the use of
namespace prefixes. For example, use an expression such as
"/a[namespace-uri()='http://www.example.com']" not
"/ns1:a".
[Body]/wsen:Pull/wsen:NewContext/wsen:Filter/@Dialect="
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Dialects/XPath20
This
filter dialect is the same as the XPath 1.0 filter dialect except that it uses [XPath2.0]
instead of XPath 1.0 as the expression language.
[Body]/wsen:Pull/wsen:EnumerationContext
This OPTIONAL
element contains the XML data that represents the current enumeration context. Note,
a Pull request MUST have either a wsen:EnumerationContext element or a
wsen:NewContext element.
[Body]/wsen:Pull/wsen:MaxTime
This
OPTIONAL element (of type xs:duration) indicates the maximum amount of time the
consumer 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. However, this
fault MUST NOT cause the enumeration context to become invalid and the consumer
can issue additional Pull requests using this enumeration context after
receiving this fault.
This
is useful with data sources that accumulate elements over time and package them
into a single Pull response.
[Body]/wsen:Pull/wsen:MaxElements
This
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.
Note that
a value of zero MAY, along with a wsen:NewContext element, MAY be used to
create a new enumeration without retrieving any of the data items.
[Body]/wsen:Pull/wsen:MaxCharacters
This
OPTIONAL element (of type xs:long) indicates the maximum size of the returned
elements, in Unicode characters, that the consumer 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, and all of its children, 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 successful processing of a Pull request message,
a data source MUST return a Pull response message of the following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/PullResponse
[Body]
<wsen:PullResponse ...>
<wsen:GrantedExpires ...>
(xs:dateTime | xs:duration)
</wsen:GrantedExpires> ?
<wsen:EnumerationContext
...>...</wsen:EnumerationContext> ?
<wsen:Items>
<xs:any>
enumeration-specific element </xs:any> +
</wsen:Items> ?
<wsen:EndOfSequence/> ?
xs:any*
</wsen:PullResponse>
The following describes additional, normative
constraints on the outline listed above:
[Body]/wsen:PullEnumerateResponse/wsen:GrantedExpires
This
element is tThe expiration
time assigned by the data source for the new enumeration. The expiration time MAY be either a specific time or
a duration but MUST be of the same type as the 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 EnumeratePull request, an enumeration is created, the data source
MUST start the expiration interval at or before it transmits the wsen:EnumeratePullResponse message.
If this element does not appear, then the enumeration
will not expire. That is, the enumeration has an indefinite lifetime. Likewise,
a value of PT0S indicates that the enumeration will not expire. 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.
Note
that a wsen:GrantedExpires element MUST only appear in a PullResponse message if
the corresponding Pull request message included a wsen:NewContext element.
[Body]/wsen:PullResponse/wsen:EnumerationContext
The
OPTIONAL EnumerationContext element, if present, contains a new XML
representation of the current enumeration context. The
consumer MUST replace the prior representation, if any, with
the contents of this element.
[Body]/wsen:PullResponse/wsen:Items/xs:any
The
OPTIONAL Items element contains one or more enumeration-specific elements, one
for each element being returned.
[Body]/wsen:PullResponse/wsen:EndOfSequence
This
OPTIONAL element indicates that no more elements are available from this
enumeration and the enumeration context 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 4-1 lists a sample EnumeratePull request.
Example 4-1: EnumeratePull 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/2002/ws/ra/edcopies/ws-enu">
(04) <s:Header>
(05) <wsa:Action>
(06) http://www.w3.org/2002/ws/ra/edcopies/ws-enu/PullEnumerate
(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:EnumeratePull>
(20) <wsen:Expires> PT10M </wsen:Expires>
<wsen:MaxElements> 0 </wsen:MaxElements>
(21) </wsen:EnumeratePull>
(22) </s:Body>
(23) </s:Envelope>
Lines (05-07) in Example 4-1 indicate this message is
an EnumeratePull request and that the data source is expected to
respond with an EnumeratePull response message. The wsen:Expires element on line
(20) indicates that the consumer would like an enumeration context that will be
good for 10 minutes. No wsen:Filter element is present, so the resultant
enumeration context is expected to return all available elements.
Example 4-2 lists a response to the
request in Example 4-1.
Example 4-2: Response to EnumeratePull request
(01) <s:Envelope
xmlns:S='http://www.w3.org/2003/05/soap-envelope'
(02) xmlns:wsen='http://www.w3.org/2002/ws/ra/edcopies/ws-enu'
(03)
xmlns:wsa='http://www.w3.org/2005/08/addressing'>
(04) <s:Header>
(05) <wsa:Action>
(06)
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/PullEnumerateResponse
(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:PullEnumerateResponse>
(17) <wsen:GrantedExpires> PT10M </wsen:GrantedExpires>
(18) <wsen:EnumerationContext>
(19) 123
(20) </wsen:EnumerationContext>
(21) </wsen:PullEnumerateResponse>
(22) </s:Body>
(23) </s:Envelope>
Lines (05-07) in Example 4-2 indicate this message is
an EnumeratePull response message. Line (17) indicates that the data
source has created an enumeration context with a lifetime of 10 minutes. Lines
(18-20) are the XML representation of the enumeration context that supports the
Pull operation defined below.
Example 4-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/2002/ws/ra/edcopies/ws-enu">
(04) <s:Header>
(05) <wsa:Action>
(06)
http://www.w3.org/2002/ws/ra/edcopies/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 4-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 4-4 lists a response to
the request in Example 4-3.
(01) <s:Envelope
xmlns:S="http://www.w3.org/2003/05/soap-envelope"
(02)
xmlns:wsen="http://www.w3.org/2002/ws/ra/edcopies/ws-enu"
(03)
xmlns:wsa="http://www.w3.org/2005/08/addressing">
(04) <s:Header>
(05) <wsa:Action>
(06)
http://www.w3.org/2002/ws/ra/edcopies/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 4-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.
To update, or renew, the expiration for an
enumeration, a Renew request message is sent to the data source. This operation
MUST be supported by compliant data sources. The Renew request message MUST be
of the following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Renew
[Body]
<wsen:Renew ...>
<wsen:EnumerationContext
...>...</wsen:EnumerationContext>
<wsen:Expires
BestEffort="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 4.1 Enumerate4.1 Pull)
with the following addition(s):
[Body]/wsen:Renew/wsen:EnumerationContext
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/2002/ws/ra/edcopies/ws-enu/RenewResponse
[Body]
<wsen:RenewResponse ...>
<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 Pull request
(see 4.1 Enumerate4.1 Pull)
with the following addition:
[Body]/wsen:RenewResponse/wsen:EnumerationContext
This element is OPTIONAL in this response.
If the data source chooses not to renew this enumeration,
the request MUST fail, and the data source MUST generate a 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
consumer sends a GetStatus request message to the data source. This operation
MUST be supported by compliant data sources. The message MUST be of the
following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/GetStatus
[Body]
<wsen:GetStatus ...>
<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 4.3 Renew). Other components of the outline
above are not further constrained by this specification.
If the enumeration is valid the data source MUST reply
with a response of the following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/GetStatusResponse
[Body]
<wsen:GetStatusResponse ...>
<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 4.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 consumer. 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. This operation MUST be supported
by compliant data sources. The Release request message MUST be of the following
form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Release
[Body]
<wsen:Release ...>
<wsen:EnumerationContext
...>...</wsen:EnumerationContext>
xs:any*
</wsen:Release>
The following describes additional, normative
constraints on the outline listed above:
[Body]/wsen:Release/wsen:EnumerationContext
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 MUST return a Release response message of the
following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/ReleaseResponse
[Body]
<wsen:ReleaseResponse ...>
xs:any*
</wsen:ReleaseResponse>
Example 4-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/2002/ws/ra/edcopies/ws-enu">
(04) <s:Header>
(05) <wsa:Action>
(06)
http://www.w3.org/2002/ws/ra/edcopies/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 4-5 indicate this message is a Release request.
Line (20) identifies the enumeration context to be released.
Example 4-6 lists a response to
the request in Example 4-5.
(01) <s:Envelope
xmlns:S="http://www.w3.org/2003/05/soap-envelope"
(02)
xmlns:wsen="http://www.w3.org/2002/ws/ra/edcopies/ws-enu"
(03)
xmlns:wsa="http://www.w3.org/2005/08/addressing">
(04) <s:Header>
(05) <wsa:Action>
(06)
http://www.w3.org/2002/ws/ra/edcopies/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 4-6 indicate this message is a Release response
message.
If the data source
terminates an enumeration unexpectedly, and it supports the use of the EndTo
EPR, and the EndTo EPR was present in the Enumerate Pull message
for that enumeration (see 4.1 Enumerate4.1 Pull), the EnumerationEnd message
MUST be sent to the endpoint reference indicated by that EPR.
Note, a enumeration context expiring as expected is not
considered to be an unexpected termination, therefore a EnumerationEnd message
MUST NOT be sent in this case.
The message MUST be of the following form:
[Action]
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/EnumerationEnd
[Body]
<wsen:EnumerationEnd ...>
<wsen:Code>
(
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/SourceShuttingDown |
http://www.w3.org/2002/ws/ra/edcopies/ws-enu/SourceCancelling
|
xs:anyURI )
</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:
[Body]/wsen:EnumerationEnd/wsen:Code
= "http://www.w3.org/2002/ws/ra/edcopies/ws-enu/SourceShuttingDown"
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.
[Body]/wsen:EnumerationEnd/wsen:Code
= "http://www.w3.org/2002/ws/ra/edcopies/ws-enu/SourceCancelling"
This value MUST be used if the data source
terminated the enumeration for some other reason before it expired.
[Body]/wsen:EnumerationEnd/wsen:Reason
This 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:
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:
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 MUST be generated when a request specified an expiration but the data
source does not support Expires.
[Code] |
s12:Sender |
[Subcode] |
wsen:ExpiresNotSupported |
[Reason] |
The specification of an Expires element is not allowed. |
[Detail] |
This
fault MUST be generated when a request specifies an expiration that is not
within the min/max range.
[Code] |
s12:Sender |
[Subcode] |
wsen:UnsupportedExpirationValue |
[Reason] |
The expiration time requested is not within the min/max range. |
[Detail] |
This
fault MUST be generated when the Enumerate Pull expiration
time that is specified is not a duration.
[Code] |
s12:Sender |
[Subcode] |
wsen:UnsupportedExpirationTime |
[Reason] |
Unsupported expiration time. |
[Detail] |
This
fault MUST generated when the data source does not support filters.
[Code] |
s12:Sender |
[Subcode] |
wsen:FilteringNotSupported |
[Reason] |
Filtering not supported. |
[Detail] |
This
fault MUST be generated when 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 MUST be generated when the data source can not process the filter
content.
[Code] |
s12:Sender |
[Subcode] |
wsen:CannotProcessFilter |
[Reason] |
Cannot filter as requested. |
[Detail] |
This
fault MUST be generated when 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 MUST be generated when the data
source times out during the processing of a Pull operation, if the wsen:MaxTime
is reached.
[Code] |
s12:Receiver |
[Subcode] |
wsen:TimedOut |
[Reason] |
Timeout. |
[Detail] |
This fault MUST be
generated when a 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. |
This fault MUST be
generated by an data source that does not support /wsen:EnumeratePull/wsen:NewContext/wsen:EndTo
semantics, in response to a enumerate Pull request
that contains a wsen:EndTo element.
[Code] |
s12:Sender |
[Subcode] |
wsen:EndToNotSupported |
[Reason] |
wsen:EndTo semantics is not supported. |
[Detail] |
none |
This fault MUST be
generated when a data source detects a wsen:EPullnumerate request containing a filter that,
for whatever reason, will never evaluate to true.
[Code] |
s12:Sender |
[Subcode] |
wsen:EmptyFilter |
[Reason] |
The wsen:Filter would result in zero data items. |
[Detail] |
The wsen:Filter value. |
This specification considers two sets of
security requirements, those of the applications that use the WS-Enumeration
protocol and those of the protocol itself.
This specification makes no assumptions about
the security requirements of the applications that use WS-Enumeration. However,
once those requirements have been satisfied within a given operational context,
the addition of WS-Enumeration to this operational context can not undermine
the fulfillment of those requirements; the use of WS-Enumeration SHOULD NOT
create additional attack vectors within an otherwise secure system.
The material below is not a "check
list". There are many other security concerns that need to be considered
when implementing or using this protocol. Implementers and users of this
protocol are urged to perform a security analysis to determine their particular
threat profile and the appropriate responses to those threats.
An enumeration
represents a logical cursor through a sequence of data items. If the
information in these items is sensitive, it is advisable to for Data Sources to
authenticate and authorize Consumers as part of the processing of the Enumerate Pull request.
Note that a Data Source might authorize retrievals on a per-item basis after
the enumeration has been created. This might be necessary in cases where the
sensitivity of the information requested might not be known at the time the Enumerate Pull request
is processed or varies during the lifetime of the enumeration.
Once created, it is
advisable to treat Enumeration Contexts as protected resources. Renew,
GetStatus, and Release requests ought to be authenticated and authorized (for
example, the identity of the requester ought to be checked against the identity
of the entity that performed the original Enumerate Pull request).
Likewise EnumerationEnd messages ought to be authenticated and authorized (for
example, the identity of the sender ought to be checked against the identity
the entity that sent the original EnumerateResponse PullResponse message).
Note that authentication and authorization policies (i.e. the rules that define
which entities are allowed to perform which requests and the mechanisms by
which the identities of these entities are discovered and verified) are
particular to individual deployments.
Enumeration Contexts are
also sensitive because of the way they are used to maintain or reference the
state of active Enumerations. Attackers able to snoop or guess the value of an
Enumeration Context could use this information to Pull data items in that
Enumeration. To defend against the misuse of snooped/guessed Enumeration
Contexts, Data Sources are advised to authenticate and authorize clients
sending Pull requests.
Data Source
implementations that perform validity checks on the EndTo EPR used in the Enumerate Pull request
are advised that such checks can be misused to obtain information about a
target network. For example, suppose a Data Source implementation verifies the
address of EndTo EPRs by attempting to create a connection to this EPR's
address and faulting the Enumerate Pull request if
a connection cannot be created. When deployed within a DMZ, such a Data Source
could be exploited by a malicious Consumer to probe for other, non-visible
hosts by guessing target addresses and using them in Enumerate Pull requests.
Note that, even if the returned fault does not provide connection information,
the time the Data Source spends processing the Enumerate Pull request
might betray the existence or non-existence of a host at the target address.
Implementations that
perform validity checks on the EndTo EPR are advised to provide a means to
disable such checks in environments where these types of attacks are an issue.
An endpoint MAY indicate its support of
WS-Enumeration, or its features, by including the WS-Enumeration DataSource
Policy 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 are implicit and do not explicitly appear in its WSDL (i.e. the
WS-Enumeration operations do not appear in the WSDL that MAY be retrievable by
using a WS-MetadataExchange GetWSDL to that endpoint).
The WS-Enumeration WSDL containing the
operations indicated by the Enumeration Assertion MAY be exposed by including
the WSDL as a child of the DataSource Policy assertion or by including a
reference to it using the mex:Location or mex:Reference element (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 the
WS-Enumeration operations. 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.
Services indicate
support for the WS-Enumeration's definition of a data source 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
(wsen:DataSource). The normative outline of this assertion is:
<wsen:DataSource ...>
<wsen:FilterDialect URI="xs:anyURI" ...>
xs:any*
</wsen:FilterDialect> *
<wsen:ExpiresSupported .../> ?
<wsen:DateTimeSupported .../> ?
<wsen:MaxExpires ...> xs:duration
</wsen:MaxExpires> ?
<wsen:MaxTime ...> xs:duration </wsen:MaxTime>
?
<wsen:MaxElements ...> xs:long </wsen:MaxElements>
?
<wsen:MaxCharacters ...> xs:long
</wsen:MaxCharacters> ?
<wsen:EndToSupported .../> ?
xs:any*
</wsen:DataSource>
The following describes additional, normative constraints
on the outline listed above:
/wsen:DataSource
This policy assertion has Endpoint Policy
Subject. When present in a policy alternative, it indicates that the subject is
a data source and the WS-Enumeration protocol MUST be used when communicating
with this endpoint.
/wsen:DataSource/wsen:FilterDialect
When present, this OPTIONAL parameter
indicates support for the specified Filter Dialect IRI.
/wsen:DataSource/wsen:FilterDialect/xs:any
This extensibility point allows for
additional FilterDialect specific metadata to be included within the policy
assertion. Any metadata that appears is scoped to the use of the specified
FilterDialect URI.
/wsen:DataSource/wsen:ExpiresSupported
When present, this OPTIONAL parameter
indicates support for Expiration element on the Enumerate Pull and
Renew operations.
/wsen:DataSource/wsen:ExpiresSupported
When present, this OPTIONAL parameter
indicates support for Expires element on the Enumerate Pull and
Renew operations.
/wsen:DataSource/wsen:DateTimeSupported
When present, this OPTIONAL parameter
indicates support for expiration time expressed as specific time (rather than
duration).
/wsen:DataSource/wsen:MaxExpires
When present, this OPTIONAL parameter
indicates the maximum lifetime of enumerations that this endpoint will support.
The implied default is indefinite. Note: a value of "PT0S" indicates
that this endpoint supports enumerations with an infinite lifetime.
/wsen:DataSource/wsen:MaxTime
When present, this OPTIONAL parameter
indicates the maximum MaxTime value supported by this endpoint. The implied
default is indefinite. Note: a value of "PT0S" indicates that this
endpoint supports any duration value.
/wsen:DataSource/wsen:MaxElements
When present, this OPTIONAL parameter
indicates the maximum MaxElements value supported by this endpoint. The value
specified MUST be greater than zero.
/wsen:DataSource/wsen:MaxCharacters
When present, this OPTIONAL parameter
indicates the maximum MaxCharacters value supported by this endpoint. The value
specified MUST be greater than zero.
/wsen:DataSource/wsen:EndToSupported
When present, this OPTIONAL parameter
indicates support for the /wsen:EnumeratePull/wsen:NewContext/wsen:EndTo
semantics. That is, when an enumerate Pull request
contains a wsen:EndTo element, a EnumerationEnd message will be sent to the EPR
contained in the wsen:EndTo element, if the enumeration terminates
unexpectedly.
/wsen:DataSource/xs:any
This extensibility point allows for
additional WS-Enumeration specific metadata to be included within the policy
assertion - e.g. WS-Enumeration WSDL, or nested policy assertions related to the
WS-Enumeration message exchanges. Any metadata that appears is scoped to the
operations and features of the WS-Enumeration specification.
This specification has been developed as a
result of joint work with many individuals and teams, including: Alessio
Soldano (Red Hat), Ashok Malhotra (Oracle Corp.), Asir Vedamuthu (Microsoft
Corp.), Bob Freund (Hitachi, Ltd.), Bob Natale (MITRE Corp.), David Snelling
(Fujitsu, 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), Martin Chapman (Oracle Corp.), Paul Fremantle (WSO2), Paul
Nolan (IBM), Prasad Yendluri (Software AG), Ram Jeyaraman (Microsoft Corp.),
Sreedhara Narayanaswamy (CA), Sumeet Vij (Software AG), Tom Rutt (Fujitsu,
Ltd.), Vikas Varma (Software AG), Wu Chou (Avaya Communications), Yves Lafon
(W3C/ERCIM).
Key words for use in RFCs to Indicate
Requirement Levels , S. Bradner, Author. Internet Engineering
Task Force, March 1997. Available at http://www.ietf.org/rfc/rfc2119.txt.
Uniform Resource Identifier (URI):
Generic Syntax , T. Berners-Lee, R. Fields and L. Masinter,
Authors. Network Working Group, January 2005. Available at http://www.ietf.org/rfc/rfc3986.txt.
Internationalized Resource Identifiers
(IRIs) , M. Duerst and M. Suignard, Authors. Internet
Engineering Task Force, January 2005. Available at http://www.ietf.org/rfc/rfc3987.txt.
W3C Note, "Simple Object Access
Protocol (SOAP) 1.1" , D. Box, et al, Editors. World
Wide Web Consortium (W3C), 8 May 2000. Available at http://www.w3.org/TR/2000/NOTE-SOAP-20000508/.
W3C Recommendation, "SOAP Version
1.2 Part 1: Messaging Framework" , M. Gudgin, M. Hadley,
N. Mendelsohn, J-J. Moreau, H. Frystyk Nielson, Editors. World Wide Web
Consortium (W3C), 27 April 2007. Available at http://www.w3.org/TR/soap12-part1/.
W3C Recommendation, "Web Services
Addressing 1.0 (WS-Addressing)" , M. Gudgin, M. Hadley,
T. Rogers, Editors. World Wide Web Consortium (W3C), 9 May 2006. Available at http://www.w3.org/TR/ws-addr-core.
WS-Addressing 1.0 SOAP Binding
W3C Recommendation, "Web Services
Addressing 1.0 - SOAP Binding" , M. Gudgin, M. Hadley,
T. Rogers, Editors. World Wide Web Consortium (W3C), 9 May 2006. Available at http://www.w3.org/TR/ws-addr-soap.
W3C Recommendation, "Web Services
Policy (WS-Policy) 1.5 - Framework" , A. Vedamuthu, et
al., Editors. World Wide Web Consortium (W3C), 4 September 2007. Available at http://www.w3.org/TR/ws-policy/.
W3C Recommendation, "Web Services
Policy (WS-Policy) 1.5 - Attachment" , A. Vedamuthu, et
al., Editors. World Wide Web Consortium (W3C), 4 September 2007. Available at http://www.w3.org/TR/ws-policy-attach.
W3C Note, "Web Services
Description Language (WSDL) 1.1" , E. Christensen, et
al., Editors. World Wide Web Consortium (W3C), 15 March 2001 Available at http://www.w3.org/TR/2001/NOTE-wsdl-20010315.
W3C Recommendation, "XML
Information Set (Second Edition)" , J. Cowan, R. Tobin,
Editors. World Wide Web Consortium (W3C), 4 February 2004. Available at http://www.w3.org/TR/xml-infoset.
W3C Recommendation, "XML Schema
Part 1: Structures (Second Edition)" , H. Thompson, et
al., Editors. World Wide Web Consortium (W3C), 28 October 2004. Available at http://www.w3.org/TR/xmlschema-1/.
W3C Recommendation, "XML Schema
Part 2: Datatypes (Second Edition)" , P. Biron, A.
Malhotra, Editors. World Wide Web Consortium (W3C), 28 October 2004. Available
at http://www.w3.org/TR/xmlschema-2/.
W3C Recommendation, "XML Path
Language (XPath) Version 1.0" , J. Clark, S. DeRose,
Editors. World Wide Web Consortium (W3C), 16 November 1999. Available at http://www.w3.org/TR/xpath.
W3C Recommendation, "XML Path
Language (XPath) 2.0" , A. Berglund, et al., Editors.
World Wide Web Consortium (W3C), 23 January 2007. Available at http://www.w3.org/TR/xpath20/.
W3C Working Group Draft, "Web
Services Metadata Exchange (WS-MetadataExchange) 1.1" ,
D. Davis, et al., Editors. World Wide Web Consortium (W3C), 15 September 2009.
Available at http://www.w3.org/TR/ws-metadata-exchange.
OASIS Standard, "Web Services
Secure Conversation (WS-SecureConversation) 1.4" , A.
Nadalin, et al., Editors. Organization for the Advancement of Structured
Information Standards (OASIS), 2 February 2009. Available at http://docs.oasis-open.org/ws-sx/ws-secureconversation/v1.4/os/ws-secureconversation-1.4-spec-os.doc.
OASIS Standard, "Web Services
Security: SOAP Message Security 1.1" , K. Lawrence, C.
Kaler, Editors. Organization for the Advancement of Structured Information
Standards (OASIS), 1 February 2006. Available at http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-SOAPMessageSecurity.pdf.
OASIS Standard, "Web Services
Security Policy (WS-SecurityPolicy) 1.3, Version 1.1" ,
K. Lawrence, C. Kaler, Editors. Organization for the Advancement of Structured
Information Standards (OASIS), 2 February 2009. Available at http://docs.oasis-open.org/ws-sx/ws-securitypolicy/v1.3/os/ws-securitypolicy-1.3-spec-os.doc.
A normative copy of the XML Schema [XMLSchema - Part 1], [XMLSchema
- Part 2] description for this specification can be retrieved from the
following address:
A non-normative copy of the XML schema is listed below
for convenience.
<xs:schema
targetNamespace='http://www.w3.org/2002/ws/ra/edcopies/ws-enu'
xmlns:tns='http://www.w3.org/2002/ws/ra/edcopies/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/2002/ws/ra/edcopies/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>
<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='BestEffort' type='xs:boolean' 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='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:choice>
<xs:element name='NewContext'>
<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>
<xs:element name='EnumerationContext'
type='tns:EnumerationContextType'
/>
</xs:choice>
<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:element name='EndToSupported' type='tns:Empty' 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='GrantedExpires' type='tns:MiniExpirationType'
minOccurs='0' />
<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='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='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/2002/ws/ra/edcopies/ws-enu/SourceShuttingDown' />
<xs:enumeration value=
'http://www.w3.org/2002/ws/ra/edcopies/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:complexType name='Empty'>
<xs:sequence/>
<xs:anyAttribute namespace='##other' processContents='lax'/>
</xs:complexType>
<xs:element name='DataSource'>
<xs:complexType>
<xs:sequence>
<xs:element name='FilterDialect' minOccurs='0'
maxOccurs='unbounded'>
<xs:complexType>
<xs:sequence>
<xs:any namespace='##other' processContents='lax' minOccurs='0'
maxOccurs='0'/>
</xs:sequence>
<xs:attribute name='URI' type='xs:anyURI' use='required' />
<xs:anyAttribute namespace="##other"
processContents='lax'/>
</xs:complexType>
</xs:element>
<xs:element name='ExpiresSupported' type='tns:Empty'
minOccurs='0'/>
<xs:element name='DateTimeSupported' type='tns:Empty'
minOccurs='0'/>
<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:
A non-normative copy of the WSDL description is listed
below for convenience.
<wsdl:definitions
targetNamespace='http://www.w3.org/2002/ws/ra/edcopies/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/2002/ws/ra/edcopies/ws-enu'
xmlns:xs='http://www.w3.org/2001/XMLSchema' >
<wsdl:types>
<xs:schema>
<xs:import
namespace='http://www.w3.org/2002/ws/ra/edcopies/ws-enu'
schemaLocation='http://www.w3.org/2002/ws/ra/edcopies/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/2002/ws/ra/edcopies/ws-enu/Enumerate'
/>
<wsdl:output
message='wsen:EnumerateResponseMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/EnumerateResponse'
/>
</wsdl:operation>
<wsdl:operation name='PullOp'>
<wsdl:input
message='wsen:PullMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Pull' />
<wsdl:output
message='wsen:PullResponseMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/PullResponse'
/>
</wsdl:operation>
<wsdl:operation name='RenewOp' >
<wsdl:input
message='wsen:RenewMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Renew' />
<wsdl:output
message='wsen:RenewResponseMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/RenewResponse'
/>
</wsdl:operation>
<wsdl:operation name='GetStatusOp' >
<wsdl:input
message='wsen:GetStatusMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/GetStatus'
/>
<wsdl:output
message='wsen:GetStatusResponseMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/GetStatusResponse'
/>
</wsdl:operation>
<wsdl:operation name='ReleaseOp'>
<wsdl:input
message='wsen:ReleaseMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/ws-enu/Release' />
<wsdl:output
message='wsen:ReleaseResponseMessage'
wsam:Action='http://www.w3.org/2002/ws/ra/edcopies/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/2002/ws/ra/edcopies/ws-enu/EnumerationEnd'
/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
The purpose of the
action tables is to illustrate, via a separate means from the normative text,
the allowable order and interactions of various messages and activities. The
action tables are not intended to constrain implementations beyond those
necessary to insure this ordering.
·
Actions are represented as columns.
·
Triggers (messages, application actions,
timer events) are represented as rows. Triggers are annotated by their type;
"[app]" - represents an application action (e.g. a user selecting a
"EnumeratePull"
menu item); "[msg]" - represents an incoming, WS-Enumeration defined,
message; "[timer]" - represents an internal timer event.
·
Each cell describes the appropriate action
for a given state and trigger. Where the action is dependent upon other factors
than the state and trigger (e.g. the value of a fault message), the activity is
described in pseudo-code. The section of the specification that describes these
activities is displayed in curly brackets (e.g. "{4.2}").
·
Empty box indicates that the spec is silent
for the specified trigger/action pair.
Table C-1: Data Source
Action Table |
||||
Trigger |
Action |
|
||
Trigger has no context |
Trigger has valid context |
Trigger has invalid context |
|
|
|
|
|
||
|
Create new context
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
Table C-2: Consumer Action Table |
|
Trigger |
Action |
|
|
|
|
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 |
|
2009/10/06 |
DD |
Added resolution of issue 7587 |
2009/10/13 |
DD |
Added resolution of issue 7827 |
2009/10/20 |
DD |
Added resolution of issue 7068 |
2009/10/20 |
DD |
Added resolution of issue 7811 |
2009/10/20 |
DD |
Added resolution of issue 7207 |
2009/10/20 |
DD |
|
2009/11/05 |
DD |
Added resolution of issue 8075 |
2009/11/05 |
DD |
Added resolution of issue 8069 |
2009/11/05 |
DD |
Added resolution of issue 8076 |
2009/11/05 |
DD |
Added resolution of issue 7912 |
2009/11/05 |
DD |
|
2009/11/06 |
DD |
Added resolution of issue 8124 |
2009/11/06 |
DD |
Added resolution of issue 8158 |
2009/11/06 |
DD |
Added resolution of issue 8124 |
2009/11/17 |
DD |
Added resolution of issue 8280 |
2009/12/01 |
DD |
Added resolution of issue 8201 |
2009/12/08 |
DD |
Added resolution of issue 8305 |
2009/12/08 |
DD |
Added resolution of issue 8159 |
2009/12/08 |
DD |
Added resolution of issue 8161 |
2010/01/19 |
DD |
Added resolution of issue 8286 |
2010/01/19 |
DD |
Added resolution of issue 8283 |
2010/01/26 |
DD |
Added resolution of issue 8275 |
2010/01/28 |
DD |
Added resolution of issue 8157 |
2010/01/28 |
DD |
Added resolution of issue 8196 |
2010/02/05 |
DD |
Added resolution of issue 6436 |
2010/02/08 |
DD |
Added resolution of issue 8901 |
2010/02/09 |
DD |
Added resolution of issue 8160 |
2010/02/09 |
DD |
Added resolution of issue 8304 |
2010/02/23 |
DD |
Added resolution of issue 8306 |
2010/03/09 |
DD |
|
2010/03/16 |
DD |
Added resolution of issue 8886 |
2010/03/30 |
DD |
Added resolution of issue 9095 |
2010/03/30 |
DD |
Added resolution of issue 9266 |
2010/04/20 |
DD |
Added resolution of issue 9543 |
2010/05/04 |
DD |
Added resolution of issue 9588 |
2010/05/04 |
DD |
Added resolution of issue 9087 |
2010/05/11 |
DD |
Added resolution of issue 9568 |
2010/05/11 |
DD |
Added resolution of issue 9699 |
2010/05/12 |
DD |
Added resolution of issue 9717 |
2010/05/13 |
DD |
Added resolution of issue 9702 |