Web Services Eventing (WS-Eventing)
[pic]
Web Services Eventing (WS-Eventing)
W3C Working Draft 17 DecemberMarch 2009
This version:
Latest version:
Previous version:
Editors:
Doug Davis, IBM
Ashok Malhotra, Oracle
Katy Warr, IBM
Wu Chou, Avaya
Copyright © 2009 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
[pic]
Abstract
This specification describes a protocol that allows Web services to subscribe to or accept subscriptions for event notification messages.
Status of this Document
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at .
This document is a progress snapshot and is likely to be superseded by future revisions. This document has no approval status and is meant only to demonstrate interim progress.
This document is not stable and implementors are warned that final versions of this document are likely to differ in material ways.
Summary of Changes:
This document contains a This is the First Public Working Draft of "Web Services Eventing (WS-Eventing)" and is being published for the purpose of soliciting public comment.
This version is strictly based on the original change logMember Submission. Each issue that has been incorporated is listed. Details of each issue may be viewed in the bugzilla database which is available as well as other informative materials and current editor's drafts and related documents via the Web Service Resource Access Working Group's public web page.
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.. None of the issues raised on the original Member Submission were incorporated in this document in order to permit the pubic the same access for review as enjoyed by the Working Group.
It has been produced by the Web Services Resource Access Working Group (WG), which is part of the W3C Web Services Activity. The working Group home page provides additional information on this and the related specifications produced by this working group.
Please report errors inprovide comments on this document to the public public-ws-resource-access-comments@ mailing list ( public archive).
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
Table of Contents
1 Composable Architecture
2 Introduction
2.1 Requirements
2.2 Delivery Modes
2.3 Notification Formats
2.4 Subscription Managers
2.52.4 Example
3 Notations and Terminology
3.1 Notational Conventions
3.2 Considerations on the Use of Extensibility Points
3.3 XML Namespaces
3.43.3 Terminology
3.53.4 Compliance
4 Subscription Messages
4.1 Subscribe
4.2 Renew
4.3 GetStatus
4.4 Unsubscribe
4.5 Subscription End
5 Notifications
6 Faults
6.1 Fault Detail RetryAfter ElementDeliveryModeRequestedUnavailable
6.2 InvalidExpirationTime
6.3 ExpirationTimeExceeded
6.4 UnsupportedExpirationType
6.56.4 FilteringNotSupported
6.66.5 FilteringRequestedUnavailable
6.7 6.6 DeliveryFormatRequestUnavailableEventSourceUnableToProcess
6.7 UnableToRenew
6.8 EmptyFilterInvalidMessage
6.9 UnusableEPR
6.10 UnknownSubscription
7 Security Considerations
7.1 Message Security
7.2 Access Control
8 Implementation Considerations
9 WS-Eventing MetadataAcknowledgements
9.1 EventSource Assertion
9.2 SubscriptionManager Assertion
10 Acknowledgements
11 References
11.1 Normative References
11.2 Informative References
10 References
Appendices
A Advertising Event InformationService Metadata for Eventing
A.1 B Event Types & Event DescriptionsXML Schema
A.1.1
C Retrieving Event DescriptionsWSDL
A.1.2 Bindings for Event Descriptions
A.1.2.1 Binding for Unwrapped Notifications
A.1.2.2 Binding for Wrapped Notifications
A.2 Notification WSDLs
A.2.1 Retrieving Notification WSDLs
A.3 Multiple Event Information Metadata Sections
B XML Schema
C WSDL
D WSDL for Standard Wrapped Delivery
E XML Schema for EventDescriptions
F Change Log[pic]
1 Composable Architecture
By using the XML, SOAP [SOAP11] 1.1], [SOAP12] 1.2], and WSDL [WSDL11] 1.1] extensibility models, the Web service specifications (WS-*) are designed to be composed with each other to provide a rich set of tools to provide security in 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.
2 Introduction
Web services often want to receive messages when events occur in other services and applications. A mechanism for registering interest is needed because the set of Web services interested in receiving such messages is often unknown in advance or will change over time. This specification defines a protocol for one Web service (called a "subscriber") to register interest (called a "subscription") with another Web service (called an "event source") in receiving messages about events (called "notifications"). or "event messages"). The subscriber canmay manage the subscription by interacting with a Web service (called the "subscription manager") designated by the event source.
To improve robustness, a subscription canmay be leased by an event source to a subscriber, and the subscription expires over time. The subscription manager provides the ability for the subscriber to renew or cancel the subscription before it expires.
There are many mechanisms by which notifications can be deliveredevent sources may deliver events to event sinks. This specification provides an extensible way for subscribers to identify the delivery mechanism they prefer. While asynchronous, pushed delivery is defined here, the intent is that there should be no limitation or restriction on the delivery mechanisms capable of being supported by this specification.
2.1 Requirements
This specification intends to meet the following requirements:
• Define means to create and delete event subscriptions.
• Define expiration for subscriptions and allow them to be renewed.
• Define how one Web service can subscribe on behalf of another.
• Define how an event source delegates subscription management to another Web service.
• Allow subscribers to specify how notifications are toevent messages should be delivered.
• Leverage other Web service specifications for secure, reliable, transacted message delivery.
• Support complex eventing topologies that allow the originating event source and the final event sink to be decoupled.
• Provide extensibility for more sophisticated and/or currently unanticipated subscription scenarios.
• Support a variety of encoding formats, including (but not limited to) both SOAP 1.1 [SOAP11] 1.1] and SOAP 1.2 [SOAP12] 1.2] Envelopes.
2.2 Delivery Modes
While the general pattern of asynchronous, event-based messages is extremely common, different applications often require different event message delivery mechanisms. For instance, in some cases a simple asynchronous message is optimal, while other situations may work better if the event consumer can poll for event messages in order to control the flow and timing of message arrival. Some consumers will require event messages to be wrapped in a standard "event" SOAP envelope, while others will prefer messages to be delivered unwrapped. Some consumers may require event messages to be delivered reliably, while others may be willing to accept best-effort event delivery.
In order to support this broad variety of event delivery requirements, this specification introduces an abstraction called a Delivery Mode. This concept is used as an extension point, so that event sources and event consumers may freely create new delivery mechanisms that are tailored to their specific requirements. This specification provides a minimal amount of support for delivery mode negotiation by allowing an event source to provide a list of supported delivery modes in response to a subscription request specifying a delivery mode it does not support.
This specification defines a method for transmitting notifications to the event sink through the use of the wse:NotifyTo element. Other methods or combination of methods MAY be defined through the use of delivery extensions.
When the wse:NotifyTo element is used within the Delivery element it specifies the endpoint to single delivery mode, Push Mode, which notifications are sent. For delivery to addressable endpoints this is sufficient. However, for non-addressable endpoints some additional mechanisms are needed. A subscription manager MAY choose to support mechanisms, such as the [WS-MakeConnection] specification, to enable delivery of notifications to non-addressable endpoints. See the [WS-MakeConnection] specification for more information, and an example, of how this would work.is simple asynchronous messaging.
2.3 Notification Formats
This specification specifies two delivery formats: wrapped and unwrapped. Use of wrapped format indicates that notification messages MUST be contained in a wrapper element defined by this specification. Use of unwrapped format indicates that notification messages are not contained in a wrapper element.
Filtering occurs prior to any formatting of notification messages. This ensures that regardless of what type of formatting might occur, the same Filter dialect/expression can be used to subset the event stream.
2.4As an example of a possible extension, a feature may allow a subscriber to request that event messages be "wrapped" in a standard message. This feature is requested by specifying a new delivery mode, e.g. , in the Subscribe request. Use of this delivery mode would indicate that notification messages should be "wrapped". Similarly, this approach could be generalized to allow the subscriber to provide other information regarding their preferences for notification message delivery.
2.3 Subscription Managers
In some scenarios the event source itself manages the subscriptions it has created. In other scenarios, for example a geographically distributed publish-and-subscribe system, it mightmay be useful to delegate the management of a subscription to another Web service. To support this flexibility, the response to a subscription request to an event source will include the EPR of a service that the subscriber MAYmay interact with to manage this subscription. This EPR MUSTshould be the target for future requests to renew or cancel the subscription. It canmay address the same Web service (Address and ReferenceParamopertiers) as the event source itself, or it canmay address some other Web service to which the event source has delegated management of this subscription; however, the full subscription manager EPR (Address and Reference Parameters) MUSTProperties and ReferenceParameters) must be unique for each subscription.
TheWe use the term "subscription manager" is used in this specification to refer to the Web service that manages the subscription, whether it is the event source itself or some separate Web service.
2.52.4 Example
Example 2-1 lists a hypothetical request to create a subscription for storm warnings.
Example 2-1: Hypothetical request to create a subscription
(01)
(06)
(07)
(08)
(09)
(10)
(11) uuid:d7c5726b-de29-4313-b4d4-b3425b200839
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26) 2597
(27)
(28)
(29)
(30)
(31)
(32)
Lines (07-09) in Example 2-1 indicate the message is a request to create a subscription, and lLine (16) indicates that it is sent to a hypothetical event source of ocean events.
While lLines (13-15) indicate where a reply is should be sent, lLines (20-29) indicate where and how notifications are toshould be delivered; there is no requirement that these match. The absence of any extensions to the wse:Delivery or wse:NotifyTo elements Mode attribute on Line (20) indicates that notifications areshould be delivered using Push mode; that is, they should be asynchronously sent as SOAP messages to the endpoint described in lines (21-28). Note that lLines (25-27) illustrate a typical pattern where the event sink lists a reference parameter (lineproperty (Line 26) that identifies the subscription and will be included in each notification.
Example 2-2 lists a hypothetical response to the request in Example 2-1.
Example 2-2: Hypothetical response to a subscribe request
(01)
(06)
(07)
(08) (08)
(09)
(10)
(11) uuid:d7c5726b-de29-4313-b4d4-b3425b200839
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23) 28
(24)
(25)
(26)
(27) P0Y0M0DT30H0M0SP0Y0M0DT30H0M0S
(28)
(29)
(30)
Lines (07-09) in Example 2-2 indicate this message is a response to a request to create a subscription, and lLines (10-12) indicate that it is a response to the request in Example 2-1. Lines (17-26) provide the subscription manager EPR for this subscription, and lLine (27) indicates the subscription will expire in 30 hours unless renewed.
3 Notations and Terminology
This section specifies the notations, namespaces, and terminology used in this specification.
3.1 Notational Conventions
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].
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:
o "?" (0 or 1)
o "*" (0 or more)
o "+" (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.
• EllipsisAn ellipsis (i.e. "...") indicates a point of extensibility. that allows otherXML 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:
[Headers]
[Action]
...
[Body]
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.
3.2 Considerations on the Use of Extensibility Points
• The elements defined in this specification MAY be extended at the points indicated by their outlines and schema. Implementations MAY add child elementsor attribute content. Additional children and/or attributes MAY be added 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".NOT process the message and MAY fault.
• XML namespace prefixes (see Table 3-1) are used to indicate the namespace of the element being defined.
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 Eventing namespace URI.
3.3.2 XML Namespaces
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) |
|s |(Either SOAP 1.1 or 1.2) |(Either SOAP 1.1 or 1.2) |
|s11 | |SOAP 1.1 [SOAP11] 1.1] |
|s12 | |SOAP 1.2 [SOAP12] 1.2] |
|wsdl | |WSDL [WSDL11] 1.1] |
|wsa | |WS-Addressing [WS-Addressing] |
|wse | |This specification |
|xs | |XML Schema [XML Schema -, Part 1], |
| | |[XML Schema -, Part 2] |
The working group intends to update the value of the Web Services Eventing 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 Eventing 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 and . .
3.43.3 Terminology
Delivery Mode
The mechanism by which event messages are delivered from the source to the sink.
Event Source
A Web service that sends notifications and accepts requests to create subscriptions. Notifications MAY be sent by any endpoint including the event source.
Event Sink
A Web service that receives notifications.
Notification
A one-way message sent to indicate that an event, or events, have has occurred.
Subscription
A registration of interest in receiving notification messages from an event source. Subscriptions MAY be created, renewed, expired or cancelled. A subscription is "active" when it has been created but has not been expired or cancelled.Push Mode
A delivery mechanism where the source sends event messages to the sink as individual, unsolicited, asynchronous SOAP messages.
Subscriber
A Web service that sends requests to create, renew, and/or delete subscriptions.
Subscription Manager
A Web service that accepts requests to manage, get the status of, renew, and/or delete subscriptions on behalf of an event source.
3.53.4 Compliance
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.33.2 XML Namespaces) within SOAP Envelopes unless it is compliant with this specification.
SOAP is not a requirement for using the constructs defined in this specification.
Normative text within this specification takes precedence over the XML Schema and WSDL descriptions, which in turn take precedence overnormative outlines, which in turn takes 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 IRIs are absolute IRIsthe XML Schema 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 understand those OPTIONAL elements and attributes, unless other behavior is explicitly defined by this specification.WSDL descriptions.
4 Subscription Messages
To create, renew, and delete subscriptions, subscribers send request messages to event sources and subscription managers.
When an event source accepts a request to create a subscription, it typically does so for a given amount of time, although an event source MAYmay accept an indefinite subscription with no time-based expiration. If the subscription manager accepts a renewal request, it updates that amount of time. During that time, notifications are delivered by the event source to the requested event sink. An event source MAYmay support filtering to limit notifications that are delivered to the event sink; if it does, and a subscribe request contains a filter, the event source sends only eventsnotifications that match the requested filter are sent. Notifications are sent. The event source sends notifications until one of the following happens: the subscription manager accepts an unsubscribe request for the subscription; the subscription expires without being renewed; or the event source cancels the subscription prematurely. In this last case, the event source makes a best effort to indicate why the subscription ended.
In the absence of reliable messaging at the application layer (e.g. [WS-ReliableMessaging]), messages defined herein are delivered using the quality of service of the underlying transport(s) and on a best-effort basis at the application layer.
4.1 Subscribe
To create a subscription, a subscriber sends a request message of the following form to an event source:
[Action]
[Body]
...
endpoint-reference ?
Mode="xs:anyURI"? >xs:any*
xs:any* ?
(xs:dateTime | xs:duration)xs:duration] ?
xs:any* ?
xs:any* ...
The following describes additional, normative constraints on the outline listed above:
[Body]/wse:Subscribe/wse:EndTo/s:Envelope/s:Header/wsa:Action
If a SOAP Action URI is used in the binding for SOAP, the value indicated herein MUST be used for that URI.
/s:Envelope/s:Body/*/wse:EndTo
Where to send a SubscriptionEnd message if the subscription is terminated unexpectedly. (See 4.5 Subscription End.) If present, this element MUST be of type wsa:EndpointReferenceType. Default is not to send this message. The endpoint to which the EndTo EPR refers MUST support the SubcriptionEndPortType portType.
Note, subscribers wishing to correlate SubscriptionEnd messages with the subscription to which they apply MAY wish to add a distinguishing reference parameter to the EndTo EPR.
[Body]/wse:Subscribe/wse:Delivery
This element contains the information necessary to convey notification messages to the event sink in a manner required by the subscriber. This element MUST contain at least one child element.
[Body]/wse:Subscribe/wse:Delivery/wse:NotifyTo
This is an OPTIONAL element. When present, this element indicates that notifications MUST be sent to the EndpointReference identified by this element.
[Body]/wse:Subscribe/wse:Format
This OPTIONAL element contains the delivery format/s:Envelope/s:Body/*/wse:Delivery
A delivery destination for notification messages, using some delivery mode. See 2.2 Delivery Modes for details.
/s:Envelope/s:Body/*/wse:Delivery/@Mode
The delivery mode to be used for notification messages sent in relation to this subscription. Implied value is "","", which indicates that unwrappedPush Mode delivery MUSTshould be used. See Section 2.3 Notification Formats2.2 Delivery Modes for details.
If the event source does not support the requested delivery format,mode, the request MUST fail, and the event source MAY generate a wse:DeliveryFormatRequestedUnavailablewse:DeliveryModeRequestedUnavailable fault indicating that the requested delivery formatmode is not supported.
[Body]/wse:Subscribe/wse:Format@Name=""
Indicate the unwrapped event delivery format.
[Body]/wse:Subscribe/wse:Format@Name=""
Indicate the wrapped event delivery format.
[Body]/wse:Subscribe/wse:Expires
This OPTIONAL/s:Envelope/s:Body/*/wse:Delivery/@Mode=""
Value of /s:Envelope/s:Body/*/wse:Delivery is a single element can, wse:NotifyTo, that contains the endpoint reference to which notification messages should be used by the subscriber to indicate the expiration time of the requested subscription. The value of this element indicates the desiredsent.
/s:Envelope/s:Body/*/wse:Expires
Requested expiration time for the subscription. The implied default is indefinite (no expiry). The value of this element MUST be between the values of the @min and @max attributes inclusive. If the request is malformed, the event source MUST (No implied value.) The event source defines the actual expiration and is not constrained to use a time less or greater than the requested expiration. The expiration time may be a specific time or a duration from the subscription's creation time. Both specific times and durations are interpreted based on the event source's clock.
If this element does not appear, then the request is for a subscription that will not expire. That is, the subscriber is requesting the event source to create a subscription with an indefinite lifetime. If the event source grants such a subscription, it may be terminated by the subscriber using an Unsubscribe request, or it may be terminated by the event source at any time for reasons such as connection termination, resource constraints, or system shut-down.
If the expiration time is either a zero duration or a specific time that occurs in the past according to the event source, then the request MUST fail, and the event source MAY generate a wse:InvalidExpirationTime fault. indicating that an invalid expiration time was requested.
If the wse:Expires element is present and the event source is not able to grant an expiry time within range indicated by the @min and @max attribute values, it MUST generate a wse:ExpirationTimeExceeded fault.
The value of the wse:Expires element as well as those of its @min and @max attributes MAY be either a duration (xs:duration) or a specific time (xs:dateTime). EventSome event sources and subscription managers MUST may not have a "wall time" clock available, and so are only able to accept duration values and MAY accept specific time values. Upon receiving a request that contains specific time values, an event source or subscription manager that does not support such value types MUST fail the request ands as expirations. If such a source receives a Subscribe request containing a specific time expiration, then the request MAY fail; if so, the event source MAY generate a wse:UnsupportedExpirationType fault.
The value types in a wse:Expires element MAY differ among the element and its attributes. For example, the element value can be a duration while the @max attribute can be a specific time. Regardless of the value types, it MUST be true that wse:Expires/@min [xs:dateTime | xs:duration)"?
max="(xs:dateTime | xs:duration)"?
exact="xs:boolean"? ...>
(xs:dateTime | xs:duration)xs:duration] ?
xs:any* ...
Components of the outline listed above are additionally constrained as for a request to create a subscription (see 4.1 Subscribe). Other components of the outline above are not further constrained by this specification.
If the subscription is not active, the request MUST fail and the subscription manager MAY generate a wse:UnknownSubscription fault.
If the subscription manager chooses not to renew this subscription, the request MUST fail, and the subscription manager MUST generate a SOAP 1.1 Server fault or a SOAP 1.2 Receiver fault indicating that the renewal was not accepted. This fault MAY contain the RetryAfter fault detail element. If the subscription manager accepts a request to renew a subscription, it MUST reply with a response of the following form:
[Action]
[Body]
...
[xs:dateTime | xs:duration] ?
(xs:dateTime | xs:duration)...
?
xs:any*
Components of the outline listed above are constrained as for a response to a subscribe request (see 4.1 Subscribe). with the following addition(s):
/s:Envelope/s:Body/*/wse:Expires
If the requested expiration is a duration, then the implied start of that duration is the time when the subscription manager starts processing the Renew request.
If the subscription manager chooses not to renew this subscription, the request MUST fail, and the subscription manager MAY generate a wse:UnableToRenew fault indicating that the renewal was not accepted.
Other components of the outline above are not further constrained by this specification.
Example 4-3 lists a hypothetical request to renew the subscription created in Example 4-2.
Example 4-3: Hypothetical request to renew second subscription
(01)
(06)
(07)
(08)
(09)
(10)
(11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19) (19)
(20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(21)
(22)
(23)
(24)
(25) 2004-06-26T21:07:00.000-08:00
(26)
(27)
(28)
Lines (07-09) indicate this is a request to renew a subscription. Lines (19-21) contain the reference parameter that indicates the subscription to be renewed is the one created in Example 4-2. Line (25) in Example 4-3 indicates the request is to extend the subscription until 26 June 2004 at 9:07 PM Pacific.
Example 4-4 lists a hypothetical response to the request in Example 4-3.
Example 4-4: Hypothetical response to renew request
(01)
(06)
(07)
(05) xmlns:ow="" >
(06)
(07)
(08)
(09)
(10)
(11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)
(13)
(14)
(15)
(16)
(17) 2004-06-26T12:00:00.000-00:00
(18)
(19)
(20)
Line (17) in Example 4-4 indicates the subscription has been extended only until 26 June 2004 at noon.
4.3 GetStatus
To get the status of a subscription, the subscriber sends a request of the following form to the subscription manager:
[Action]
[Body]
...
xs:any* ...
Components of the outline listed above are additionally constrained as for a request to renew a subscription (see 4.2 Renew). Other components of the outline above are not further constrained by this specification.
If the subscription is active,valid and has not expired, the subscription manager MUST reply with a response of the following form:
[Action]
[Body]
...
[xs:dateTime | xs:duration] ?
(xs:dateTime | xs:duration)...
?
xs:any*
If the subscription is not active, the request MUST fail and the subscription manager MAY generate a wse:UnknownSubscription fault.
Components of the outline listed above are constrained as for a response to a renew request (see 4.2 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.
Example 4-5 lists a hypothetical request to get the status of the subscription created in Example 4-2.
Example 4-5: Hypothetical request to get the status of the second subscription
(01)
(06)
(07)
(05) xmlns:ow="" >
(06)
(07)
(08)
(09)
(10)
(11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19) (19)
(20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(21)
(22)
(23)
(24)
(25)
(26)
Lines (07-09) indicate this is a request to get the status of a subscription. Lines (16-21) indicate that the request is sent to the subscription manager for the subscription created in Example 4-2.
Example 4-6 lists a hypothetical response to the request in Example 4-5.
Example 4-6: Hypothetical response to get status request
(01)
(06)
(07)
(05) xmlns:ow="" >
(06)
(07)
(08) (08)
(09)
(10)
(11) uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)
(13)
(14)
(15)
(16)
(17) 2004-06-26T12:00:00.000-00:00
(18)
(19)
(20)
Line (17) in Example 4-6 indicates the subscription will expire on 26 June 2004 at noon.
4.4 Unsubscribe
Though subscriptions expire eventually, to minimize resources, the subscribersubscribing event sink SHOULD explicitly delete a subscription when it no longer wants notifications associated with the subscription.
To explicitly delete a subscription, a subscribersubscribing event sink sends a request of the following form to the subscription manager:
[Action]
[Body]
...
xs:any* ...
Components of the outline above are additionally constrained only as for a request to renew a subscription (see 4.2 Renew). For example, the faults listed there are also defined for a request to delete a subscription.
If the subscription manager accepts a request to delete a subscription, it MUST reply with a response of the following form:
[Action]
[Body]
xs:any*
If the subscription is not active, the request MUST fail and the subscription manager MAY generate a wse:UnknownSubscription fault.
xs:anyURI
...
Components of the outline listed above are not further constrained by this specification.
Example 4-7 lists a hypothetical request to delete the subscription created in Example 4-2.
Example 4-7: Hypothetical unsubscribe request to delete second subscription
(01)
(06)
(07)
(08) (05) xmlns:ow="" >
(06)
(07)
(08)
(09)
(10)
(11) uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19) (19)
(20) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(21)
(22)
(23)
(24)
(25)
(26)
Lines (07-09) in Example 4-7 indicate the message is a request to delete a subscription. Lines (16-21) indicate that the request is addressed to the manager for the subscription created in Example 4-2.
Example 4-8 lists a hypothetical response to the request in Example 4-7.
Example 4-8: Hypothetical response to unsubscribe request
(01)
(04)
(05)
(06) (06)
(07)
(08)
(09) uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216
(10)
(11)
(12)
(13) />
(14)
(15)
(16)
4.5 Subscription End
If the event source terminates a subscription unexpectedly, the event source SHOULD send a Subscription End SOAP message SHOULD be sent to the endpoint reference indicated when the subscription was created (see 4.1 Subscribe). This endpoint reference MUST refer to an endpoint that supports the SubscriptionEndPortType portType. The message MUST be of the following form:
[Action]
[Body]
?
...
endpoint-reference
( [
|
|
|
xs:anyURI )
]
xs:string ?
xs:any* ...
...
The following describes additional, normative constraints on the outline listed above:
[Body]/wse:SubscriptionEnd/wse:Status = ""/s:Envelope/s:Body/*/wse:SubscriptionManager
Endpoint reference of the subscription manager. This element may be used to identify the subscription that has been terminated.
/s:Envelope/s:Body/wse:SubscriptionEnd/wse:Status = ""
This value MUST be used if the event source terminated the subscription because of problems delivering notifications.
[Body]/wse:SubscriptionEnd/wse:Status = ""/s:Envelope/s:Body/wse:SubscriptionEnd/wse:Status = ""
This value MUST be used if the event source terminated the subscription because the source is being shut down in a controlled manner; that is, if the event source is being shut down but has the opportunity to send a SubscriptionEnd message before it exits.
[Body]/wse:SubscriptionEnd/wse:Status/s:Envelope/s:Body/wse:SubscriptionEnd/wse:Status = """"
This value MUST be used if the event source terminated the subscription for some other reason before it expired.
[Body]/wse:SubscriptionEnd/wse:Reason/s:Envelope/s:Body/wse:SubscriptionEnd/wse:Reason
This OPTIONALoptional element contains text, in the language specified by the @xml:lang attribute, describing the reason for the unexpected subscription termination.
Other message information headers defined by WS-Addressing [WS-Addressing] MAY be included in the message, according to the usage and semantics defined in WS-Addressing.
Other components of the outline above are not further constrained by this specification.
Example 4-9 lists a hypothetical SubscriptionEnd message corresponding to an early termination of the subscription created in Example 4-1.
Example 4-9: Hypothetical subscription end message
(01)
(06)
(07)
(08) (08)
(09)
(10)
(11) >2597
(12) 2597
(13)
(14)
(153)
(164)
(15)
(16)
(17) wse:SourceShuttingDown
(18)
(19)
(20)
(21) uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(22)
(23)
(24)
(25) wse:SourceShuttingDown
(26)
(19)(27) Event source going off line.
(208)
(219)
(22)(30)
(231)
Line (08) is the action IRIURI for Subscription End. Lines (10-13)(10-11) indicate the message is sent to the EndTo of the subscribe request (lLines (23-30) in Example 4-1 .). Line (17)(25) indicates the event source is shutting down, and lines (18-20)Lines (26-28) indicate that the event source was going off line.
5 Notifications
This specification does not constrain notifications because any message MAY be a notification.
However, if a subscribersubscribing event sink wishes to have notifications annotated with uniquespecifically marked, it MAY specify literal SOAP header blocks then it MAY include reference parameters within the Subscribe request, in the /s:Envelope/s:Body/wse:Subscribe/wse:NotifyTo element. These reference parameters will be processed as specified/wsa:ReferenceProperties or /s:Envelope/s:Body/wse:Subscribe/wse:NotifyTo/wsa:ReferenceProperties elements; per WS-Addressing [WS-Addressing], the event source MUST include each such literal SOAP header block in every notification sent to the endpoint addressed by [WS-Addressing 1.0 SOAP Binding]./s:Envelope/s:Body/wse:Subscribe/wse:NotifyTo.
Example 5-1 lists a hypothetical notification message sent as part of the subscription created by the subscribe request in Example 4-1.
Example 5-1: Hypothetical notification message
(01)
(06)
(07)
(08)
(09)
(10)
(11) uuid:568b4ff2-5bc1-4512-957c-0fa545fd8d7f
(12)
(13)
(14) >2597
(15) 2597(15) weather.report weather.storms
(16)
(17)
(187)
(198)
(20)(19) 030701
(210) 0041
(221) 65
(232) BRADENTON BEACH
(243) MANATEE
(254) FL
(25) 2746
(26) 27.46
(27) 82.708270
(287)
(298) WINDS 55 WITH GUSTS TO 65. ROOF TORN OFF BOAT HOUSE. REPORTED
(30)(29) BY STORM SPOTTER. (TBW)
(310)
(321)
(332)
(343)
Lines (13-16)(13-14) indicate the message is sent to the endpoint indicated by the subscribe request (lLines (32-39) in Example 4-1). Line (22)(15) matches the filter in the subscribe request (lLines (42-44)(42-45) in Example 4-1).
6 Faults
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:described in WS-Addressing section 4. They are sent to the [fault endpoint], if present and valid. Otherwise they are sent to the [reply endpoint] if present. If neither is present faults may be sent to the [source endpoint].
compliant with this specification MUST include required message information headers on all fault messages. Fault messages are correlated as replies using the [relationship] property as defined in WS-Addressing. The [action] property below designates fault messages:
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 |Sender The fault code. |Receiver |
|properties are serialized into text XML as follows: SOAP Version [Code] | | |
|SOAP 1.2 [Subcode] |s12:Sender The fault subcode. |s12:Receiver |
|[Reason] |The English language reason element. |
|[Detail] |The detail element. If absent, no detail element is defined |
| |for the fault. |
The properties above bind to a SOAP 1.2 fault as follows:
[Action]
[Code]
[Subcode]
default="" />
"" />
"" />
type="xs:boolean" />
C WSDL
A normative copy of the WSDL [WSDL11] 1.1] description can be retrieved from the following address:
A non-normative copy of the WSDL description is listed below for convenience.
wsa:Action=
""/>
wsa:Action=
""/>
wsa:Action=
""/>
wsa:Action=
""/>
wsa:Action=
""/>
wsa:Action=
""/>
wsa:Action=
""/>
wsa:Action=
""/>
D WSDL for Standard Wrapped Delivery
If an event subscriber specifies the wrapped event delivery format in the Subscribe request message, then the event sink MUST implement the following abstract WSDL and notification messages MUST be wrapped in the element defined in the WSDL.
E XML Schema for EventDescriptions
A normative copy of the XML Schema [XMLSchema - Part 1], [XMLSchema - Part 2] description for the EventDescriptions element can be retrieved from the following address:
A non-normative copy of the XML schema is listed below for convenience.
Data type definitions that are relevant to described notifications.
F Change Log
|Data |Author |Description |
|2009/03/04 |DD |Added resolution of issue 6391 |
|2009/03/04 |DD |Added resolution of issue 6519 |
|2009/03/04 |DD |Added resolution of issue 6427 |
|2009/03/04 |DD |Added resolution of issue 6459 |
|2009/03/09 |DD |Added resolution of issue 6397 |
|2009/03/09 |DD |Added resolution of issue 6426 |
|2009/03/11 |DD |Added change log |
|2009/03/11 |DD |Added resolution of issue 6641 |
|2009/03/11 |DD |Added resolution of issue 6498 |
|2009/03/11 |DD |Added resolution of issue 6425 |
|2009/03/16 |KW |Added resolution of issue 6587 |
|2009/03/17 |KW |Added resolution of issue 6400 |
|2009/03/17 |DD |Added resolution of issue 6428 |
|2009/03/17 |DD |Added resolution of issue 6687 |
|2009/03/23 |DD |Added resolution of issue 6666 |
|2009/03/23 |DD |Added resolution of issue 6681 |
|2009/03/24 |DD |Added resolution of issue 6595 |
|2009/03/24 |DD |Added resolution of issue 6648 |
|2009/04/07 |DD |Added resolution of issue 6727 |
|2009/04/07 |DD |Added resolution of issue 6725 |
|2009/04/07 |DD |Added resolution of issue 6715 |
|2009/04/22 |KW |Added resolution of issue 6739 |
|2009/04/28 |DD |Added resolution of issue 6787 |
|2009/04/28 |DD |Added resolution of issue 6788 |
|2009/05/13 |KW |Added resolution of issue 6472 |
|2009/05/13 |DD |Added resolution of issue 6850 |
|2009/05/13 |DD |Added resolution of issue 6696 |
|2009/05/19 |DD |Added resolution of issue 6907 |
|2009/05/19 |DD |Added resolution of issue 6429 |
|2009/05/21 |DD |Added resolution of issue 6674 |
|2009/05/27 |DD |Added resolution of issue 6906 |
|2009/06/04 |DD |Added resolution of issue 6955 |
|2009/06/04 |DD |Added resolution of issue 6916 |
|2009/06/04 |DD |Added resolution of issue 6986 |
|2009/07/07 |DD |Added resolution of issue 7039 |
|2009/07/21 |DD |Added resolution of issue 6980 |
|2009/07/28 |DD |Added resolution of issue 6692 |
|2009/08/04 |DD |Added resolution of issue 7136 |
|2009/08/05 |DD |Added resolution of issue 6432 |
|2009/08/05 |DD |Added resolution of issue 7159 |
|2009/08/05 |DD |Added resolution of issue 7205 |
|2009/08/18 |DD |Added resolution of issue 7206 |
|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/08/26 |DD |Added resolution of issue 7160 |
|2009/09/01 |DD |Added resolution of issue 6700 |
|2009/09/02 |DD |Added resolution of issue 6694 |
|2009/09/02 |DD |Added resolution of issue 6401 |
|2009/09/02 |DD |Added resolution of issue 6533 |
|2009/09/22 |DD |Added resolution of issue 7698 |
|2009/09/23 |DD |Added resolution of issue 6569 |
|2009/10/01 |DD |Added resolution of issue 7589 |
|2009/10/02 |DD |Added resolution of issue 7426 |
|2009/10/02 |DD |Added resolution of issue 7554 |
|2009/10/05 |DD |Added resolution of issues 6402, 6721 |
|2009/10/06 |DD |Added resolution of issue 7478 |
|2009/10/13 |DD |Added resolution of issue 7827 |
|2009/10/20 |DD |Added resolution of issue 7982 |
|2009/10/20 |DD |Added resolution of issue 7068 |
|2009/10/20 |DD |Added resolution of issue 7553 |
|2009/10/20 |DD |Added resolution of issue 7207 |
|2009/10/27 |DD |Added resolution of issues 7586, 7588, 7828 |
|2009/11/05 |DD |Added resolution of issue 8076 |
|2009/11/05 |DD |Added resolution of issue 7912 |
|2009/11/06 |DD |Added resolution of issue 8172 |
|2009/11/06 |DD |Added resolution of issue 8168 |
|2009/11/06 |DD |Added resolution of issue 7970 |
|2009/11/06 |DD |Added resolution of issue 8213 |
|2009/11/06 |DD |Added resolution of issue 8170 |
|2009/11/06 |DD |Added resolution of issue 8162 |
|2009/11/06 |DD |Added resolution of issue 8163 |
|2009/11/06 |DD |Added resolution of issue 8166 |
|2009/11/06 |DD |Added resolution of issue 8167 |
|2009/11/06 |DD |Added resolution of issue 8169 |
|2009/11/06 |DD |Added resolution of issue 8124 |
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- amazon web services revenue
- amazon web services revenue 2018
- amazon web services profitability 2018
- amazon web services revenue history
- amazon web services financials
- amazon web services annual report
- amazon web services revenue 2019
- amazon web services strategic plan
- amazon web services cloud
- amazon web services growth
- amazon web services history
- amazon web services cloud platform