<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='xmlspec.xsl'?>
<!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.1//EN" "xmlspec.dtd" [
<!ENTITY % entities SYSTEM "entitieswd.dtd" >
%entities;
<!ENTITY status "&wsevt.status;" >
<!ENTITY short-status "&wsevt.short-status;" >
 ]>

<spec w3c-doctype="&wsevt.w3c-doctype;" role="&wsevt.role;">
 <header>
  <title>&wsevt.name;</title>
  <w3c-designation>&wsevt.w3c-designation;</w3c-designation>
  <w3c-doctype>"&wsevt.w3c-doctype;</w3c-doctype>
  <pubdate>
   <day>&wsevt.day;</day>
   <month>&wsevt.month;</month>
   <year>&wsevt.year;</year>
  </pubdate>

  <publoc>
   <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
         xlink:show="replace" xlink:actuate="onRequest"
         href="&wsevt.dated;">&wsevt.dated;
   </loc>
  </publoc>

  <latestloc>
    <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
        xlink:show="replace" xlink:actuate="onRequest"
        href="http://www.w3.org/TR/&wsevt.shortname;">http://www.w3.org/TR/&wsevt.shortname;
   </loc>
  </latestloc>

  <prevlocs>
   <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
         xlink:show="replace" xlink:actuate="onRequest"
         href="&prev.wsevt.dated;">&prev.wsevt.dated;
   </loc>
  </prevlocs>

  <authlist>
   <author>
    <name>Doug Davis</name>
    <affiliation>IBM</affiliation>
   </author>
   <author>
    <name>Ashok Malhotra</name>
    <affiliation>Oracle</affiliation>
   </author>
   <author>
    <name>Katy Warr</name>
    <affiliation>IBM</affiliation>
   </author>
   <author>
    <name>Wu Chou</name>
    <affiliation>Avaya</affiliation>
   </author>
  </authlist>

  <status id='Status'>
   <p>This is the First Public Working Draft.</p>
   <p>
    Publication as a Working Draft does not imply endorsement by the
    W3C Membership. This is a draft document and can be updated, replaced
    or obsoleted by other documents at any time. It is inappropriate to
    cite this document as other than work in progress.
   </p>
  </status>

  <abstract>
   <p>
    This specification describes a protocol that allows Web
    services to subscribe to or accept subscriptions for event
    notification messages.
   </p>
  </abstract>

  <langusage>
    <language id="en">English</language>
  </langusage>

  <revisiondesc>
    <p>Last Modified: $Date: 2009/09/02 16:52:37 $</p>
  </revisiondesc>

 </header>

 <body>

  <div1 id="composable">
   <head>Composable Architecture</head>

   <p>
    By using the XML, SOAP <bibref ref="SOAP11"/>,
    <bibref ref="SOAP121"/>, and WSDL <bibref ref="WSDL11"/>
    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.
   </p>
  </div1>

  <div1 id="intro">
   <head>Introduction</head>

   <p>
    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"). The subscriber can manage
    the subscription by interacting with a Web service (called the
    "subscription manager") designated by the event source.
   </p>

   <p>
    To improve robustness, a subscription can 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.
   </p>

   <p>
    There are many mechanisms by which event sources can deliver
    events to event sinks. This specification provides an extensible
    way for subscribers to identify the delivery mechanism they
    prefer.
   </p>

   <div2 id="reqs">
    <head>Requirements</head>
 
    <p>
     This specification intends to meet the following requirements:
    </p>
 
    <ulist>
     <item>
      <p>
       Define means to create and delete event subscriptions.
      </p>
     </item>
 
     <item>
      <p>
       Define expiration for subscriptions and allow them to be renewed.
      </p>
     </item>
 
     <item> 
      <p>
       Define how one Web service can subscribe on behalf of another.
      </p>
     </item>
 
     <item>
      <p>
       Define how an event source delegates subscription
       management to another Web service.
      </p>
     </item>
 
     <item>
      <p>
       Allow subscribers to specify how notifications are to be delivered.
      </p>
     </item>
 
     <item>
      <p>
       Leverage other Web service specifications for secure,
       reliable, transacted message delivery.
      </p>
     </item>
 
     <item>
      <p>
       Support complex eventing topologies that allow the
       originating event source and the final event sink to be
       decoupled.
      </p>
     </item>
 
     <item>
      <p>
       Provide extensibility for more sophisticated and/or
       currently unanticipated subscription scenarios.
      </p>
     </item>
 
     <item>
      <p>
       Support a variety of encoding formats, including (but not
       limited to) both SOAP 1.1 <bibref ref="SOAP11"/>
       and SOAP 1.2 <bibref ref="SOAP121"/> Envelopes.
      </p>
     </item>
    </ulist>
   </div2>

   <div2 id="Delivery">
    <head>Delivery</head>

    <p>
     This specification defines a method for transmitting notifications from 
     the event source 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.
    </p>

    <p>
     When the wse:NotifyTo element is used within the Delivery element it 
     specifies the endpoint to 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
     <bibref ref="WSMC"/> specification, to enable delivery of 
     Notifications to non-addressable endpoints. See the 
     <bibref ref="WSMC"/> specification for more information, and an 
     example, of how this would work.
    </p>
   </div2>

   <div2 id="NotificationFormats">
    <head>Notification Formats</head>

    <p>
     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.
    </p>

    <p>
     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.
    </p>
   </div2>

   <div2 id="SubMgr">
    <head>Subscription Managers</head>

    <p>
     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 might
     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 MAY interact with to manage this
     subscription. This EPR MUST be the target for future requests
     to renew or cancel the subscription. It can address the same Web
     service (Address and ReferenceParameters) as the event source
     itself, or it can 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) must be unique for each
     subscription.
    </p>

    <p>
     We use the term "subscription manager" 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.
    </p>
   </div2>

   <div2 id="example">
    <head>Example</head>

    <p>
     <specref ref="Table1"/> lists a hypothetical request to create a 
     subscription for storm warnings.
    </p>

    <example id="Table1">
     <head>Hypothetical request to create a subscription</head>
     <eg>(01) &lt;s12:Envelope
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ew="http://www.example.com/warnings" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/Subscribe
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:MessageID&gt;
(11)       uuid:d7c5726b-de29-4313-b4d4-b3425b200839
(12)     &lt;/wsa:MessageID&gt;
(13)     &lt;wsa:ReplyTo&gt;
(14)      &lt;wsa:Address&gt;http://www.example.com/MyEventSink&lt;/wsa:Address&gt;
(15)     &lt;/wsa:ReplyTo&gt;
(16)     &lt;wsa:To&gt;http://www.example.org/oceanwatch/EventSource&lt;/wsa:To&gt;
(17)   &lt;/s12:Header&gt;
(18)   &lt;s12:Body&gt;
(19)     &lt;wse:Subscribe&gt;
(20)       &lt;wse:Delivery&gt;
(21)         &lt;wse:NotifyTo&gt;
(22)           &lt;wsa:Address&gt;
(23)             http://www.example.com/MyEventSink/OnStormWarning
(24)           &lt;/wsa:Address&gt;
(25)           &lt;wsa:ReferenceParameters&gt;
(26)             &lt;ew:MySubscription&gt;2597&lt;/ew:MySubscription&gt;
(27)           &lt;/wsa:ReferenceParameters&gt;
(28)         &lt;/wse:NotifyTo&gt;
(29)       &lt;/wse:Delivery&gt;
(30)     &lt;/wse:Subscribe&gt;
(31)   &lt;/s12:Body&gt;
(32) &lt;/s12:Envelope&gt;</eg>
    </example>


    <p>
     Lines (07-09) in <specref ref="Table1"/> indicate the
     message is a request to create a subscription, and line (16)
     indicates that it is sent to a hypothetical event source of ocean
     events.
    </p>

    <p>
     While lines (13-15) indicate where a reply SHOULD be sent,
     lines (20-29) indicate where and how notifications MUST be
     delivered; there is no requirement that these match. The absence
     of any extensions to the wse:Delivery or wse:NotifyTo elements
     indicates that notifications
     MUST be sent as SOAP messages to the endpoint described in
     lines (21-28). Note that lines (25-27) illustrate a typical
     pattern where the event sink lists a reference parameter (line 26)
     that identifies the subscription and will be included in each
     notification.
    </p>

    <p>
     <specref ref="Table2"/> lists a hypothetical response to the request in
     <specref ref="Table1"/>.
    </p>

    <example id="Table2">
     <head>Hypothetical response to a subscribe request</head>
     <eg>(01) &lt;s12:Envelope
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/SubscribeResponse
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:RelatesTo&gt;
(11)       uuid:d7c5726b-de29-4313-b4d4-b3425b200839
(12)     &lt;/wsa:RelatesTo&gt;
(13)     &lt;wsa:To&gt;http://www.example.com/MyEventSink&lt;/wsa:To&gt;
(14)   &lt;/s12:Header&gt;
(15)   &lt;s12:Body&gt;
(16)     &lt;wse:SubscribeResponse&gt;
(17)       &lt;wse:SubscriptionManager&gt;
(18)         &lt;wsa:Address&gt;
(19)           http://www.example.org/oceanwatch/SubscriptionManager
(20)         &lt;/wsa:Address&gt;
(21)         &lt;wsa:ReferenceParameters&gt;
(22)           &lt;ow:MyId&gt;
(23)             28
(24)           &lt;/ow:MyId&gt;
(25)         &lt;/wsa:ReferenceParameters&gt;
(26)       &lt;/wse:SubscriptionManager&gt;
(27)       &lt;wse:Expires&gt;P0Y0M0DT30H0M0S&lt;/wse:Expires&gt;
(28)     &lt;/wse:SubscribeResponse&gt;
(29)   &lt;/s12:Body&gt;
(30) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Lines (07-09) in <specref ref="Table2"/> indicate this
     message is a response to a request to create a subscription, and
     lines (10-12) indicate that it is a response to the request in
     <specref ref="Table1"/>. lines (17-26) provide the
     subscription manager EPR for this subscription, and line (27)
     indicates the subscription will expire in 30 hours unless
     renewed.
    </p>
   </div2>
  </div1>

  <div1 id="notterms">
   <head>Notations and Terminology</head>

   <p>
    This section specifies the notations, namespaces, and
    terminology used in this specification.
   </p>

   <div2 id="conventions">
    <head>Notational Conventions</head>
 
    <p>
     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 <bibref ref="RFC2119"/>.
    </p>
   
    <p>
     This specification uses the following syntax to define
     normative outlines for messages:
    </p>

    <ulist>
     <item>
      <p>
       The syntax appears as an XML instance, but values in
       italics indicate data types instead of values.
      </p>
     </item>

     <item>
      <p>
       Characters are appended to elements and attributes to
       indicate cardinality:
      </p>

      <ulist>
       <item>
        <p>"?" (0 or 1)</p>
       </item>

       <item>
        <p>"*" (0 or more)</p>
       </item>

       <item>
        <p>"+" (1 or more)</p>
       </item>
      </ulist>
     </item>

     <item>
      <p>
       The character "|" is used to indicate a choice between
       alternatives.
      </p>
     </item>

     <item>
      <p>
       The characters "(" and ")" are used to indicate that contained items
       are to be treated as a group with respect to cardinality or choice.
      </p>
     </item>

     <item>
      <p>
       The characters "[" and "]" are used to call out references and
       property names.
      </p>
     </item>

     <item>
      <p>
       Ellipsis (i.e. "...") indicate a point of extensibility.
      </p>
     </item>

     <item>
      <p>
       XML namespace prefixes (see <specref ref="Table3"/>)
       are used to indicate the namespace of the element being
       defined.
      </p>
     </item>
    </ulist>

    <p>
     In addition to Message Information Header properties
     <bibref ref="AddrCore"/>,
     this specification uses the following properties to define messages:
    </p>

    <glist>
     <gitem>
      <label> <kw>[Headers]</kw> </label>
      <def>
       <p> Unordered message headers. </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Action]</kw> </label>
      <def>
       <p> The value to be used for the wsa:Action URI. </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw> </label>
      <def>
       <p> A message body. </p>
      </def>
     </gitem>
    </glist>

    <p>
     These properties bind to a SOAP Envelope as follows:
    </p>

    <example>
     <eg>&lt;s:Envelope&gt;
  &lt;s:Header&gt;
    <kw>[Headers]</kw>
    &lt;wsa:Action&gt;<kw>[Action]</kw>&lt;/wsa:Action&gt;
    ...
  &lt;/s:Header&gt;
  &lt;s:Body&gt;<kw>[Body]</kw>&lt;/s:Body&gt;
&lt;/s:Envelope&gt;</eg>
    </example>

    <p>
     This specification can be used in terms of XML Information Set (Infoset)
     <bibref ref="XMLInfoset"/>, even though the specification uses XML 1.0
     terminology. Valid Infoset for this specification are the one 
     serializable in XML 1.0, hence the use of XML 1.0.
    </p>

   </div2>

   <div2 id="extensions">
    <head>Considerations on the Use of Extensibility Points</head>

    <p>
     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".
    </p>

    <p>
     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.
    </p>

    <p>
     Extension elements and attributes MUST NOT use the Web Services
     Eventing namespace URI.
    </p>
   </div2>

   <div2 id="namespaces">
    <head>XML Namespaces</head>
 
    <p>
     The XML namespace URI that MUST be used by implementations of
     this specification is:
    </p>

    <example>
     <eg><loc href="http://www.w3.org/2009/02/ws-evt">http://www.w3.org/2009/02/ws-evt</loc></eg>
    </example>

    <p>
     <specref ref="Table3"/> lists XML namespaces that are used in this
     specification. The choice of any namespace prefix is arbitrary
     and not semantically significant.
    </p>

    <table id="Table3" border="1">
     <caption> Prefixes and XML namespaces used in this specification </caption>
     <tbody>
      <tr>
       <th align="left"> Prefix </th>
       <th align="left"> XML Namespace </th>
       <th align="left"> Specification(s) </th>
      </tr>

      <tr>
       <td>s</td>
       <td>(Either SOAP 1.1 or 1.2)</td>
       <td>(Either SOAP 1.1 or 1.2)</td>
      </tr>
      <tr>
       <td>s11</td>
       <td>
        <loc href="http://schemas.xmlsoap.org/soap/envelope/">
         http://schemas.xmlsoap.org/soap/envelope/
        </loc>
       </td>
       <td>SOAP 1.1 <bibref ref="SOAP11"/></td>
      </tr>
      <tr>
       <td>s12</td>
       <td>
        <loc href="http://www.w3.org/2003/05/soap-envelope">
         http://www.w3.org/2003/05/soap-envelope
        </loc>
       </td>
       <td>SOAP 1.2 <bibref ref="SOAP121"/></td>
      </tr>
      <tr>
       <td>wsdl</td>
       <td>
        <loc href="http://schemas.xmlsoap.org/wsdl/">
         http://schemas.xmlsoap.org/wsdl/
        </loc>
       </td>
       <td>WSDL <bibref ref="WSDL11"/></td>
      </tr>
      <tr>
       <td>wsa</td>
       <td>
        <loc href="http://www.w3.org/2005/08/addressing">
         http://www.w3.org/2005/08/addressing
        </loc>
       </td>
       <td>WS-Addressing <bibref ref="AddrCore"/></td>
      </tr>
      <tr>
       <td>wse</td>
       <td>
        <loc href="http://www.w3.org/2009/02/ws-evt">
         http://www.w3.org/2009/02/ws-evt
        </loc>
       </td>
       <td>This specification</td>
      </tr>
      <tr>
       <td>xs</td>
       <td>
        <loc href="http://www.w3.org/2001/XMLSchema">
         http://www.w3.org/2001/XMLSchema
        </loc>
       </td>
       <td>
        XML Schema <bibref ref="XMLSchema1"/>, <bibref ref="XMLSchema2"/>
       </td>
      </tr>
     </tbody>
    </table>

    <p>
     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
     <loc href="http://www.w3.org/2001/tag/doc/namespaceState.html">
      http://www.w3.org/2001/tag/doc/namespaceState.html
     </loc> and
     <loc href="http://www.w3.org/2005/07/13-nsuri">
      http://www.w3.org/2005/07/13-nsuri
      </loc>.
    </p>
   </div2>

   <div2 id="terms">
    <head>Terminology</head>

    <glist>
     <gitem>
      <label> Event Source </label>
      <def>
       <p>
        A Web service that sends notifications and accepts
        requests to create subscriptions.
       </p>
      </def>
     </gitem>
     
     <gitem>
      <label> Event Sink </label>
      <def>
       <p>
        A Web service that receives notifications.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> Notification </label>
      <def>
       <p>
        A one-way message sent to indicate that an event, or events,
        have occurred.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> Subscriber </label>
      <def>
       <p>
        A Web service that sends requests to create, renew, and/or
        delete subscriptions.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> Subscription Manager </label>
      <def>
       <p>
        A Web service that accepts requests to manage, get the status of, 
        renew, and/or delete subscriptions on behalf of an event source.
       </p>
      </def>
     </gitem>
    </glist>
   </div2>

   <div2 id="compliance">
    <head>Compliance</head>
    
    <p>
     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 <specref ref="namespaces"/>) within SOAP 
     Envelopes unless it is compliant with this specification. 
    </p>
    
    <p>
     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. 
    </p>
    
    <p>
     All messages defined by this specification MUST be sent to a Web service 
     that is addressable by an EPR (see <bibref ref="AddrCore"/>). 
    </p>

    <p>
     Unless otherwise noted, all URIs are absolute URIs and URI comparison
     MUST be performed according to <bibref ref="RFC3986"/> section 6.2.1.
    </p>

   </div2>
  </div1>

  <div1 id="SubMsgs">
   <head>Subscription Messages</head>
 
   <p>
    To create, renew, and delete subscriptions, subscribers send
    request messages to event sources and subscription managers.
   </p>

   <p>
    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 MAY 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 MAY 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 notifications that match the requested filter. 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.
   </p>
  
   <p>
    In the absence of reliable messaging at the application layer
    (e.g. <bibref ref="WSReliableMessaging"/>),
    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.
   </p>

   <div2 id="Subscribe">
    <head>Subscribe</head>

    <p>
     To create a subscription, a subscriber sends a request message
     of the following form to an event source:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/Subscribe

<kw>[Body]</kw>
  &lt;wse:Subscribe ...&gt;
    &lt;wse:EndTo&gt; <emph>endpoint-reference</emph> &lt;/wse:EndTo&gt; ?
    &lt;wse:Delivery ...&gt; <emph>xs:any</emph>* &lt;/wse:Delivery&gt;
    &lt;wse:Format Name="<emph>xs:anyURI</emph>"? &gt; <emph>xs:any</emph>* &lt;/wse:Format&gt; ?
    &lt;wse:Expires&gt; (<emph>xs:dateTime</emph> | <emph>xs:duration</emph>) &lt;/wse:Expires&gt; ?
    &lt;wse:Filter Dialect="<emph>xs:anyURI</emph>"? ...&gt; <emph>xs:any</emph>* &lt;/wse:Filter&gt; ?
    <emph>xs:any</emph>*
  &lt;/wse:Subscribe&gt;</eg>
    </example>

    <p>
     The following describes additional, normative constraints on
     the outline listed above:
    </p>

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:EndTo </label>
      <def>
       <p>
        Where to send a SubscriptionEnd message if the
        subscription is terminated unexpectedly. (See 
        <specref ref="SubscriptionEnd"/>.) 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.
       </p>
       <p>
        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. 
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Delivery </label>
      <def>
       <p>
        This element contains the information necessary to convey 
        notification messages from the event source to the event sink in 
        a manner required by the subscriber. This element MUST contain 
        at least one child element.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Delivery/wse:NotifyTo </label>
      <def>
       <p>
        This specification defines one OPTIONAL element, wse:NotifyTo, to 
        be used as a child of the wse:Delivery element.  When present this 
        element indicates that notifications MUST be sent to the 
        EndpointReference identified by this element.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Format </label>
      <def>
       <p>
        This optional element contains
        the delivery format to be used for notification messages sent in 
        relation to this subscription. Implied value is 
        "http://www.w3.org/2009/02/ws-evt/DeliveryFormats/Unwrap", which 
        indicates that unwrapped delivery MUST be used. See 
        Section <specref ref="NotificationFormats"/> for details.
       </p>

       <p>
        If the event source does not support the requested delivery 
        format, the request MUST 
        generate a wse:DeliveryFormatRequestedUnavailable fault indicating 
        that the requested delivery format is not supported.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Format@Name="http://www.w3.org/2009/02/ws-evt/DeliveryFormats/Unwrap" </label>
      <def>
       <p>
        Indicate the unwrapped event delivery format.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Format@Name="http://www.w3.org/2009/02/ws-evt/DeliveryFormats/Wrap" </label>
      <def>
       <p>
        Indicate the wrapped event delivery format.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Expires </label>
      <def>
       <p>
        Requested expiration time for the subscription. (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.
       </p>

       <p>
        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.
       </p>

       <p>
        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 MUST
        generate a wse:InvalidExpirationTime fault indicating that an
        invalid expiration time was requested.
       </p>

       <p>
        Some event sources might not have a "wall time" clock
        available, and so are only able to accept durations 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 MUST generate a
        wse:UnsupportedExpirationType fault indicating that an
        unsupported expiration type was requested.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Filter </label>
      <def>
       <p>
        A Boolean expression in some dialect, either as a string
        or as an XML fragment (see 
        <specref ref="Dialect"/>). If
        the expression evaluates to false for a notification, the
        notification MUST NOT be sent to the event sink. Implied
        value is an expression that always returns true. If the event
        source does not support filtering, then a request that
        specifies a filter MUST fail, and the event source MUST
        generate a wse:FilteringNotSupported fault indicating that
        filtering is not supported.
       </p>

       <p>
        If the event source supports filtering but cannot honor
        the requested filtering, the request MUST fail, and the event
        source MUST generate a wse:FilteringRequestedUnavailable fault
        indicating that the requested filter dialect is not
        supported.
       </p>

       <p>
        It is possible for a Subscribe request to contain a filter that 
        will never evaluate to true for the lifetime of the Subscription. 
        If an Event Source detects this condition it MUST generate a 
        wse:EmptyFilter fault in response to the Subscribe request message.
       </p>
      </def>
     </gitem>

     <gitem>
      <label id="Dialect"> <kw>[Body]</kw>/wse:Subscribe/wse:Filter/@Dialect </label>
      <def>
       <p>
        Implied value is "http://www.w3.org/2009/02/ws-evt/Dialects/XPath10".
       </p>

       <p>
        While an XPath predicate expression provides great
        flexibility and power, alternate filter dialects MAY be
        defined. For instance, a simpler, less powerful dialect might
        be defined for resource-constrained implementations, or a new
        dialect might be defined to support filtering based on data
        not included in the notification message itself. If desired,
        a filter dialect could allow the definition of a composite
        filter that contained multiple filters from other
        dialects.
        New dialect definitions MUST include sufficient information for 
        proper application. For example, it would need to include the 
        context (which data) over which the filter operates.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:Subscribe/wse:Filter/@Dialect="<loc
       href="http://www.w3.org/2009/02/ws-evt/Dialects/XPath10">
        http://www.w3.org/2009/02/ws-evt/Dialects/XPath10
       </loc>"
      </label>
      <def>
       <p>
        Value of <kw>[Body]</kw>/wse:Subscribe/wse:Filter is an XPath
        <bibref ref="XPath1"/> predicate expression
        (PredicateExpr); the context of the expression is:
       </p>

       <ulist>
        <item>
         <p>Context Node: the root of the event XML.</p>
        </item>

        <item>
         <p>Context Position: 1.</p>
        </item>

        <item>
         <p>Context Size: 1.</p>
        </item>

        <item>
         <p>Variable Bindings: None.</p>
        </item>

        <item>
         <p>
          Function Libraries: Core Function Library <bibref ref="XPath1"/>.
         </p>
        </item>

        <item>
         <p>
          Namespace Declarations: The [in-scope namespaces]
          property <bibref ref="XMLInfoset"/> of
          /s:Envelope/s:Body/*/wse:Filter.
         </p>
        </item>
       </ulist>
      </def>
     </gitem>
    </glist>

    <p>
     Other message information headers defined by WS-Addressing
     <bibref ref="AddrCore"/> MAY be included in
     the request and response messages, according to the usage and
     semantics defined in WS-Addressing.
    </p>

    <p>
     Other components of the outline above are not further
     constrained by this specification.
    </p>

    <p>
     If included within the Subscribe request message, the wse:NotifyTo 
     and wse:EndTo SHOULD have some cursory validity checking performed before 
     the Subscribe response is returned. While not all errors can be detected
     prior to sending a message to those EPRs, some obvious ones can be 
     detected.  For example, an unsupported transport specified within the 
     wsa:Address IRI.
     Detecting these errors during Subscribe processing will lessen the chances
     of the subscriber creating an unusable subscription.  If this check is
     performed and a problem is detected then the event source MUST generate
     a wse:UnusableEPR fault rather than returning the SubscribeResponse 
     message.
    </p>

    <p>
     If the event source accepts a request to create a
     subscription, it MUST reply with a response of the following
     form:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/SubscribeResponse

<kw>[Body]</kw>
  &lt;wse:SubscribeResponse ...&gt;
    &lt;wse:SubscriptionManager&gt;
      <emph>wsa:EndpointReferenceType</emph>
    &lt;/wse:SubscriptionManager&gt;
    &lt;wse:Expires&gt;(<emph>xs:dateTime</emph> | <emph>xs:duration</emph>)&lt;/wse:Expires&gt;
    <emph>xs:any</emph>*
  &lt;/wse:SubscribeResponse&gt;</eg>
    </example>

    <p>
     The following describes additional, normative constraints on
     the outline listed above:
    </p>

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/wse:SubscribeResponse/wse:SubscriptionManager </label>
      <def>
       <p>
        The EPR of the subscription manager for this subscription.
       </p>
  
       <p>
        In some cases, it is convenient for all EPRs issued by a
        single event source to address a single Web service and use a
        reference parameter to distinguish among the active
        subscriptions. 
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:SubscribeResponse/wse:Expires </label>
      <def>
       <p>
        The expiration time assigned by the event source. The
        expiration time MAY be either an absolute time or a duration
        but SHOULD be of the same type as the requested expiration
        (if any).
       </p>

       <p>
        If this element does not appear, then the subscription
        will not expire. That is, the subscription has an indefinite
        lifetime. 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.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     Other components of the outline above are not further
     constrained by this specification.
    </p>

    <p>
     If the event source chooses not to accept a subscription due
     to the content of the Subscribe message, then the 
     event source MUST generate a 
     wse:SubscribeRequestInvalid fault. If the event source
     does not accept this subscription due to an internal processing
     reason and not due to the specific content of the Subscribe
     message, then the event source MUST
     generate a wse:EventSourceUnableToProcess fault.
    </p>

    <p>
     <specref ref="Table4"/> lists another hypothetical request to create a
     subscription.
    </p>

    <example id="Table4">
     <head>Second hypothetical request to create a subscription</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ew="http://www.example.com/warnings" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/Subscribe
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:MessageID&gt;
(11)       uuid:e1886c5c-5e86-48d1-8c77-fc1c28d47180
(12)     &lt;/wsa:MessageID&gt;
(13)     &lt;wsa:ReplyTo&gt;
(14)      &lt;wsa:Address&gt;http://www.example.com/MyEvEntsink&lt;/wsa:Address&gt;
(15)      &lt;wsa:ReferenceParameters&gt;
(16)        &lt;ew:MySubscription&gt;2597&lt;/ew:MySubscription&gt;
(17)      &lt;/wsa:ReferenceParameters&gt;
(18)     &lt;/wsa:ReplyTo&gt;
(19)     &lt;wsa:To&gt;http://www.example.org/oceanwatch/EventSource&lt;/wsa:To&gt;
(20)   &lt;/s12:Header&gt;
(21)   &lt;s12:Body&gt;
(22)     &lt;wse:Subscribe&gt;
(23)       &lt;wse:EndTo&gt;
(24)         &lt;wsa:Address&gt;
(25)           http://www.example.com/MyEventSink
(26)         &lt;/wsa:Address&gt;
(27)         &lt;wsa:ReferenceParameters&gt;
(28)           &lt;ew:MySubscription&gt;2597&lt;/ew:MySubscription&gt;
(29)         &lt;/wsa:ReferenceParameters&gt;
(30)       &lt;/wse:EndTo&gt;
(31)       &lt;wse:Delivery&gt;
(32)         &lt;wse:NotifyTo&gt;
(33)           &lt;wsa:Address&gt;
(34)             http://www.other.example.com/OnStormWarning
(35)           &lt;/wsa:Address&gt;
(36)           &lt;wsa:ReferenceParameters&gt;
(37)             &lt;ew:MySubscription&gt;2597&lt;/ew:MySubscription&gt;
(38)           &lt;/wsa:ReferenceParameters&gt;
(39)         &lt;/wse:NotifyTo&gt;
(40)       &lt;/wse:Delivery&gt;
(41)       &lt;wse:Expires&gt;2004-06-26T21:07:00.000-08:00&lt;/wse:Expires&gt;
(42)       &lt;wse:Filter xmlns:ow="http://www.example.org/oceanwatch" &gt;
(43)         /*/ow:Speed/[node() &amp;gt; 50]
(44)       &lt;/wse:Filter&gt;
(45)     &lt;/wse:Subscribe&gt;
(46)   &lt;/s12:Body&gt;
(47) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Like the request in <specref ref="Table1"/>, lines
     (07-09) of <specref ref="Table4"/> indicate the message is
     a request to create a subscription. Line (19) indicates that it
     is sent to a hypothetical event source of ocean events.
    </p>

    <p>
     Lines (13-18) indicate where to send the response to this
     request, lines (23-30) indicate where to send a SubscriptionEnd
     message if necessary, and lines (31-34) indicate how and where to
     send notifications.
    </p>

    <p>
     Line (41) indicates the event sink would prefer to have the
     subscription expire on 26 June 2004 at 9:07 PM Pacific time.
    </p>

    <p>
     Lines (42-44) indicate the event sink only wants weather
     reports where the speed of wind is greater than 50.
    </p>

    <p>
     <specref ref="Table5"/> lists a hypothetical response to the request in
     <specref ref="Table4"/>.
    </p>

    <example id="Table5">
     <head>Hypothetical response to second subscribe request</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ew="http://www.example.com/warnings"
(06)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(07)   &lt;s12:Header&gt;
(08)     &lt;wsa:Action&gt;
(09)       http://www.w3.org/2009/02/ws-evt/SubscribeResponse
(10)     &lt;/wsa:Action&gt;
(11)     &lt;wsa:RelatesTo&gt;
(12)       uuid:e1886c5c-5e86-48d1-8c77-fc1c28d47180
(13)     &lt;/wsa:RelatesTo&gt;
(14)     &lt;wsa:To&gt;http://www.example.com/MyEventSink&lt;/wsa:To&gt;
(15)     &lt;ew:MySubscription wsa:IsReferenceParameter="true"&gt;
(16)       2597
(17)     &lt;/ew:MySubscription&gt;
(18)   &lt;/s12:Header&gt;
(19)   &lt;s12:Body&gt;
(20)     &lt;wse:SubscribeResponse&gt;
(21)       &lt;wse:SubscriptionManager&gt;
(22)         &lt;wsa:Address&gt;
(23)           http://www.example.org/oceanwatch/SubscriptionManager
(24)         &lt;/wsa:Address&gt;
(25)         &lt;wsa:ReferenceParameters&gt;
(26)           &lt;x:SubID xmlns:x="http://example.com"&gt;
(27)             uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(28)           &lt;/x:SubID&gt;
(29)         &lt;/wsa:ReferenceParameters&gt;
(30)       &lt;/wse:SubscriptionManager&gt;
(31)       &lt;wse:Expires&gt;2004-07-01T00:00:00.000-00:00&lt;/wse:Expires&gt;
(32)     &lt;/wse:SubscribeResponse&gt;
(33)   &lt;/s12:Body&gt;
(34) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Like the response in <specref ref="Table2"/>, lines
     (08-10) of <specref ref="Table5"/> indicate this message is
     a response to a request to create a subscription, and lines
     (11-13) indicate that it is a response to the request in 
     <specref ref="Table4"/> . Lines (14-17) indicate the response is
     sent to the event sink indicated in lines (13-18) of 
     <specref ref="Table4"/>. Lines (21-30) provide the address of the
     subscription manager for this subscription; note that this
     particular response uses the x:SubID element as a reference 
     parameter to distinguish
     this subscription EPR from other subscription EPRs.
     Finally, line (31) indicates the
     subscription will expire on 1 July 2004 unless renewed; there is
     no requirement that this time be necessarily longer or shorter
     than the requested expiration (line (41) of 
     <specref ref="Table4"/>).
    </p>
   </div2>

   <div2 id="Renew">
    <head>Renew</head>

    <p>
     To update the expiration for a subscription, subscription
     managers MUST support requests to renew subscriptions.
    </p>

    <p>
     To renew a subscription, the subscriber sends a request of the
     following form to the subscription manager:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/Renew

<kw>[Body]</kw>
  &lt;wse:Renew ...&gt;
    &lt;wse:Expires&gt;(<emph>xs:dateTime</emph> | <emph>xs:duration</emph>)&lt;/wse:Expires&gt; ?
    <emph>xs:any</emph>*
  &lt;/wse:Renew&gt;</eg>
    </example>

    <p>
     Components of the outline listed above are additionally
     constrained as for a request to create a subscription (see
     <specref ref="Subscribe"/>). Other components
     of the outline above are not further constrained by this
     specification.
    </p>

    <p>
     If the subscription manager accepts a request to renew a
     subscription, it MUST reply with a response of the following
     form:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/RenewResponse

<kw>[Body]</kw>
  &lt;wse:RenewResponse ...&gt;
    &lt;wse:Expires&gt;(<emph>xs:dateTime</emph> | <emph>xs:duration</emph>)&lt;/wse:Expires&gt; ?
    <emph>xs:any</emph>*
  &lt;/wse:RenewResponse&gt;</eg>
    </example>

    <p>
     Components of the outline listed above are constrained as for
     a response to a subscribe request (see <specref ref="Subscribe"/>) 
     with the following addition(s):
    </p>

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/wse:RenewResponse/wse:Expires </label>
      <def>
       <p>
        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.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     If the subscription manager chooses not to renew this
     subscription, the request MUST fail, and the subscription manager
     MUST generate a wse:UnableToRenew fault indicating that the
     renewal was not accepted.
    </p>

    <p>
     Other components of the outline above are not further
     constrained by this specification.
    </p>

    <p>
     <specref ref="Table6"/> lists a hypothetical request to renew the 
     subscription created in <specref ref="Table5"/>.
    </p>

    <example id="Table6">
     <head>Hypothetical request to renew second subscription</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/Renew
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:MessageID&gt;
(11)       uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)     &lt;/wsa:MessageID&gt;
(13)     &lt;wsa:ReplyTo&gt;
(14)      &lt;wsa:Address&gt;http://www.example.com/MyEventSink&lt;/wsa:Address&gt;
(15)     &lt;/wsa:ReplyTo&gt;
(16)     &lt;wsa:To&gt;
(17)       http://www.example.org/oceanwatch/SubscriptionManager
(18)     &lt;/wsa:To&gt;
(19)     &lt;x:SubID wsa:IsReferenceParameter="true" xmlns:x="http://example.com"&gt;
(20)       uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(21)     &lt;/x:SubID&gt;
(22)   &lt;/s12:Header&gt;
(23)   &lt;s12:Body&gt;
(24)     &lt;wse:Renew&gt;
(25)       &lt;wse:Expires&gt;2004-06-26T21:07:00.000-08:00&lt;/wse:Expires&gt;
(26)     &lt;/wse:Renew&gt;
(27)   &lt;/s12:Body&gt;
(28) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     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
     <specref ref="Table5"/>. Line (25) in <specref ref="Table6"/>
     indicates the request is to extend the
     subscription until 26 June 2004 at 9:07 PM Pacific.
    </p>

    <p>
     <specref ref="Table7"/> lists a hypothetical response to the request in
     <specref ref="Table6"/>.
    </p>

    <example id="Table7">
     <head>Hypothetical response to renew request</head>
     <eg>(01) &lt;s12:Envelope
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)      http://www.w3.org/2009/02/ws-evt/RenewResponse
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:RelatesTo&gt;
(11)       uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)     &lt;/wsa:RelatesTo&gt;
(13)     &lt;wsa:To&gt;http://www.example.com/MyEventSink&lt;/wsa:To&gt;
(14)   &lt;/s12:Header&gt;
(15)   &lt;s12:Body&gt;
(16)     &lt;wse:RenewResponse&gt;
(17)       &lt;wse:Expires&gt;2004-06-26T12:00:00.000-00:00&lt;/wse:Expires&gt;
(18)     &lt;/wse:RenewResponse&gt;
(19)   &lt;/s12:Body&gt;
(20) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Line (17) in <specref ref="Table7"/> indicates the
     subscription has been extended only until 26 June 2004 at
     noon.
    </p>
   </div2>

   <div2 id="GetStatus">
    <head>GetStatus</head>

    <p>
     To get the status of a subscription, the subscriber sends a
     request of the following form to the subscription manager:
    </p>
    
    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/GetStatus

<kw>[Body]</kw>
  &lt;wse:GetStatus ...&gt;
    <emph>xs:any</emph>*
  &lt;/wse:GetStatus&gt;</eg>
    </example>

    <p>
     Components of the outline listed above are additionally
     constrained as for a request to renew a subscription (see
     <specref ref="Renew"/>). Other components of the
     outline above are not further constrained by this
     specification.
    </p>

    <p>
     If the subscription is valid and has not expired, the
     subscription manager MUST reply with a response of the following
     form:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/GetStatusResponse

<kw>[Body]</kw>
  &lt;wse:GetStatusResponse ...&gt;
    &lt;wse:Expires&gt;(<emph>xs:dateTime</emph> | <emph>xs:duration</emph>)&lt;/wse:Expires&gt; ?
    <emph>xs:any</emph>*
  &lt;/wse:GetStatusResponse&gt;</eg>
    </example>

    <p>
     Components of the outline listed above are constrained as for
     a response to a renew request (see <specref ref="Renew"/>).
     Other components of the outline above are not further
     constrained by this specification.
    </p>

    <p>
     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.
    </p>

    <p>
     <specref ref="Table8"/> lists a hypothetical request to get the 
     status of the subscription created in <specref ref="Table5"/>.
    </p>

    <example id="Table8">
     <head>Hypothetical request to get the status of the second subscription</head>
     <eg>(01) &lt;s12:Envelope
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/GetStatus
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:MessageID&gt;
(11)       uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)     &lt;/wsa:MessageID&gt;
(13)     &lt;wsa:ReplyTo&gt;
(14)       &lt;wsa:Address&gt;http://www.example.com/MyEventSink&lt;/wsa:Address&gt;
(15)     &lt;/wsa:ReplyTo&gt;
(16)     &lt;wsa:To&gt;
(17)       http://www.example.org/oceanwatch/SubscriptionManager
(18)     &lt;/wsa:To&gt;
(19)     &lt;x:SubID wsa:IsReferenceParameter="true" xmlns:x="http://example.com"&gt;
(20)       uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(21)     &lt;/x:SubID&gt;
(22)   &lt;/s12:Header&gt;
(23)   &lt;s12:Body&gt;
(24)     &lt;wse:GetStatus /&gt;
(25)   &lt;/s12:Body&gt;
(26) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     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
     <specref ref="Table5"/>.
    </p>

    <p>
     <specref ref="Table9"/> lists a hypothetical response to the request in
     <specref ref="Table8"/>.
    </p>

    <example id="Table9">
     <head>Hypothetical response to get status request</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/GetStatusResponse
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:RelatesTo&gt;
(11)       uuid:bd88b3df-5db4-4392-9621-aee9160721f6
(12)     &lt;/wsa:RelatesTo&gt;
(13)     &lt;wsa:To&gt;http://www.example.com/MyEventSink&lt;/wsa:To&gt;
(14)   &lt;/s12:Header&gt;
(15)   &lt;s12:Body&gt;
(16)     &lt;wse:GetStatusResponse&gt;
(17)       &lt;wse:Expires&gt;2004-06-26T12:00:00.000-00:00&lt;/wse:Expires&gt;
(18)     &lt;/wse:GetStatusResponse&gt;
(19)   &lt;/s12:Body&gt;
(20) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Line (17) in <specref ref="Table9"/> indicates the
     subscription will expire on 26 June 2004 at noon.
    </p>
   </div2>

   <div2 id="Unsubscribe">
    <head>Unsubscribe</head>

    <p>
     Though subscriptions expire eventually, to minimize resources,
     the subscribing event sink SHOULD explicitly delete a
     subscription when it no longer wants notifications associated
     with the subscription.
    </p>

    <p>
     To explicitly delete a subscription, a subscribing event sink
     sends a request of the following form to the subscription
     manager:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/Unsubscribe

<kw>[Body]</kw>
  &lt;wse:Unsubscribe ...&gt;
    <emph>xs:any</emph>*
  &lt;/wse:Unsubscribe&gt;</eg>
    </example>

    <p>
     Components of the outline above are additionally constrained
     only as for a request to renew a subscription (see 
     <specref ref="Renew"/>). For example, the faults listed
     there are also defined for a request to delete a
     subscription.
    </p>

    <p>
     If the subscription manager accepts a request to delete a
     subscription, it MUST reply with a response of the following
     form:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/UnsubscribeResponse

<kw>[Body]</kw>
  &lt;wse:UnsubscribeResponse ...&gt;
    <emph>xs:any</emph>*
  &lt;/wse:UnsubscribeResponse&gt;</eg>
    </example>

    <p>
     Components of the outline listed above are not further
     constrained by this specification.
    </p>

    <p>
     <specref ref="Table10"/> lists a hypothetical request to delete the
     subscription created in <specref ref="Table5"/>.
    </p>

    <example id="Table10">
     <head>Hypothetical unsubscribe request to delete second subscription</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/Unsubscribe
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:MessageID&gt;
(11)       uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216
(12)     &lt;/wsa:MessageID&gt;
(13)     &lt;wsa:ReplyTo&gt;
(14)      &lt;wsa:Address&gt;http://www.example.com/MyEventSink&lt;/wsa:Address&gt;
(15)     &lt;/wsa:ReplyTo&gt;
(16)     &lt;wsa:To&gt;
(17)       http://www.example.org/oceanwatch/SubscriptionManager
(18)     &lt;/wsa:To&gt;
(19)     &lt;x:SubID wsa:IsReferenceParameter="true" xmlns:x="http://example.com"&gt;
(20)       uuid:22e8a584-0d18-4228-b2a8-3716fa2097fa
(21)     &lt;/x:SubID&gt;
(22)   &lt;/s12:Header&gt;
(23)   &lt;s12:Body&gt;
(24)     &lt;wse:Unsubscribe /&gt;
(25)   &lt;/s12:Body&gt;
(26) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Lines (07-09) in <specref ref="Table10"/> 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 <specref ref="Table5"/>.
    </p>

    <p>
     <specref ref="Table11"/> lists a hypothetical response to the request in
     <specref ref="Table10"/>.
    </p>

    <example id="Table11">
     <head>Hypothetical response to unsubscribe request</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing" &gt;
(04)   &lt;s12:Header&gt;
(05)     &lt;wsa:Action&gt;
(06)       http://www.w3.org/2009/02/ws-evt/UnsubscribeResponse
(07)     &lt;/wsa:Action&gt;
(08)     &lt;wsa:RelatesTo&gt;
(09)       uuid:2653f89f-25bc-4c2a-a7c4-620504f6b216
(10)     &lt;/wsa:RelatesTo&gt;
(11)     &lt;wsa:To&gt;http://www.example.com/MyEventSink&lt;/wsa:To&gt;
(12)   &lt;/s12:Header&gt;
(13)   &lt;s12:Body&gt;
(14)     &lt;wse:UnsubscribeResponse/&gt;
(15)   &lt;/s12:Body&gt;
(16) &lt;/s12:Envelope&gt;</eg>
    </example>
   </div2>

   <div2 id="SubscriptionEnd">
    <head>Subscription End</head>

    <p>
     If the event source terminates a subscription unexpectedly,
     the event source SHOULD send a Subscription End SOAP message to
     the endpoint reference indicated when the subscription was
     created (see <specref ref="Subscribe"/>). 
     This endpoint reference MUST refer to an endpoint that supports the 
     SubscriptionEndPortType portType.
     The message MUST be of the following form:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-evt/SubscriptionEnd

<kw>[Body]</kw>
  &lt;wse:SubscriptionEnd ...&gt;
    &lt;wse:Status&gt;
      ( http://www.w3.org/2009/02/ws-evt/DeliveryFailure | 
        http://www.w3.org/2009/02/ws-evt/SourceShuttingDown |
        http://www.w3.org/2009/02/ws-evt/SourceCancelling )
    &lt;/wse:Status&gt;
    &lt;wse:Reason xml:lang="<emph>language identifier</emph>" &gt;<emph>xs:string</emph>&lt;/wse:Reason&gt; ?
    <emph>xs:any</emph>*
  &lt;/wse:SubscriptionEnd&gt;</eg>
    </example>

    <p>
     The following describes additional, normative constraints on
     the outline listed above:
    </p>

    <glist>
     <gitem>
      <label> 
       <kw>[Body]</kw>/wse:SubscriptionEnd/wse:Status =
       "http://www.w3.org/2009/02/ws-evt/DeliveryFailure"
      </label>
      <def>
       <p>
        This value MUST be used if the event source terminated the
        subscription because of problems delivering
        notifications.
       </p>
      </def>
     </gitem>

     <gitem>
      <label>
       <kw>[Body]</kw>/wse:SubscriptionEnd/wse:Status =
       "http://www.w3.org/2009/02/ws-evt/SourceShuttingDown"
      </label>
      <def>
       <p>
        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.
       </p>
      </def>
     </gitem>

     <gitem>
      <label>
       <kw>[Body]</kw>/wse:SubscriptionEnd/wse:Status =
       "http://www.w3.org/2009/02/ws-evt/SourceCancelling"
      </label>
      <def>
       <p>
        This value MUST be used if the event source terminated the
        subscription for some other reason before it expired.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wse:SubscriptionEnd/wse:Reason </label>
      <def>
       <p>
        This optional element contains text, in the language
        specified by the @xml:lang attribute, describing the reason
        for the unexpected subscription termination.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     Other message information headers defined by WS-Addressing
     <bibref ref="AddrCore"/> MAY be included in
     the message, according to the usage and semantics defined in
     WS-Addressing.
    </p>

    <p>
     Other components of the outline above are not further
     constrained by this specification.
    </p>

    <p>
     <specref ref="Table12"/> lists a hypothetical SubscriptionEnd message
     corresponding to an early termination of the subscription created
     in <specref ref="Table4"/>.
    </p>

    <example id="Table12">
     <head>Hypothetical subscription end message</head>
     <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wse="http://www.w3.org/2009/02/ws-evt" 
(05)     xmlns:ew="http://www.example.com/warnings" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.w3.org/2009/02/ws-evt/SubscriptionEnd
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:To&gt;http://www.example.com/MyEventSink&lt;/wsa:To&gt;
(11)     &lt;ew:MySubscription wsa:IsReferenceParameter="true"&gt;
(12)       2597
(13)     &lt;/ew:MySubscription&gt;
(14)   &lt;/s12:Header&gt;
(15)   &lt;s12:Body&gt;
(16)     &lt;wse:SubscriptionEnd&gt;
(17)       &lt;wse:Status&gt;wse:SourceShuttingDown&lt;/wse:Status&gt;
(18)       &lt;wse:Reason xml:lang="en-US" &gt;
(19)         Event source going off line.
(20)       &lt;/wse:Reason&gt;
(21)     &lt;/wse:SubscriptionEnd&gt;
(22)   &lt;/s12:Body&gt;
(23) &lt;/s12:Envelope&gt;</eg>
    </example>

    <p>
     Line (08) is the action URI for Subscription End. Lines
     (10-13) indicate the message is sent to the EndTo of the
     subscribe request (lines (23-30) in <specref ref="Table4"/>
     .). Line (17) indicates the event source is shutting down, and
     lines (18-20) indicate that the event source was going off
     line.
    </p>
   </div2>
  </div1>

  <div1 id="Notifications">
   <head>Notifications</head>
 
   <p>
    This specification does not constrain notifications because
    any message MAY be a notification.
   </p>

   <p>
    However, if a subscribing event sink wishes to have
    notifications specifically marked, it MAY specify literal SOAP
    header blocks in the Subscribe request, in the
    /s:Envelope/s:Body/wse:Subscribe/wse:NotifyTo/wsa:ReferenceParameters
    element; per WS-Addressing 
    <bibref ref="AddrCore"/>, the event source MUST include
    each such literal SOAP header block in every notification sent to
    the endpoint addressed by
    /s:Envelope/s:Body/wse:Subscribe/wse:NotifyTo.
   </p>

   <p>
    <specref ref="Table13"/> lists a hypothetical notification message sent as
    part of the subscription created by the subscribe request in
    <specref ref="Table4"/>.
   </p>

   <example id="Table13">
    <head>Hypothetical notification message</head>
    <eg>(01) &lt;s12:Envelope 
(02)     xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:ew="http://www.example.com/warnings"
(05)     xmlns:ow="http://www.example.org/oceanwatch" &gt;
(06)   &lt;s12:Header&gt;
(07)     &lt;wsa:Action&gt;
(08)       http://www.example.org/oceanwatch/2003/WindReport
(09)     &lt;/wsa:Action&gt;
(10)     &lt;wsa:MessageID&gt;
(11)       uuid:568b4ff2-5bc1-4512-957c-0fa545fd8d7f
(12)     &lt;/wsa:MessageID&gt;
(13)     &lt;wsa:To&gt;http://www.other.example.com/OnStormWarning&lt;/wsa:To&gt;
(14)     &lt;ew:MySubscription wsa:IsReferenceParameter="true"&gt;
(15)       2597
(16)     &lt;/ew:MySubscription&gt;
(17)   &lt;/s12:Header&gt;
(18)   &lt;s12:Body&gt;
(19)     &lt;ow:WindReport&gt;
(20)       &lt;ow:Date&gt;030701&lt;/ow:Date&gt;
(21)       &lt;ow:Time&gt;0041&lt;/ow:Time&gt;
(22)       &lt;ow:Speed&gt;65&lt;/ow:Speed&gt;
(23)       &lt;ow:Location&gt;BRADENTON BEACH&lt;/ow:Location&gt;
(24)       &lt;ow:County&gt;MANATEE&lt;/ow:County&gt;
(25)       &lt;ow:State&gt;FL&lt;/ow:State&gt;
(26)       &lt;ow:Lat&gt;27.46&lt;/ow:Lat&gt;
(27)       &lt;ow:Long&gt;82.70&lt;/ow:Long&gt;
(28)       &lt;ow:Comments xml:lang="en-US" &gt;
(29)         WINDS 55 WITH GUSTS TO 65. ROOF TORN OFF BOAT HOUSE. REPORTED
(30)         BY STORM SPOTTER. (TBW)
(31)       &lt;/ow:Comments&gt;
(32)     &lt;/ow:WindReport&gt;
(33)   &lt;/s12:Body&gt;
(34) &lt;/s12:Envelope&gt;</eg>
   </example>

   <p>
    Lines (13-16) indicate the message is sent to the endpoint
    indicated by the subscribe request (lines (32-39) in
    <specref ref="Table4"/>). Line (22) matches the filter in the
    subscribe request (lines (42-44) in <specref ref="Table4"/>).
   </p>
  </div1>

  <div1 id="Faults">
   <head>Faults</head>

   <p>
    All fault messages defined in this specification MUST be sent
    according to the rules and usage described in
    <bibref ref="WSABinding"/>
    Section 6 for encoding SOAP 1.1 and SOAP 1.2 faults.
    The <kw>[Action]</kw> property below MUST be used for faults
    defined in this specification:
   </p>

   <example>
    <eg>http://www.w3.org/2009/02/ws-evt/fault</eg>
   </example>
  
   <p>
    The definitions of faults in this section use the following properties:
   </p>
   
   <p>
    <kw>[Code]</kw> The fault code.<phrase/>
    <kw>[Subcode]</kw> The fault subcode.<phrase/>
    <kw>[Reason]</kw> The English language reason element.<phrase/>
    <kw>[Detail]</kw> The detail element. If absent, no detail element 
    is defined for the fault.<phrase/>
   </p>
   
   <p>
    For SOAP 1.2, the <kw>[Code]</kw> property MUST be either
    "Sender" or "Receiver". These properties are serialized
    into text XML as follows:
   </p>
   
   <table id="soapver" border="1">
    <tbody>
     <tr>
      <th> SOAP Version </th>
      <th> Sender </th>
      <th> Receiver </th>
     </tr>
     <tr>
      <td> SOAP 1.2 </td>
      <td> s12:Sender </td>
      <td> s12:Receiver </td>
     </tr>
    </tbody>
   </table>
   
   <p>The properties above bind to a SOAP 1.2 fault as follows:</p>
   <example>
    <eg>&lt;s12:Envelope&gt;
  &lt;s12:Header&gt;
    &lt;wsa:Action&gt; <kw>[Action]</kw> &lt;/wsa:Action&gt;
    &lt;!-- Headers elided for brevity. --&gt;
  &lt;/s12:Header&gt;
  &lt;s12:Body&gt;
    &lt;s12:Fault&gt;
      &lt;s12:Code&gt;
        &lt;s12:Value&gt;<kw>[Code]</kw>&lt;/s12:Value&gt;
        &lt;s12:Subcode&gt;
          &lt;s12:Value&gt;<kw>[Subcode]</kw>&lt;/s12:Value&gt;
        &lt;/s12:Subcode&gt;
      &lt;/s12:Code&gt;
      &lt;s12:Reason&gt;
        &lt;s12:Text xml:lang="en"&gt;<kw>[Reason]</kw>&lt;/s12:Text&gt;
      &lt;/s12:Reason&gt;
      &lt;s12:Detail&gt;
        <kw>[Detail]</kw>
        ...
      &lt;/s12:Detail&gt;
    &lt;/s12:Fault&gt;
  &lt;/s12:Body&gt;
&lt;/s12:Envelope&gt;</eg>
   </example>
   
   <p>The properties bind to a SOAP 1.1 fault as follows:</p>
   <example>
    <eg>&lt;s11:Envelope&gt;
  &lt;s11:Body&gt;
    &lt;s11:Fault&gt;
      &lt;faultcode&gt;<kw>[Subcode]</kw>&lt;/faultcode&gt;
      &lt;faultstring xml:lang="en"&gt;<kw>[Reason]</kw>&lt;/faultstring&gt;
      &lt;detail&gt;
        <kw>[Detail]</kw>
        ...
      &lt;/detail&gt;
    &lt;/s11:Fault&gt;
  &lt;/s11:Body&gt;
&lt;/s11:Envelope&gt;</eg>
   </example>

   <div2 id="FaultDetailRetryElement">
    <head>Fault Detail RetryAfter Element</head>
    <p>
     The following element is used to convey additional information in 
     the faults.
    </p>
    
    <glist>   
     <gitem>
      <label> /wse:RetryAfter</label>
      <def>
       <p>
        This element (whose content is of type xs:unsignedLong) is a suggested 
        minimum duration in milliseconds to wait before retransmitting the message. 
        Omission of this element indicates that a retry is never likely to succeed.
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:RetryAfter/@any</label>
      <def>
       <p>
        Optional extensibility attributes that do not affect processing.
       </p>
      </def>
     </gitem>
     </glist>  
  
   </div2>
   
   <div2 id="InvalidExpirationTime">
    <head>InvalidExpirationTime</head>

    <p>
     This fault is generated when a Subscribe request specifies an
     expiration time that is in the past or an expiration duration of
     zero.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:InvalidExpirationTime</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>The expiration time requested is invalid.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td><emph>none</emph></td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="UnsupportedExpirationType">
    <head>UnsupportedExpirationType</head>

    <p>
     This fault is generated when a Subscribe request specifies an
     expiration time and the event source is only capable of accepting
     expiration durations; for instance, if the event source does not
     have access to absolute time.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:UnsupportedExpirationType</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>Only expiration durations are supported.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td><emph>none</emph></td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="FilteringNotSupported">
    <head>FilteringNotSupported</head>

    <p>
     This fault is generated when a Subscribe request contains a filter
     and the event source does not support filtering.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:FilteringNotSupported</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>Filtering is not supported.</td>
      </tr>

      <tr>
        <td><kw>[Detail]</kw></td>
        <td><emph>none</emph></td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="FilteringRequestedUnavailable">
    <head>FilteringRequestedUnavailable</head>

    <p>
     This fault is generated when a Subscribe request specifies a filter
     dialect that the event source does not support. Optionally, this
     fault MAY contain a list of supported filter dialect URIs in the
     Detail property.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:FilteringRequestedUnavailable</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>The requested filter dialect is not supported.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td>
        &lt;wse:SupportedDialect&gt; + 
        <phrase/>
        <emph>Optional; one per filter dialect supported by the
        receiver</emph>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="SubscribeRequestInvalid">
    <head>SubscribeRequestInvalid</head>

    <p>
     This fault is generated when the event source is not capable of
     fulfilling a Subscribe request due to the content of the Subscribe
     request message.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Receiver</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:SubscribeRequestInvalid</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>
        <emph>Text explaining the failure.</emph>
       </td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td></td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="EventSourceUnableToProcess">
    <head>EventSourceUnableToProcess</head>

    <p>
     This fault is generated when the event source is not capable of
     fulfilling a Subscribe request for local reasons unrelated to the
     specific request.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Receiver</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:EventSourceUnableToProcess</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>
        <emph>Text explaining the failure; e.g., "The event
        source has too many subscribers".</emph>
       </td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td>
       &lt;wse:RetryAfter&gt; ? 
       <emph>(Optional)</emph>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="UnableToRenew">
    <head>UnableToRenew</head>

    <p>
     This fault is generated when the event source is not capable of
     fulfilling a Renew request for local reasons unrelated to the
     specific request.
    </p>

    <table border="1">
    <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Receiver</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:UnableToRenew</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>
        <emph>Text explaining the failure; e.g., "The event
        source has too many subscribers".</emph>
       </td>
      </tr>
      <tr>
       <td><kw>[Detail]</kw></td>
       <td>
        &lt;wse:RetryAfter&gt; ? 
        <emph>(Optional)</emph>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>
   
   <div2 id="InvalidMessage">
    <head>InvalidMessage</head>

    <p>
     If a request message does not comply with the corresponding
     outline listed above, the request MUST fail and the event source
     or subscription manager MUST generate the following fault
     indicating that the request is invalid:
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:InvalidMessage</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>The message is not valid and cannot be processed.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td><emph>The invalid message</emph></td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="DeliveryFormatRequestedUnavailable">
    <head>DeliveryFormatRequestUnavailable</head>

    <p>
     This fault is generated when a Subscribe request specifies a delivery 
     format that is not supported by the event source. Optionally, this 
     fault MAY contain a list of supported delivery format URIs in the 
     Detail property.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:DeliveryFormatRequestedUnavailable</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>The requested delivery format is not supported.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td>
        &lt;wse:SupportedDeliveryFormat> +
        <phrase/>
        <emph> Optional, one per delivery format supported by the receiver.</emph>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="EmptyFilter">
    <head>EmptyFilter</head>

    <p>
     This fault MAY be generated when an Event Source detects a 
     wse:Subscribe request containing a filter that, for whatever 
     reason, will never evaluate to true.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:EmptyFilter</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>The wse:Filter would result in zero Notifications.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td>
        <emph> The wse:Filter value. </emph>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="UnusableEPR">
    <head>UnusableEPR</head>

    <p>
     This fault MAY be generated when an Event Source detects 
     that the wse:NotifyTo or wse:EndTo EPR is unusable.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <td><kw>[Code]</kw></td>
       <td>s12:Sender</td>
      </tr>

      <tr>
       <td><kw>[Subcode]</kw></td>
       <td>wse:UnusableEPR</td>
      </tr>

      <tr>
       <td><kw>[Reason]</kw></td>
       <td>An EPR in the Subscribe request message is unusable.</td>
      </tr>

      <tr>
       <td><kw>[Detail]</kw></td>
       <td>
        <emph> The specific EPR that generated the error and why. </emph>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

  </div1>

  <div1 id="Security">
   <head>Security Considerations</head>

   <div2 id="MessageSecurity">
    <head>Message Security</head>

    <p>
     It is strongly RECOMMENDED that the communication between
     services be secured using the mechanisms described in WS-Security
     <bibref ref="WSSecurity"/>. In order to properly
     secure messages, the body and all relevant headers need to be
     included in the signature. Specifically, any headers identified
     in the <code>&lt;wse:NotifyTo&gt;</code> element and standard
     messaging headers, such as those from WS-Addressing 
     <bibref ref="AddrCore"/>, need to be signed with the
     body in order to "bind" the two together. For messages with empty
     bodies, the <code>&lt;s12:Body&gt;</code> element SHOULD be
     signed so content cannot be added in transit.
    </p>

    <p>
     Different security mechanisms MAY be desired depending on the
     frequency of messages. For example, for infrequent messages,
     public key technologies MAY be adequate for integrity and
     confidentiality. However, for high-frequency events, it MAY be
     more performant to establish a security context for the events
     using the mechanisms described in WS-Trust 
     <bibref ref="WSTrust"/> and WS-SecureConversation 
     <bibref ref="WSSecureConversation"/>.
    </p>

    <p>
     Note that if a shared secret is used it is
     RECOMMENDED that derived keys be used to strengthen the secret as
     described in WS-SecureConversation.
    </p>

    <p>
     The following list summarizes common classes of attacks that
     apply to this protocol and identifies the mechanism to
     prevent/mitigate the attacks:
    </p>

    <ulist>
     <item>
      <p>
        Message alteration  - Alteration is
       prevented by including signatures of the message information
       using WS-Security.
      </p>
     </item>

     <item>
      <p>
        Message disclosure  -
       Confidentiality is preserved by encrypting sensitive data
       using WS-Security.
      </p>
     </item>

     <item>
      <p>
        Key integrity  - Key integrity is
       maintained by using the strongest algorithms possible (by
       comparing secured policies - see WS-Policy 
       <bibref ref="WSPolicy"/> and WS-SecurityPolicy 
       <bibref ref="WSSecurityPolicy"/>).
      </p>
     </item>

     <item>
      <p>
        Authentication  - Authentication is
       established using the mechanisms described in WS-Security and
       WS-Trust. Each message is authenticated using the mechanisms
       described in WS-Security.
      </p>
     </item>

     <item>
      <p>
        Accountability  - Accountability is
       a function of the type of and string of the key and
       algorithms being used. In many cases, a strong symmetric key
       provides sufficient accountability. However, in some
       environments, strong PKI signatures are required.
      </p>
     </item>

     <item>
      <p>
        Availability  - All reliable
       messaging services are subject to a variety of availability
       attacks. Replay detection is a common attack and it is
       RECOMMENDED that this be addressed by the mechanisms
       described in WS-Security. Other attacks, such as
       network-level denial of service attacks are harder to avoid
       and are outside the scope of this specification. That said,
       care SHOULD be taken to ensure that minimal state is saved
       prior to any authenticating sequences.
      </p>
     </item>

     <item>
      <p>
        Replay  - Messages might be replayed
       for a variety of reasons. To detect and eliminate this
       attack, mechanisms SHOULD be used to identify replayed
       messages such as the timestamp/nonce outlined in WS-Security.
       Alternatively, and optionally, other technologies, such as
       sequencing, can also be used to prevent replay of application
       messages.
      </p>
     </item>
    </ulist>
   </div2>

   <div2 id="AccessControl">
    <head>Access Control</head>

    <p>
     It is important for event sources to properly authorize
     requests. This is especially true for Subscribe requests, as
     otherwise the ability to subscribe on behalf of a third-party
     event sink could be used to create a distributed
     denial-of-service attack.
    </p>

    <p>
     Some possible schemes for validating Subscribe requests
     include:
    </p>

    <ulist>
     <item>
      <p>
       Send a message to the event sink that describes the
       requested subscription, and then wait for a confirmation
       message to be returned by the event sink, before the event
       source accepts the subscription request. While this provides
       strong assurance that the event sink actually desires the
       requested subscription, it does not work for event sinks that
       are not capable of sending a confirmation, and requires
       additional logic on the event sink.
      </p>
     </item>

     <item>
      <p>
       Require user authentication on the Subscribe request, and
       allow only authorized users to Subscribe.
      </p>
     </item>
    </ulist>

    <p>
     Other mechanisms are also possible. Note that event sources
     that are not reachable from the Internet have less need to
     control Subscribe requests.
    </p>
   </div2>

  </div1>

  <div1 id="ImplConsideration">
   <head>Implementation Considerations</head>

   <p>
    Implementations SHOULD generate expirations in subscribe and
    renew request and response messages that are significantly larger
    than expected network latency.
   </p>

   <p>
    Event sinks SHOULD be prepared to receive notifications after
    sending a subscribe request but before receiving a subscribe
    response message. Event sinks SHOULD also be prepared to receive
    notifications after receiving an unsubscribe response
    message.
   </p>
  </div1>

  <div1 id="policy">
   <head>WS-Eventing Policy Assertion(s)</head>

   <p>
    An endpoint MAY indicate that it supports WS-Eventing, or its features, 
    by including the WS-Eventing Policy assertion(s) within its WSDL. By 
    doing so the endpoint is indicating that the corresponding WS-Eventing 
    operations are supported by that endpoint even though they do not 
    explicitly appear in its WSDL.
   </p>
  </div1>
  
  <div1 id="acks">
   <head>Acknowledgements</head>

   <p>
    This specification has been developed as a result of joint
    work with many individuals and teams, including: 
      Ashok Malhotra (Oracle Corp.),
      Asir Vedamuthu (Microsoft Corp.),
      Bob Freund (Hitachi, Ltd.),
      Doug Davis (IBM),
      Fred Maciel (Hitachi, Ltd.),
      Geoff Bullen (Microsoft Corp.),
      Gilbert Pilz (Oracle Corp.),
      Greg Carpenter (Microsoft Corp.),
      Jeff Mischkinsky (Oracle Corp.),
      Katy Warr (IBM),
      Li Li (Avaya Communications),
      Mark Little (Red Hat),
      Prasad Yendluri (Software AG),
      Ram Jeyaraman (Microsoft Corp.),
      Sreedhara Narayanaswamy (CA),
      Sumeet Vij (Software AG),
      Vikas Varma (Software AG),
      Wu Chou (Avaya Communications),
      Yves Lafon (W3C)
   </p>
  </div1>

  <div1 id="refs">
   <head>References</head>

   <blist>
    <bibl key="RFC2119" id="RFC2119"
     href="http://www.ietf.org/rfc/rfc2119.txt">
      <titleref>
       Key words for use in RFCs to Indicate Requirement Levels
      </titleref>
      , S. Bradner, March 1997.
    </bibl>

    <bibl id="RFC3986" key="RFC 3986"
     href="http://www.ietf.org/rfc/rfc3986.txt">
      <titleref>
       Uniform Resource Identifier (URI): Generic Syntax
      </titleref>
     , T. Berners-Lee, W3C/MIT, January 2005.
    </bibl>

    <bibl id="RFC3987" key="RFC 3987"
     href="http://www.ietf.org/rfc/rfc3987.txt">
      <titleref>
       Internationalized Resource Identifiers (IRIs)
      </titleref>
     , M. Duerst, January 2005.
    </bibl>

    <bibl key="SOAP 1.1" id="SOAP11"
     href="http://www.w3.org/TR/2000/NOTE-SOAP-20000508/">
      <titleref>
       Simple Object Access Protocol (SOAP) 1.1
      </titleref>
      , D. Box, et al, May 2000.
    </bibl>

    <bibl key="SOAP 1.2" id="SOAP121"
     href="http://www.w3.org/TR/2003/REC-soap12-part1-20030624/">
      <titleref>
       SOAP Version 1.2 Part 1: Messaging Framework
      </titleref>
      , M. Gudgin, et al, June 2003.
    </bibl>

    <bibl key="WS-Addressing" id="AddrCore"
     href="http://www.w3.org/2005/08/addressing/">
      <titleref>
       W3C Recommendation, "Web Services Addressing 1.0 (WS-Addressing)"
      </titleref>
      , May 2006.
    </bibl>

    <bibl key="WS-Addressing 1.0 SOAP Binding" id="WSABinding"
     href="http://www.w3.org/TR/2006/REC-ws-addr-soap-20060509">
      <titleref>
       W3C Recommendation, "Web Services Addressing 1.0 - SOAP Binding"
      </titleref>
      , May 2006.
    </bibl>

    <bibl key="WS-MakeConnection" id="WSMC"
     href="http://docs.oasis-open.org/ws-rx/wsmc/200702">
      <titleref>
       Web Services Make Connection (WS-MakeConnection)
      </titleref>
      , February 2009.
    </bibl>

    <bibl key="WS-MetadataExchange" id="MEX"
     href="http://www.w3.org/2009/02/ws-mex">
      <titleref>
       Web Services Metadata Exchange (WS-MetadataExchange)
      </titleref>
      , K. Ballinger, et al, September 2004.
    </bibl>

    <bibl key="WS-Policy" id="WSPolicy"
     href="http://www.w3.org/TR/ws-policy/">
      <titleref>
       W3C Recommendation, "Web Services Policy 1.5 - Framework"
      </titleref>
      , September 2007.
    </bibl>

    <bibl key="WS-ReliableMessaging" id="WSReliableMessaging"
     href="http://schemas.xmlsoap.org/ws/2005/02/rm">
      <titleref>
       Web Services Reliable Messaging Protocol (WS-ReliableMessaging)
      </titleref>
      , R. Bilorusets, et al, February 2005.
    </bibl>

    <bibl key="WS-SecureConversation" id="WSSecureConversation"
     href="http://schemas.xmlsoap.org/ws/2005/02/sc">
      <titleref>
       Web Services Secure Conversation Language (WS-SecureConversation)
      </titleref>
      , S. Anderson, et al, February 2005.
    </bibl>

    <bibl key="WS-Security" id="WSSecurity"
     href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0.pdf">
      <titleref>
       Web Services Security: SOAP Message Security 1.0
      </titleref>
      , A. Nadalin, et al, March 2004.
    </bibl>

    <bibl key="WS-SecurityPolicy" id="WSSecurityPolicy"
     href="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
      <titleref>
       Web Services Security Policy Language (WS-SecurityPolicy), Version 1.1
      </titleref>
      , G. Della-Libera, et al, July 2005.
    </bibl>

    <bibl key="WS-Trust" id="WSTrust"
     href="http://schemas.xmlsoap.org/ws/2005/02/trust">
      <titleref>
       Web Services Trust Language (WS-Trust)
      </titleref>
      , S. Anderson, et al, February 2005.
    </bibl>

    <bibl key="WSDL 1.1" id="WSDL11"
     href="http://www.w3.org/TR/2001/NOTE-wsdl-20010315">
      <titleref>
       Web Services Description Language (WSDL) 1.1
      </titleref>
      , E. Christensen, et al, March 2001.
    </bibl>

    <bibl key="XML Infoset" id="XMLInfoset"
     href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/">
      <titleref>
       XML Information Set
      </titleref>
      , J. Cowan, et al, February 2004.
    </bibl>

    <bibl key="XML Schema, Part 1" id="XMLSchema1"
     href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/">
      <titleref>
       XML Schema Part 1: Structures
      </titleref>
      , H. Thompson, et al, October 2004.
    </bibl>

    <bibl key="XML Schema, Part 2" id="XMLSchema2"
     href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">
      <titleref>
       XML Schema Part 2: Datatypes
      </titleref>
      , P. Biron, et al, October 2004.
    </bibl>

    <bibl key="XPath 1.0" id="XPath1"
     href="http://www.w3.org/TR/1999/REC-xpath-19991116">
      <titleref>
       XML Path Language (XPath) Version 1.0
      </titleref>
      , J. Clark, et al, November 1999.
    </bibl>
   </blist>
  </div1>
 </body>

 <back>
  <div1 id="Advertising">
   <head>Advertising Event Information</head>

   <p>
    There are many use cases for WS-Eventing in which it is necessary for the 
    Subscriber and the Event Sink to know the structure and contents of the 
    Notifications that can result from a successful Subscribe request. For 
    example, a developer might wish to use WSDL-based tools to generate 
    service stubs capable of marshalling and dispatching Notifications. In 
    addition to this, the effective use of filters (including those in the 
    XPath dialect defined in <specref ref="Subscribe"/> as well as other 
    dialects not defined in this specification) requires some knowledge of 
    the schema of the Events over which the filter will be applied. 
   </p>

   <p>
    There are many ways in which an Event Source could describe and 
    advertise the structure of the Events for which it will issue 
    Notifications. To provide a basic level of interoperability, this 
    specification defines the following two optional mechanisms, in 
    <specref ref="ETypes"/> and <specref ref="NWSDL"/>, for describing and 
    advertising Event information. If an implementation of a WS-Eventing 
    Event Source chooses to describe the structure of its Events and 
    advertise this description, it is RECOMMENDED that at least one of 
    these mechanisms be used. Mechanisms other than these MAY be used 
    to describe and advertise the structure of Events, but the definition 
    of such mechanisms is out of the scope of this specification. 
   </p>

   <div2 id="ETypes">
    <head>Event Types &amp; Event Descriptions</head>

    <p>
     A key concept in the description and advertisement of Event information 
     is the "Event Type". An Event Type is a description of the syntactic 
     structure and value space of the set of Events that share that type. 
     Event Types are independent of both the WS-Eventing protocol and the 
     format of the Notifications used to transmit those Events. For example, 
     the following Notification, although transmitted using the Wrapped 
     Notification Format defined in <specref ref="Subscribe"/>, has the same 
     Event Type as the Notification in <specref ref="Table13"/>: 
    </p>

    <example id="EDExample">
     <head>Hypothetical Wrapped Notification</head>
     <eg>(01) &lt;s12:Envelope xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
(02)               xmlns:wsa="http://www.w3.org/2005/08/addressing"
(03)               xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(04)               xmlns:ow="http://www.example.org/oceanwatch">
(05)   &lt;s12:Header>
(06)     &lt;wsa:Action>
(07)       http://www.w3.org/2009/02/ws-evt/wrap/GenericSinkPortType/NotifyEvent
(08)     &lt;/wsa:Action>
(09)     . . .
(10)   &lt;/s12:Header>
(11)   &lt;s12:Body>
(12)     &lt;wse:Notify actionURI="http://www.example.org/oceanwatch/2003/WindReport">
(13)       &lt;ow:WindReport>
(14)         &lt;ow:Date>030701&lt;/ow:Date>
(15)         &lt;ow:Time>0041&lt;/ow:Time>
(16)         &lt;ow:Speed>65&lt;/ow:Speed>
(17)         &lt;ow:Location>BRADENTON BEACH&lt;/ow:Location>
(18)         &lt;ow:County>MANATEE&lt;/ow:County>
(19)         &lt;ow:State>FL&lt;/ow:State>
(20)         &lt;ow:Lat>27.46&lt;/ow:Lat>
(21)         &lt;ow:Long>82.70&lt;/ow:Long>
(22)         &lt;ow:Comments xml:lang="en-US" >
(23)           WINDS 55 WITH GUSTS TO 65. ROOF TORN OFF BOAT HOUSE. REPORTED
(24)           BY STORM SPOTTER. (TBW)
(25)         &lt;/ow:Comments>
(26)       &lt;/ow:WindReport>
(27)     &lt;/wse:Notify>
(28)   &lt;/s12:Body>
(29) &lt;/s12:Envelope></eg>
    </example>

    <p>
     Event Types MAY be described within an EventDescriptions element where 
     they are defined by Global Element Declarations in XML Schema. The 
     EventDescriptions element has the following form: 
    </p>

    <example>
     <eg>&lt;wse:EventDescriptions targetNamespace="xs:anyURI" ...>
  &lt;wse:types>
    [ &lt;xs:import namespace="xs:anyURI" schemaLocation="xs:anyURI"/> ? |
      &lt;xs:schema targetNamespace="xs:anyURI"/> ?] *
    xs:any *
  &lt;/wse:types>
  &lt;wse:eventType name="xs:NCName" element="xs:QName" actionURI="xs:anyURI" ...>
    xs:any *
  &lt;/wse:eventType> +
  xs:any *
&lt;/wse:EventDescriptions></eg>
    </example>

    <p>
     The XML Schema for the EventDesciptions element can be found in 
     <specref ref="EDXSD"/>. The following describes additional, normative 
     constraints on the outlined listed above: 
    </p>

    <glist>
     <gitem>
      <label> /wse:EventDescription </label>
      <def>
       <p>
        This element contains the declarations of all the Event Types that 
        apply to a given context, such as a particular Event Source. 
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:EventDescription@targetNamespace </label>
      <def>
       <p>
        This attribute defines the namespace affiliation of the Event Types 
        declared within the EventDescriptions element. Its value MUST be an 
        absolute IRI <bibref ref="RFC3987"/>. It MAY be dereferenceable. 
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:EventDescriptions/wse:types </label>
      <def>
       <p>
        As described earlier, an Event Type is defined by a Global Element 
        Declaration (GED) in XML Schema. This element contains collections 
        of imported and inlined schema components that describe the GEDs 
        that are used to define Event Types. 
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:EventDescriptions/wse:eventType </label>
      <def>
       <p>
        This element describes a specific Event Type.
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:EventDescriptions/wse:eventType/@name </label>
      <def>
       <p>
        This attribute provides a unique name for this Event Type amongst 
        all the Event Types defined by the enclosing wse:EventDescriptions 
        element. In conjunction with a Prefix that is associated with the 
        value of /wse:EventDescriptions/@targetNamespace namespace URI, the 
        value of this attribute MAY be used as the LocalPart of a QName 
        that identifies this Event Type outside the context of the 
        enclosing wse:EventDescriptions element. 
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:EventDescriptions/wse:eventType/@element </label>
      <def>
       <p>
        This attribute refers to a GED defined or imported in the 
        /wse:EventDescriptions/wse:types element. The referenced GED 
        serves as the definition of this Event Type.
       </p>
      </def>
     </gitem>
     <gitem>
      <label> /wse:EventDescriptions/wse:eventType/@actionURI </label>
      <def>
       <p>
        This attribute provides a value for the various 'action' properties 
        and attributes which, depending upon the format of the Notification 
        used to transmit the Event, serve as a potential aide to 
        identifying the semantics implied by the message. 
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>
     The following is an example of an EventDescriptions element that could 
     serve as a description of the Event Type used in 
     <specref ref="Table1"/> and <specref ref="EDExample"/>. 
    </p>

    <example>
     <head>EventDescriptions</head>
     <eg>(01) &lt;wse:EventDescriptions 
(02)        targetNamepace="http://www.example.org/oceanwatch/notifications"
(03)        xmlns:wse="http://www.w3.org/2009/02/ws-evt"
(04)        xmlns:ow="http://www.example.org/oceanwatch">
(05)   &lt;wse:types>
(06)     &lt;xs:schema targetNamepace="http://www.example.org/oceanwatch">
(07)       &lt;xs:include schemaLocation="http://www.example.org/schemas/oceanwatch.xsd"/>
(08)       &lt;xs:element name="WindReport" type="ow:WindReportType"/>
(09)     &lt;/xs:schema>
(10)   &lt;/wse:types>
(11)
(12)   &lt;wse:eventType name="WindReportEvent"
(13)                  element="ow:WindReport"
(14)                  actionURI="http://www.example.org/oceanwatch/2003/WindReport"/>
(15) &lt;/wsem:EventDescriptions></eg>
    </example>

    <p>
     Lines (12-14) describe an Event Type with a QName of 
     "{http://www.example.org/oceanwatch/notifications}:WindReportEvent". The 
     GED for this Event Type is defined on line (08) as being of type 
     "{http://www.example.org/oceanwatch}:WindReportType". 
    </p>

    <div3>
     <head>Retrieving Event Descriptions</head>
     <p>
      Although there are many ways in which an Event Source can make its 
      EventDescriptions available, this specification RECOMMENDS the use of 
      the mechanisms described in WS-MetadataExchange <bibref ref="MEX"/>.
      This specification defines the following URI to serve as the Dialect 
      URI for the wse:EventDescriptions element. 
     </p>

     <example>
      <eg>http://www.w3.org/2009/02/ws-evt/EventDescriptions</eg>
     </example>

     <p>
      The value of the @Identifier attribute for this Metadata Section MUST 
      be equal to the value of its wse:EventDescriptions/@targetNamespace. An 
      Event Source MUST NOT have more than one EventDescriptions document.
     </p>
    </div3>

    <div3>
     <head>Bindings for Event Descriptions</head>
     <p>
      For any Notification Format it SHOULD be possible to determine how a 
      given wse:eventType will appear on the wire as a Notification in a 
      Subscription created with that format. The following sections define 
      how wse:eventTypes bind to Notifications for the two Notification 
      Formats defined in this specification; Unwrapped and Wrapped. 
      Specifications or profiles that define additional Notification Formats 
      SHOULD define how wse:eventTypes bind to the Notifications for those 
      formats. In the absence of a mapping for a particular Notification 
      Format, implementations MAY provide a Notification WSDL (see below) 
      that explicitly describes the Notification operations. 
     </p>

     <div4>
      <head>Binding for Unwrapped Notifications</head>
      <p>
       The information about an Event Type contained in the wse:eventType 
       element binds to a Unwrapped Notification for that type as follows:
      </p>

      <ulist>
       <item>
        <p>
         The <kw>[Action]</kw> property of the Notification has the value of 
         the actionURI attribute of the wse:eventType element 
         corresponding to the type of the Event being transmitted.
        </p>
       </item>
       <item>
        <p>
         The <kw>[Body]</kw> property of the Notification
         has a single child element. This child element is an instance of 
         the Global Element Declaration referenced by the element attribute 
         of the wse:eventType element corresponding to the type of the 
         Event being transmitted.
        </p>
       </item>
      </ulist>
     </div4>

     <div4>
      <head>Binding for Wrapped Notifications</head>
      <p>
       The information about an Event Type contained in the eventType element 
       binds to a Wrapped Notification for that type as follows: 
      </p>

      <ulist>
       <item>
        <p>
         The /soap:Envelope/soap:Body/wse:Notify/@actionURI attribute of the 
         Wrapped Notification has the value of the actionURI attribute of 
         the eventType element corresponding to the type of the Event 
         being transmitted. 
        </p>
       </item>
       <item>
        <p>
         The /soap:Envelope/soap:Body/wse:Notify element has a single child 
         element. This child element is an instance of the Global Element 
         Declaration referenced by the element attribute of the eventType 
         element corresponding to the type of the Event being transmitted. 
        </p>
       </item>
      </ulist>
     </div4>

    </div3>
   </div2>

   <div2 id="NWSDL">
    <head>Notification WSDLs</head>

    <p>
     As described previously, Event Sources transmit Events to Event Sinks as 
     SOAP messages called "Notifications". These Notifications MAY be 
     described via a Web Services Description Language <bibref ref="WSDL11"/>
     definitions element termed a "Notification WSDL". A Notification WSDL 
     describes the interface that the Event Sink is required to implement to 
     receive and process the Notifications that might result from a 
     successful Subscribe request that used a particular Format URI. The 
     following is an example of a Notification WSDL: 
    </p>

    <example>
     <head>Notification WSDL</head>
     <eg>(01) &lt;wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
(02)                   targetNamespace="http://www.example.org/oceanwatch/notifications"
(03)                   xmlns:xs="http://www.w3.org/2001/XMLSchema"
(04)                   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
(05)                   xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
(06)                   xmlns:ow="http://www.example.org/oceanwatch"
(07)                   xmlns:tns="http://www.example.org/oceanwatch/notifications">
(08)   &lt;wsdl:types>
(09)     &lt;xs:schema targetNamepace="http://www.example.org/oceanwatch">
(10)       &lt;xs:include schemaLocation="http://www.example.org/schemas/oceanwatch.xsd"/>
(11)       &lt;xs:element name="WindReport" type="ow:WindReportType">
(12)     &lt;/xs:schema>
(13)   &lt;/wsdl:types>
(14)
(15)   &lt;wsdl:message name="WindReportNotificationMsg">
(16)     &lt;wsdl:part name="event" element="ow:WindReport"/>
(17)   &lt;/wsdl:message>
(18)
(19)   &lt;wsdl:portType name="WindReportPortType">
(20)     &lt;wsdl:operation name="WindReportNotificationOp">
(21)       &lt;wsdl:input message="tns:WindReportNotificationMsg"
(22)                  wsam:Action="http://www.example.org/oceanwatch/2003/WindReport"/>
(23)     &lt;/wsdl:operation>
(24)   &lt;/wsdl:portType>
(25)
(26)   &lt;wsdl:binding name="WindReportBinding" type="tns:WindReportPortType">
(27)     &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
(28)     &lt;wsdl:operation name="WindReportNotificationOp">
(29)       &lt;soap:operation soapAction=""/>
(30)       &lt;wsdl:input>
(31)         &lt;soap:body use="literal"/>
(32)       &lt;/wsdl:input>
(33)     &lt;/wsdl:operation>
(34)   &lt;/wsdl:binding>
(35) &lt;/wsdl:definitions></eg>
    </example>

    <div3>
     <head>Retrieving Notification WSDLs</head>
     <p>
      Although there are many ways in which an Event Source can make 
      Notification WSDLs available, this specification RECOMMENDS the use of 
      the mechanisms described in WS-MetadataExchange <bibref ref="MEX"/>.
      This specification defines the following URI to serve as the Dialect 
      URI for the Notification WSDL. 
     </p>

     <example>
      <eg>http://www.w3.org/2009/02/ws-evt/NotificationWSDL</eg>
     </example>

     <p>
      Because the Notification Format specified in a Subscribe request can 
      affect various aspects of the Notification WSDL, it is necessary to 
      correlate Notification WSDLs with their corresponding Notification 
      Formats. When using WS-MetadataExchange to transfer Notification WSDLs, 
      the corresponding Format URI for that Notification WSDL MUST be 
      represented via the @Identifier attribute. For any particular 
      Format URI/@Identifier, there MUST NOT exist more than one 
      Notification WSDL document. 
     </p>
    </div3>

   </div2>

   <div2>
    <head>Multiple Event Information Metadata Sections</head>
    <p>
     When WS-MetadataExchange is used to retrieve metadata about an Event 
     Source, recipients of mex:Metadata elements that contain Metadata 
     Sections with both the 
     "http://www.w3.org/2009/02/ws-evt/EventDescriptions" and 
     "http://www.w3.org/2009/02/ws-evt/NotificationWSDL" dialects MUST 
     regard these Metadata Sections as relating to the same set of Events. 
     In cases where the mex:Metadata element contains multiple 
     Notification WSDLs (i.e. multiple Metadata Sections with a @Dialect 
     of "http://www.w3.org/2009/02/ws-evt/NotificationWSDL"), recipients MUST 
     similarly regard these Notification WSDLs as relating to the same set 
     of Events although their Notification Formats differ. 
    </p>
   </div2>

  </div1>

  <div1 id="Schema">
   <head>XML Schema</head>

   <p>
    A normative copy of the XML Schema <bibref ref='XMLSchema1'/>,
    <bibref ref='XMLSchema2'/> description for this specification can be
    retrieved from the following address:
   </p>

   <example>
    <eg><loc href='http://www.w3.org/2009/02/ws-evt/eventing.xsd'>http://www.w3.org/2009/02/ws-evt/eventing.xsd</loc></eg>
   </example>

   <p>
    A non-normative copy of the XML schema is listed below for
    convenience.
   </p>

   <example>
    <eg>&lt;xs:schema 
  targetNamespace="http://www.w3.org/2009/02/ws-evt" 
  xmlns:tns="http://www.w3.org/2009/02/ws-evt"
  xmlns:wsa="http://www.w3.org/2005/08/addressing"
  xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  elementFormDefault="qualified" 
  blockDefault="#all"&gt;
  
  &lt;xs:import 
    namespace="http://www.w3.org/XML/1998/namespace" 
    schemaLocation="http://www.w3.org/2001/xml.xsd" /&gt;
  &lt;xs:import
    namespace="http://www.w3.org/2005/08/addressing"
    schemaLocation="http://www.w3.org/2005/08/addressing/ws-addr.xsd" /&gt;
 
  &lt;!-- Types and global elements --&gt;
  &lt;xs:complexType name="DeliveryType" mixed="true"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element ref="tns:NotifyTo" minOccurs="0" maxOccurs="1" /&gt;
      &lt;xs:any namespace="##other" processContents="lax" 
              minOccurs="0" maxOccurs="unbounded" /&gt;
    &lt;/xs:sequence&gt;
    &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
  &lt;/xs:complexType&gt;
 
  &lt;xs:complexType name="FormatType" mixed="true"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:any namespace="##any" processContents="lax" 
              minOccurs="0" maxOccurs="unbounded" /&gt;
    &lt;/xs:sequence&gt;
    &lt;xs:attribute name="Name" type="xs:anyURI" use="optional" 
      default="http://http://www.w3.org/2009/02/ws-evt/DeliveryFormats/Unwrap" /&gt;
    &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
  &lt;/xs:complexType&gt;
 
  &lt;xs:simpleType name="NonNegativeDurationType"&gt;
    &lt;xs:restriction base="xs:duration"&gt;
      &lt;xs:minInclusive value="P0Y0M0DT0H0M0S" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
 
  &lt;xs:simpleType name="ExpirationType"&gt;
      &lt;xs:union memberTypes="xs:dateTime 
                tns:NonNegativeDurationType" /&gt;
  &lt;/xs:simpleType&gt;
 
  &lt;xs:complexType name="FilterType" mixed="true"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:any namespace="##other" processContents="lax" 
              minOccurs="0" maxOccurs="unbounded" /&gt;
    &lt;/xs:sequence&gt;
    &lt;xs:attribute name="Dialect" type="xs:anyURI" use="optional" 
      default="http://www.w3.org/2009/02/ws-evt/Dialects/XPath10" /&gt;
    &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
  &lt;/xs:complexType&gt;
 
  &lt;xs:complexType name="LanguageSpecificStringType"&gt;
    &lt;xs:simpleContent&gt;
      &lt;xs:extension base="xs:string"&gt;
        &lt;xs:attribute ref="xml:lang" /&gt;
        &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;
 
  &lt;xs:element name="NotifyTo" type="wsa:EndpointReferenceType" /&gt;
 
  &lt;!-- Subscribe request --&gt;
  &lt;xs:element name="Subscribe"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="EndTo" type="wsa:EndpointReferenceType" 
                    minOccurs="0" /&gt;
        &lt;xs:element name="Delivery" type="tns:DeliveryType" /&gt;
        &lt;xs:element name="Format" type="tns:FormatType" 
                    minOccurs="0" /&gt;
        &lt;xs:element name="Expires" type="tns:ExpirationType" 
                    minOccurs="0" /&gt;
        &lt;xs:element name="Filter" type="tns:FilterType" 
                    minOccurs="0" /&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- Subscribe response --&gt;
  &lt;xs:element name="SubscribeResponse"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="SubscriptionManager" 
                    type="wsa:EndpointReferenceType" /&gt;
        &lt;xs:element name="Expires" type="tns:ExpirationType" /&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- Used in a fault if there's an unsupported dialect --&gt;
  &lt;xs:element name="SupportedDialect" type="xs:anyURI" /&gt;
 
  &lt;!-- Used in a fault if there's an unsupported format name --&gt;
  &lt;xs:element name="SupportedDeliveryFormat" type="xs:anyURI" /&gt;
 
  &lt;!-- Renew request --&gt;
  &lt;xs:element name="Renew"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Expires" type="tns:ExpirationType" 
                    minOccurs="0" /&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- Renew response --&gt;
  &lt;xs:element name="RenewResponse"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Expires" type="tns:ExpirationType" 
                    minOccurs="0" /&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- GetStatus request --&gt;
  &lt;xs:element name="GetStatus"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- GetStatus response --&gt;
  &lt;xs:element name="GetStatusResponse"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Expires" type="tns:ExpirationType" 
                    minOccurs="0" /&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- Unsubscribe request --&gt;
  &lt;xs:element name="Unsubscribe"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- Unsubscribe response --&gt;
  &lt;xs:element name="UnsubscribeResponse"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;!-- SubscriptionEnd message --&gt;
  &lt;xs:element name="SubscriptionEnd"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Status"
                    type="tns:OpenSubscriptionEndCodeType" /&gt;
        &lt;xs:element name="Reason" 
                    type="tns:LanguageSpecificStringType" 
                    minOccurs="0" maxOccurs="unbounded" /&gt;
        &lt;xs:any namespace="##other" processContents="lax" 
                minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
 
  &lt;xs:simpleType name="SubscriptionEndCodeType"&gt;
    &lt;xs:restriction base="xs:anyURI"&gt;
      &lt;xs:enumeration value=
  "http://www.w3.org/2009/02/ws-evt/DeliveryFailure" /&gt;
      &lt;xs:enumeration value=
  "http://www.w3.org/2009/02/ws-evt/SourceShuttingDown" /&gt;
      &lt;xs:enumeration value=
  "http://www.w3.org/2009/02/ws-evt/SourceCancelling" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
 
  &lt;xs:simpleType name="OpenSubscriptionEndCodeType"&gt;
    &lt;xs:union memberTypes="tns:SubscriptionEndCodeType xs:anyURI" /&gt;
  &lt;/xs:simpleType&gt;
    
  &lt;!-- RetryAfter Fault Detail Element --&gt;
  &lt;xs:element name="RetryAfter"  type="tns:RetryAfterType"/&gt;
  &lt;xs:complexType name="RetryAfterType"&gt;
    &lt;xs:simpleContent&gt;
      &lt;xs:extension base="xs:nonNegativeInteger"&gt;
        &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;
     
  &lt;xs:attribute name="EventSource" type="xs:boolean" /&gt;

  &lt;!-- Wrapped Events --&gt;
  &lt;xs:complexType name="EventType" mixed="true"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:any namespace="##any" processContents="lax" minOccurs="0"
              maxOccurs="unbounded"/&gt;
    &lt;/xs:sequence&gt;
    &lt;xs:attribute name="actionURI" type="xs:anyURI" use="optional" /&gt;
    &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="Notify" type="tns:EventType" /&gt;

&lt;/xs:schema&gt; </eg>
   </example>
  </div1>

  <div1 id="WSDL">
   <head>WSDL</head>

   <p>
    A normative copy of the WSDL <bibref ref="WSDL11"/>
    description can be retrieved from the following address:
   </p>

   <example>
    <eg><loc href="http://www.w3.org/2009/02/ws-evt/eventing.wsdl">http://www.w3.org/2009/02/ws-evt/eventing.wsdl</loc></eg>
   </example>

   <p>
    A non-normative copy of the WSDL description is listed below
    for convenience.
   </p>

   <example>
    <eg>&lt;wsdl:definitions
  targetNamespace="http://www.w3.org/2009/02/ws-evt"
  xmlns:wsa="http://www.w3.org/2005/08/addressing"
  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
  xmlns:wse="http://www.w3.org/2009/02/ws-evt" 
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema" &gt;

  &lt;wsdl:types&gt;
    &lt;xs:schema&gt;
       &lt;xs:import
         namespace="http://www.w3.org/2009/02/ws-evt"
         schemaLocation=
  "http://www.w3.org/2009/02/ws-evt/eventing.xsd" /&gt;
    &lt;/xs:schema&gt;
  &lt;/wsdl:types&gt;
  
  &lt;wsdl:message name="SubscribeMsg" &gt;
    &lt;wsdl:part name="body" element="wse:Subscribe" /&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="SubscribeResponseMsg" &gt;
    &lt;wsdl:part name="body" element="wse:SubscribeResponse" /&gt;
  &lt;/wsdl:message&gt;
  
  &lt;wsdl:message name="RenewMsg" &gt;
    &lt;wsdl:part name="body" element="wse:Renew" /&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="RenewResponseMsg" &gt;
    &lt;wsdl:part name="body" element="wse:RenewResponse" /&gt;
  &lt;/wsdl:message&gt;
  
  &lt;wsdl:message name="GetStatusMsg" &gt;
    &lt;wsdl:part name="body" element="wse:GetStatus" /&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="GetStatusResponseMsg" &gt;
    &lt;wsdl:part name="body" element="wse:GetStatusResponse" /&gt;
  &lt;/wsdl:message&gt;
  
  &lt;wsdl:message name="UnsubscribeMsg" &gt;
    &lt;wsdl:part name="body" element="wse:Unsubscribe" /&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="UnsubscribeResponseMsg" &gt;
    &lt;wsdl:part name="body" element="wse:UnsubscribeResponse" /&gt;
  &lt;/wsdl:message&gt;
 
  &lt;wsdl:message name="SubscriptionEnd" &gt;
    &lt;wsdl:part name="body" element="wse:SubscriptionEnd" /&gt;
  &lt;/wsdl:message&gt;

  &lt;message name="notifyEvent"&gt;
    &lt;part name="parameter" element="tns:Notify"/&gt;
  &lt;/message&gt;
  
  &lt;wsdl:portType name="EventSource" &gt;
    &lt;wsdl:operation name="SubscribeOp" &gt;
      &lt;wsdl:input 
        message="wse:SubscribeMsg"
        wsam:Action="http://www.w3.org/2009/02/ws-evt/Subscribe"/&gt;
      &lt;wsdl:output 
        message="wse:SubscribeResponseMsg" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/SubscribeResponse"/&gt;
    &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  
  &lt;wsdl:portType name="SubscriptionEndPortType" &gt;
    &lt;wsdl:operation name="SubscriptionEnd" &gt;
      &lt;wsdl:input 
        message="wse:SubscriptionEnd" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/SubscriptionEnd"/&gt;
    &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  
  &lt;wsdl:portType name="SubscriptionManager" &gt;
    &lt;wsdl:operation name="RenewOp" &gt;
      &lt;wsdl:input 
        message="wse:RenewMsg" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/Renew"/&gt;
      &lt;wsdl:output 
        message="wse:RenewResponseMsg" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/RenewResponse"/&gt;
    &lt;/wsdl:operation&gt;
    &lt;wsdl:operation name="GetStatusOp" &gt;
      &lt;wsdl:input 
        message="wse:GetStatusMsg"
        wsam:Action="http://www.w3.org/2009/02/ws-evt/GetStatus"/&gt;
      &lt;wsdl:output 
        message="wse:GetStatusResponseMsg" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/GetStatusResponse"/&gt;
    &lt;/wsdl:operation&gt;
    &lt;wsdl:operation name="UnsubscribeOp" &gt;
      &lt;wsdl:input 
        message="wse:UnsubscribeMsg" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/Unsubscribe"/&gt;
      &lt;wsdl:output 
        message="wse:UnsubscribeResponseMsg" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/UnsubscribeResponse"/&gt;
    &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;

  &lt;portType name="WrappedSinkPortType"&gt;
    &lt;operation name="NotifyEvent"&gt;
      &lt;input message="tns:notifyEvent" name="NotifyEvent" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/WrappedSinkPortType/NotifyEvent"/&gt;
    &lt;/operation&gt;
  &lt;/portType&gt;
&lt;/wsdl:definitions&gt;</eg>
   </example>
  </div1>

  <div1 id="wrappedWSDL">
   <head>WSDL for Standard Wrapped Delivery</head>

   <p>
    If an Event Subscriber specifies the wrapped event delivery format
    http://www.w3.org/2009/02/ws-evt/DeliveryFormats/Wrap
    in the Subscribe request message, then the Event Sink MUST implement 
    the following abstract WSDL and the Event Source MUST send the 
    Notification messages wrapped in the element defined in the WSDL. 
   </p>

   <example>
    <eg>&lt;definitions 
  xmlns="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
  xmlns:wsa="http://www.w3.org/2005/08/addressing/"
  xmlns:tns="http://www.w3.org/2009/02/ws-evt" 
  targetNamespace="http://www.w3.org/2009/02/ws-evt"&gt;
  
  &lt;types&gt;
    &lt;xs:schema 
        targetNamespace="http://www.w3.org/2009/02/ws-evt"&gt;

      &lt;xs:complexType name="EventType" mixed="true"&gt; 
        &lt;xs:sequence&gt; 
          &lt;xs:any namespace="##any" processContents="lax" minOccurs="0"
                  maxOccurs="unbounded"/&gt; 
        &lt;/xs:sequence&gt; 
        &lt;xs:attribute name="actionURI" type="xs:anyURI" use="optional" /&gt; 
        &lt;xs:anyAttribute namespace="##other" processContents="lax" /&gt; 
      &lt;/xs:complexType&gt; 

      &lt;xs:element name="Notify" type="tns:EventType" /&gt;
    &lt;/xs:schema&gt;
  &lt;/types&gt;
  
  &lt;message name="notifyEvent"&gt;
    &lt;part name="parameter" element="tns:Notify"/&gt;
  &lt;/message&gt;
  
  &lt;portType name="WrappedSinkPortType"&gt;
    &lt;operation name="NotifyEvent"&gt;
      &lt;input message="tns:notifyEvent" name="NotifyEvent" 
        wsam:Action="http://www.w3.org/2009/02/ws-evt/WrappedSinkPortType/NotifyEvent"/&gt;
    &lt;/operation&gt;
  &lt;/portType&gt;
&lt;/definitions&gt;</eg>
   </example>

  </div1>

  <div1 id="EDXSD">
   <head>XML Schema for EventDescriptions</head>
   
   <p>
    A normative copy of the XML Schema <bibref ref='XMLSchema1'/>,
    <bibref ref='XMLSchema2'/> description for the EventDescriptions
    element can be retrieved from the following address:
   </p>

   <example>
    <eg><loc href='http://www.w3.org/2009/02/ws-evt/EventDescriptions.xsd'>http://www.w3.org/2009/02/ws-evt/EventDescriptions.xsd</loc></eg>
   </example>

   <p>
    A non-normative copy of the XML schema is listed below for
    convenience.
   </p>

   <example>
    <eg>&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.w3.org/2009/02/ws-evt"
           elementFormDefault="qualified" attributeFormDefault="unqualified">
  &lt;xs:element name="EventDescriptions">
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element name="types">
          &lt;xs:annotation>
            &lt;xs:documentation>Data type definitions that are relevant to described notifications.&lt;/xs:documentation>
          &lt;/xs:annotation>
          &lt;xs:complexType>
            &lt;xs:sequence>
              &lt;xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
            &lt;/xs:sequence>
            &lt;xs:anyAttribute namespace="##other" processContents="lax"/>
          &lt;/xs:complexType>
        &lt;/xs:element>
        &lt;xs:element name="eventType" maxOccurs="unbounded">
          &lt;xs:complexType>
            &lt;xs:sequence>
              &lt;xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
            &lt;/xs:sequence>
            &lt;xs:attribute name="name" type="xs:NCName" use="required"/>
            &lt;xs:attribute name="element" type="xs:QName" use="required"/>
            &lt;xs:attribute name="action" type="xs:anyURI" use="required"/>
            &lt;xs:anyAttribute namespace="##other" processContents="lax"/>
          &lt;/xs:complexType>
        &lt;/xs:element>
        &lt;xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
      &lt;/xs:sequence>
      &lt;xs:attribute name="targetNamespace" type="xs:anyURI" use="required"/>
      &lt;xs:anyAttribute namespace="##other" processContents="lax"/>
    &lt;/xs:complexType>
  &lt;/xs:element>
&lt;/xs:schema></eg>
   </example>
  </div1>

  <div1 id="changelog">
   <head>Change Log</head>

   <table border="1">
    <tbody>
     <tr>
      <th> Data </th>
      <th> Author </th>
      <th> Description </th>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6391">6391</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6519">6519</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6427">6427</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6459">6459</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/09 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6397">6397</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/09 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6426">6426</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/11 </td>
      <td> DD </td>
      <td> Added change log </td>
     </tr>
     <tr>
      <td> 2009/03/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6641">6641</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6498">6498</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6425">6425</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/16 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6587">6587</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/17 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6400">6400</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/17 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6428">6428</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/17 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6687">6687</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/23 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6666">6666</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/23 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6681">6681</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/24 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6595">6595</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/24 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6648">6648</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/07 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6727">6727</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/07 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6725">6725</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/07 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6715">6715</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/22 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6739">6739</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6787">6787</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6788">6788</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/13 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6472">6472</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/13 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6850">6850</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/13 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6696">6696</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/19 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6907">6907</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/19 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6429">6429</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/21 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6674">6674</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/27 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6906">6906</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/06/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6955">6955</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/06/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6916">6916</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/06/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6986">6986</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/07/07 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7039">7039</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/07/21 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6980">6980</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/07/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6692">6692</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7136">7136</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6432">6432</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7159">7159</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7205">7205</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/18 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7206">7206</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/25 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7365">7365</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/25 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7270">7270</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/25 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7235">7235</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/26 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7160">7160</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6700">6700</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/02 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6694">6694</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/02 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6401">6401</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/02 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6533">6533</loc>
      </td>
     </tr>
    </tbody>
   </table>
  </div1>

 </back>
</spec>
