<?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 "&wsrst.status;" >
<!ENTITY short-status "&wsrst.short-status;" >
 ]>

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

  <publoc>
    <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
	 xlink:show="replace" xlink:actuate="onRequest"
	 href="&wsrst.dated;">&wsrst.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/&wsrst.shortname;">http://www.w3.org/TR/&wsrst.shortname;
    </loc>
  </latestloc>

  <prevlocs>
    <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
	 xlink:show="replace" xlink:actuate="onRequest"
	 href="&prev.wsrst.dated;">&prev.wsrst.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 may be updated, replaced
    or obsoleted by other documents at any time. It is inappropriate to
    cite this document as other than work in progress.
   </p>
  </status>

  <abstract>
   <p>
    This specification defines extensions to
    <loc href="http://www.w3.org/2009/02/ws-tra">WS-Transfer</loc>
    primarily to provide fragment-based access to resources.
   </p>
  </abstract>

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

  <revisiondesc>
   <p>Last Modified: $Date: 2009/05/06 12:22:10 $</p>
  </revisiondesc>

 </header>

 <body>

  <div1 id="comp">
   <head>Composable Architecture</head>
 
   <p>
    The Web service specifications (WS-*) are designed to be
    composed with each other to provide a rich set of tools for the Web 
    services environment. This specification relies on other Web service 
    specifications to provide secure, reliable, and/or transacted message 
    delivery and to express Web service metadata.
   </p>
  </div1>

  <div1 id="intro">
   <head>Introduction</head>
 
   <p>
    This specification is intended to form an essential core component of a
    unified resource access protocol for the Web services space.
   </p>
 
   <p>
    The operations described in this specification constitute an extension to 
    the WS-Transfer specification, which defines standard messages for 
    controlling resources using the familiar paradigms of "get",
    "put", "create", and "delete". 
    The extensions deal primarily with fragment-based access to resources.
   </p>
 
   <p>
    This document constitutes WS-ResourceTransfer, hereafter referred to
    as WS-RT.
   </p>

   <div2 id="reqs">
    <head>Requirements</head>

    <p>
     This specification intends to meet the following requirements:
    </p>
    
    <ulist>
     <item>
      <p>
       Define WSDL 1.1 portTypes, for the Web service methods described
       in this specification, compliant with WS-I Basic Profile 1.1
       <bibref ref="WS_I"/>.
      </p>
     </item>
     <item>
      <p>
       Define minimum requirements for compliance without constraining
       richer implementations.
      </p>
     </item>
     <item>
      <p>
       Compose with other Web service specifications for secure,
       reliable, transacted message delivery.
      </p>
     </item>
     <item>
      <p>
       Provide extensibility for more sophisticated and/or currently
       unanticipated 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="Soap12"/> Envelopes.
      </p>
     </item>
    </ulist>
   </div2>

   <div2 id="non_reqs">
    <head>Non-Requirements</head>

    <p>
     This specification does not intend to meet the following requirements:
    </p>
    
    <ulist>
     <item>
      <p>
       Discovery of resources.
      </p>
     </item>
    </ulist>
   </div2>

   <div2 id="example">
    <head>Example</head>
    
    <p>
     This section contains a complete example of a WS-RT "Get"
     operation. This example is meant for illustration only and does
     not represent normative behavior or content.
    </p>
    
    <p>
     <specref ref="exresource"/> shows the XML representation of the example 
     resource which will be
     accessed by the protocol operation. The example resource is a physical disk
     which has a number of logical volumes.
    </p>
    
    <example id="exresource">
     <head>Sample Resource</head>
     <eg>(01) &lt;Disk xmlns="http://example.org/sample"&gt;
(02)   &lt;DiskCapacity>62500000000&lt;/DiskCapacity&gt;
(03)   &lt;DiskFreeSpace>524182841&lt;/DiskFreeSpace&gt;
(04)   &lt;SerialNumber>123-F2560&lt;/SerialNumber&gt;
(05)   &lt;LastAuditDate>1998-05-25T13:30:15&lt;/LastAuditDate&gt;
(06)   &lt;Volume&gt;
(07)     &lt;Drive>C:&lt;/Drive&gt;
(08)     &lt;Label>MyDrive-C&lt;/Label&gt;
(09)     &lt;TotalCapacity>10000000000&lt;/TotalCapacity&gt;
(10)     &lt;FreeSpace>6234794528&lt;/FreeSpace&gt;
(11)   &lt;/Volume&gt;
(12)   &lt;Volume&gt;
(13)     &lt;Drive>D:&lt;/Drive&gt;
(14)     &lt;Label>MyDrive-D&lt;/Label&gt;
(15)     &lt;TotalCapacity>30000000000&lt;/TotalCapacity&gt;
(16)     &lt;FreeSpace>26462809800&lt;/FreeSpace&gt;
(17)   &lt;/Volume&gt;
(18)   &lt;Volume&gt;
(19)     &lt;Drive>E:&lt;/Drive&gt;
(20)     &lt;Label>MyDrive-E&lt;/Label&gt;
(21)     &lt;TotalCapacity>22500000000&lt;/TotalCapacity&gt;
(22)     &lt;FreeSpace&gt;16056784170&lt;/FreeSpace&gt;
(23)   &lt;/Volume&gt;
(24) &lt;/Disk&gt;</eg>
    </example>
    
    <p>
     The protocol message for retrieving parts of the above resource
     representation is shown in <specref ref="exresource_get"/>.
     The response message of 
     a WS-Transfer
     "Get" request message would return the entire representation of the
     resource, so this example illustrates a WS-RT "Get" request message
     augmented for extracting specific fragments of the representation:
    </p>
    
    <example id="exresource_get">
     <head>"Get" operation of resource content</head>
     <eg>(01) &lt;s:Envelope
(02)     xmlns:s="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wsrt=
(05)        "http://www.w3.org/2009/02/ws-rst">
(06)  &lt;s:Header&gt;
(07)     &lt;wsa:To>http://www.example.org/disk&lt;/wsa:To&gt;
(08)     &lt;wsa:Action s:mustUnderstand="true"&gt;
(09)       http://www.w3.org/2009/02/ws-tra/Get
(10)     &lt;/wsa:Action&gt;
(11)     &lt;wsrt:ResourceTransfer s:mustUnderstand="true"/&gt;
(12)     ...
(13) &lt;/s:Header&gt;
(14)  &lt;s:Body&gt;
(15)     &lt;wsrt:Get
(16)       Dialect="http://www.w3.org/2009/02/ws-rst/Dialect/XPath-Level-1"
(17)             xmlns:d="http://example.org/sample"&gt;
(18)        &lt;wsrt:Expression&gt;
(19)            d:Volume[1]/d:Label
(20)        &lt;/wsrt:Expression&gt;
(21)        &lt;wsrt:Expression&gt;
(22)            d:DiskCapacity
(23)        &lt;/wsrt:Expression&gt;
(24)        &lt;wsrt:Expression&gt;
(25)            d:SerialNumber/text()
(26)        &lt;/wsrt:Expression&gt;
(27)     &lt;/wsrt:Get&gt;
(28)  &lt;/s:Body&gt;
(29) &lt;/s:Envelope&gt;</eg>
    </example>
    
    <p>
     In this example, the operation is a WS-Transfer "Get" as
     defined by the wsa:Action in line (09). The extended, fragment-aware Get
     behavior is indicated by the wsrt:ResourceTransfer header at line (11). The
     resource being accessed is referenced by the WS-Addressing endpoint
     reference, implied by the wsa:To element on line (07). WS-RT extensions for
     extracting fragments of the resource representation are in the wsrt:Get
     block on lines (15) through (27). For each targeted fragment the value
     to be selected is specified in the wsrt:Expression element.
    </p>
    
    <p>
     The response to the "Get" message is illustrated in 
     <specref ref="exresource_getresponse"/>.
    </p>
    
    <example id="exresource_getresponse">
     <head>Example "Get" response</head>
     <eg>(01) &lt;s:Envelope
(02)     xmlns:s="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wsrt=
(05)        "http://www.w3.org/2009/02/ws-rst">
(06)  &lt;s:Header&gt;
(07)     &lt;wsa:To&gt;
(08)   http://www.w3.org/2005/08/addressing/anonymous
(09)     &lt;/wsa:To&gt;
(10)     &lt;wsa:Action s:mustUnderstand="true"&gt;
(11)  http://www.w3.org/2009/02/ws-tra/GetResponse
(12)     &lt;/wsa:Action&gt;
(13)     &lt;wsrt:ResourceTransfer/&gt;
(14)     ...
(15)  &lt;/s:Header&gt;
(16)  &lt;s:Body&gt;
(17)   &lt;wsrt:GetResponse xmlns:d="http://example.org/sample"&gt;
(18)      &lt;wsrt:Result&gt;
(19)        &lt;d:Label>MyDrive-C&lt;/d:Label&gt;
(20)      &lt;/wsrt:Result&gt;
(21)      &lt;wsrt:Result&gt;
(22)        &lt;d:DiskCapacity>62500000000&lt;/d:DiskCapacity&gt;
(23)      &lt;/wsrt:Result&gt;
(24)      &lt;wsrt:Result&gt;
(25)        &lt;wsrt:TextNode&gt;123-F2560&lt;/wsrt:TextNode&gt;
(26)      &lt;/wsrt:Result&gt;
(27)   &lt;/wsrt:GetResponse&gt;
(28)  &lt;/s:Body&gt;
(29) &lt;/s:Envelope&gt;</eg>
    </example>
    
    <p>
     Note that the value of each resource fragment requested via
     a wsrt:Expression element is individually returned in a matching 
     wsrt:Result element.
     This example uses the XPath Level 1 Dialect for the wsrt:Expression 
     elements, one of which shows the use of the XPath text() NodeTest. The 
     wsrt:Result for the third fragment contains only the serialized text 
     value of that element (line (25)), rather than the XML element wrapper 
     as in the other cases.
    </p>
   </div2>
  </div1>
 
  <div1 id="termsNote">
   <head>Terminology and Notation</head>

   <div2 id="terms">
    <head>Terminology</head>
 
    <p>
     Some of the terminology defined in this specification is repeated
     from the WS-Transfer specification for convenience and is not meant 
     to deviate from those definitions in any way.
    </p>
 
    <glist>
     <gitem>
      <label>Resource</label>
      <def>
       <p>
        A Web service that is addressable by an endpoint reference
        as defined in WS-Addressing and that can be represented by an XML 
        document.  This representation can be accessed using the operations 
        defined in the WS-Transfer and WS-ResourceTransfer specifications.
       </p>
      </def>
     </gitem>
 
     <gitem>
      <label>Resource representation</label>
      <def>
       <p>
        The XML representation of the resource that is accessed
        using the operations defined in the WS-Transfer and WS-ResourceTransfer
        specifications.
       </p>
      </def>
     </gitem>
 
     <gitem>
      <label>Resource factory</label>
      <def>
       <p>
        A Web service that is capable of creating new resources using the 
        Create operation defined in WS-Transfer and the WS-ResourceTransfer
        specifications.
       </p>
      </def>
     </gitem>
 
     <gitem>
      <label>Metadata resource</label>
      <def>
       <p>
        A resource whose XML representation describes some aspect of the 
        metadata of another resource, such as its WSDL or lifecycle metadata.
        Each resource may have zero or more metadata resources associated with 
        it.
       </p>
      </def>
     </gitem>
 
     <gitem>
      <label>Fragment</label>
      <def>
       <p>
        The term "fragment" is used in this specification to mean a
        part of the resource representation.
       </p>
      </def>
     </gitem>
 
     <gitem>
      <label>EPR</label>
      <def>
       <p>
        The wsa:EndpointReference (EPR), as defined by
        WS-Addressing, is a reference to the resource in its entirety. 
        Operations, which are otherwise unconstrained within this 
        specification, are assumed to affect the resource as a whole.
       </p>
      </def>
     </gitem>
    </glist>
   </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-rst">http://www.w3.org/2009/02/ws-rst</loc></eg>
    </example>
    
    <p>
     <specref ref="xmlnamespaces"/> lists XML namespaces that are 
     used in this specification. The
     choice of any namespace prefix is arbitrary and not semantically
     significant.
    </p>
    
    <table id="xmlnamespaces" 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> http://schemas.xmlsoap.org/soap/envelope/ </td>
       <td> <bibref ref="Soap11"/> </td>
      </tr>
      <tr>
       <td> s12 </td>
       <td> http://www.w3.org/2003/05/soap-envelope </td>
       <td> <bibref ref="Soap12"/> </td>
      </tr>
      <tr>
       <td> wsa </td>
       <td> http://www.w3.org/2005/08/addressing </td>
       <td> <bibref ref="AddrCore"/> </td>
      </tr>
      <tr>
       <td> wsmex </td>
       <td> http://www.w3.org/2009/02/ws-mex </td>
       <td> <bibref ref="WSMex"/> </td>
      </tr>
      <tr>
       <td> wsdl </td>
       <td> http://schemas.xmlsoap.org/wsdl/ </td>
       <td> <bibref ref="Wsdl11"/> </td>
      </tr>
      <tr>
       <td> wsrt </td>
       <td> http://www.w3.org/2009/02/ws-rst </td>
       <td> This specification </td>
      </tr>
      <tr>
       <td> wst </td>
       <td> http://www.w3.org/2009/02/ws-tra </td>
       <td> <bibref ref="WsTransfer"/> </td>
      </tr>
      <tr>
       <td> xs </td>
       <td> http://www.w3.org/2001/XMLSchema </td>
       <td> 
        XML Schema <bibref ref="XmlSchemaPart1"/>,
        <bibref ref="XmlSchemaPart2"/>
       </td>
      </tr>
     </tbody>
    </table>

    <p>
     The working group intends to update the value of the Web Services
     Transfer 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 Transfer 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="conven">
    <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 outlines for 
     messages:
    </p>
 
    <ulist>
     <item>
      <p>
       The syntax appears as an XML instance, but values in italics
       indicate data types instead of literal 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>
       Ellipses (i.e., "...") indicate points of extensibility. 
      </p>
     </item>
     <item>
      <p>
       XML namespace prefixes (see <specref ref="xmlnamespaces"/>) 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 defines Fault properties for each defined
     fault and defines SOAP bindings for each Fault property.
    </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>
   </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"></bibref>). 
    </p>

   </div2>
  </div1>

  <div1 id="Transferextensions">
   <head>Extensions to WS-Transfer</head>
 
   <p>
    WS-Transfer defines operations to Get, Put, Create and
    Delete representations of resources. WS-ResourceTransfer extends these
    operations to add the capability to operate on fragments of the resource
    representations.
   </p>

   <div2 id="fragments">
    <head>Fragments</head>
 
    <p>
     Since an EPR refers to a resource as a whole, techniques
     which are used to reference or access parts of the resource 
     representation are referred to as "fragment access" in that they access 
     fragments of the XML representing the resource.
    </p>
 
    <p>
     This specification defines an extensible mechanism for
     designating the expression syntax by which the fragment is identified or
     computed, and defines several such standard expression syntaxes or
     "dialects".
    </p>
   </div2>

   <div2 id="dialects">
    <head>Expression Dialects</head>
 
    <p>
     The dialects defined below are used to form an expression
     that can be evaluated with respect to the XML document that represents the
     resource. The de-referenced value of the expression is the part of the XML
     that is of interest. The expression may form a logical "pointer" to
     the fragment of XML that is of interest or, depending on the dialect, may 
     form a query that can be applied to the XML document to produce an 
     evaluated result.  It is important to understand that these expression 
     dialects simply identify the appropriate fragment of the resource 
     representation and that the <kw>[Action]</kw>
     itself defines what will happen to the referenced fragment.
    </p>
 
    <p>
     The definition of each dialect must clearly specify how the
     result of evaluating an expression against a resource representation is
     serialized to XML and should specify any dialect-specific behavior for
     operations that access the resource representation.
    </p>

    <div3 id="qname">
     <head>QName Dialect</head>

     <p>
      The QName expression dialect is a simple dialect for
      expressions that uses a QName to reference the immediate children of 
      the root element of the resource representation. Consider the 
      resource described in <specref ref="exresource"/>.
     </p>
 
     <p>
      In this example, the QName dialect can define references to
      the elements &lt;DiskCapacity&gt;, &lt;DiskFreeSpace&gt;,
      &lt;SerialNumber&gt;, &lt;LastAuditDate&gt; and all &lt;Volume&gt; 
      elements.
      The QName dialect cannot define direct references to the elements
      &lt;Drive&gt;, &lt;Label&gt;, &lt;TotalCapacity&gt;
      and &lt;FreeSpace&gt; - since they are not direct children of the
      Disk (root) element of the resource - or to specific
      &lt;Volume&gt; elements. <specref ref="get_qname"/>, below,
      shows an example usage of this
      dialect. This dialect is useful for simple resources with no XPath
      processing capability.
     </p>
     
     <p>
      The QName dialect MUST be indicated by using the URI:
     </p>
     
     <example>
      <eg>http://www.w3.org/2009/02/ws-rst/Dialect/QName</eg>
     </example>
     
     <p>
      Note that the expression MUST evaluate to zero or more entire
      elements, each including the element name, any attributes and its entire
      content. The QName dialect does not support computed values.
     </p>
    </div3>

    <div3 id="xpath1">
     <head>XPath Level 1 Dialect</head>
 
     <p>
      The XPath Level 1 expression dialect uses an XPath to
      reference specific fragments of the resource representation. The XPath is
      logically applied to the XML representation of the resource and the 
      resulting
      node-set is the resource fragment which is the subject of the message
      containing the expression. 
      <specref ref="exresource_get"/> shows an example usage of this dialect.
      This dialect is useful for resources with limited XPath processing
      capability which do not need to support returning values computed from
      their resource representation.
     </p>
 
     <p>
      The XPath Level 1 dialect is defined in Appendix I of this specification.
      An implementation that uses the XPath Level 1 dialect MUST support the
      expressions whose syntax is described by the BNF in Appendix I. It MAY
      support additional expressions defined by XPath 1.0.
     </p>
     
     <p>
      An XPath Level 1 expression is an expression whose context is:
     </p>
     
     <ulist>
      <item>
       <p>
        Context Node: the root element of the XML representation of the resource
       </p>
      </item>
      <item>
       <p>
        Context Position: 1
       </p>
      </item>
      <item>
       <p>
        Context Size: 1
       </p>
      </item>
      <item> 
       <p>
        Variable Binding: None
       </p>
      </item>
      <item>
       <p>
        Node Tests: NameTest and the text NodeType
       </p>
      </item>
      <item>
       <p>
        Function Libraries: None
       </p>
      </item>
      <item>
       <p>
        Namespace Declarations: Any namespace declarations in-scope where the
        XPath expression appears
       </p>
      </item>
     </ulist>
     
     <p>
      Consider the resource described in <specref ref="exresource"/>.
      The XPath Level 1 dialect can
      define references to any element, attribute or value in the resource
      representation.
     </p>
     
     <p>
      The XPath Level 1 dialect MUST be indicated by using the URI:
     </p>
     
     <example>
      <eg>http://www.w3.org/2009/02/ws-rst/Dialect/XPath-Level-1</eg>
     </example>
     
     <p>
      Expressions in this dialect MUST NOT evaluate to more than a
      single node. The XPath Level 1 dialect does not support computed values. 
      Text and attribute nodes MUST be serialized using the same serialization 
      as for the XPath 1.0 dialect.
     </p>
    </div3>

    <div3 id="xpath10">
     <head>XPath 1.0 Dialect</head>
 
     <p>
      The XPath 1.0 expression dialect uses an XPath to reference specific
      fragments of the resource representation. The XPath is logically 
      applied to the XML representation of the resource and the result of 
      the XPath is returned as the value for that expression. The XPath 1.0 
      dialect supports a
      wider set of XPath function libraries than the XPath Level 1 dialect.
      <specref ref="get_xpath10"/>, below, shows an example usage of this 
      dialect. This dialect is
      useful for resources with full XPath processing capability or which 
      need to support returning values computed from their resource 
      representation.
     </p>
     
     <p>
      An XPath 1.0 expression is an expression whose context is:
     </p>
     
     <ulist>
      <item>
       <p>
        Context Node: the root element of the XML representation of the resource
       </p>
      </item>
      <item> <p>Context Position: 1</p> </item>
      <item> <p>Context Size: 1</p> </item>
      <item> <p>Variable Binding: None</p> </item>
      <item> <p>Function Libraries: Core function library</p> </item>
      <item>
       <p>
        Namespace Declarations: Any namespace declarations in-scope where 
        the XPath expression appears
       </p>
      </item>
     </ulist>
     
     <p>
      Consider the resource described in <specref ref="exresource"/>.
      The XPath 1.0 dialect can
      define references to any element, attribute or value in the resource
      representation and can also be used to compute values from the resource
      representation.
     </p>
     
     <p>The XPath 1.0 dialect MUST be indicated by using the URI:</p>
     
     <example>
      <eg>http://www.w3.org/TR/1999/REC-xpath-19991116</eg>
     </example>
     
     <p>
      Implementations that support the full XPath 1.0 dialect MUST
      support the XPath Level 1 dialect.
     </p>
     
     <p>
      Note that the expression may evaluate to one of four
      possible types: a node-set, a Boolean, a number or a string. The 
      latter three types are the results of evaluating a computed expression. 
      They are serialized
      by performing the following conversion and then wrapping the result in 
      the wsrt:Result element:
     </p>
     <ulist>
      <item> <p>Boolean - converted to an xs:boolean</p> </item>
      <item> <p>string - convert to an xs:string</p> </item>
      <item> <p>number - convert to an xs:double</p> </item>
     </ulist>
     
     <p>
      A node-set is zero or more elements, attributes or text
      values of elements. A node-set is serialized into XML by 
      concatenating each
      node and enclosing it in the wsrt:Result wrapper XML element for which 
      schema
      validation is suppressed. Element nodes in a node-set are serialized 
      directly
      into their XML representation. For attributes and text nodes in the 
      node-set,
      a wrapper element is used to enclose these values to distinguish them from
      other such nodes in the serialized result.
     </p>
     
     <p>
      Attribute nodes in XPath are represented in the following form:
     </p>
     
     <example>
      <eg>name="value"</eg>
     </example>
     
     <p>
      Serialization of an attribute node separates the name from
      the value using the following element:
     </p>
 
     <example>
      <eg>(01) &lt;wsrt:AttributeNode name="<emph>attribute name</emph>">
(02)   <emph>attribute value</emph>
(03) &lt;/wsrt:AttributeNode&gt;</eg>
     </example>
     
     <p>
      The following describes additional constraints on the outline 
      listed above:
     </p>
     
     <glist>
      <gitem>
       <label> wsrt:AttributeNode </label>
       <def>
        <p>
         This element is used to serialize an attribute node in a
         node-set and MUST contain the value portion of the attribute node.
        </p>
       </def>
      </gitem>

      <gitem>
       <label> wsrt:AttributeNode/@name </label>
       <def>
        <p>
         This attribute MUST be the name portion of the attribute node.
        </p>
       </def>
      </gitem>
     </glist>
     
     <p>
      Text nodes are serialized in the following form:
     </p>
 
     <example>
      <eg>(01) &lt;wsrt:TextNode&gt;
(02)   <emph>text value</emph>
(03) &lt;/wsrt:TextNode&gt;</eg>
     </example>
     
     <p>The following describes additional constraints on the
     outline listed above:</p>
     
     <p>wsrt:TextNode</p>
     
     <p>
      This element is used to serialize a text node in a node-set
      and MUST contain the text value.
     </p>
     
     <p>Given the following XML as an example document.</p>
     
     <example>
      <eg>(01) &lt;a xmlns="example"&gt;
(02)   &lt;b&gt;1&lt;/b&gt;
(03)   &lt;c x="y"&gt;2&lt;/c&gt;
(04) &lt;/a&gt;</eg>
     </example>
     
     <p>
      The result of the XPath "/a/b | /a/b/text() | /a/c/@x" would
      be serialized as the following:
     </p>
     
     <example>
      <eg>(01) &lt;wsrt:Result&gt;
(02)   &lt;b&gt;1&lt;/b&gt;
(03)   &lt;wsrt:TextNode&gt;1&lt;/wsrt:TextNode&gt;
(04)   &lt;wsrt:AttributeNode name="x"&gt;y&lt;/wsrt:AttributeNode&gt;
(05) &lt;/wsrt:Result&gt;</eg>
     </example>
     
     <p>The nodes in the node-set MAY be serialized in any order.</p>
     
     <p>
      The WS-RT global element definition wsrt:NodeSet can also be
      used as the wrapper element when serializing these node-sets outside of
      a WS-RT result.
     </p>
     
     <p>
      An XPath 1.0 expression may evaluate to multiple nodes;
      because of this the XPath 1.0 dialect MUST NOT be used with a "Put" or
      "Create" operation.
     </p>
    </div3>
   </div2>

   <div2 id="get">
    <head>Get</head>
 
    <p>
     The WS-Transfer Get operation is used to retrieve an
     existing resource representation in its entirety. WS-ResourceTransfer 
     extends
     the "Get" operation to retrieve fragments of an existing representation. A
     resource that can return its full representation MUST also support 
     wst:Get to
     return the entire resource representation without using WS-ResourceTransfer
     extensions.
    </p>
 
    <p>
     The <kw>[Body]</kw> of wsrt:Get contains an expression that
     identifies the fragment of interest.
    </p>
    
    <p>The outline for wsrt:Get is:</p>
    
    <example>
     <eg><kw>[Headers]</kw>
  &lt;wsrt:ResourceTransfer s:mustUnderstand="true"? /&gt;

<kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-tra/Get

<kw>[Body]</kw>
  &lt;wsrt:Get Dialect="<emph>xs:anyURI</emph>"?&gt;
    &lt;wsrt:Expression ...&gt;<emph>xs:any</emph>&lt;/wsrt:Expression&gt; *
  &lt;/wsrt:Get&gt;</eg>
    </example>
    
    <p>
     The following describes additional constraints on the outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Header]</kw>/wsrt:ResourceTransfer </label>
      <def>
       <p>
        If present and understood, a resource MUST process the
        <kw>[Body]</kw> in its entirety and comply with its content. If 
        not present 
        then a resource MUST treat this request as described in WS-Transfer
        Get <bibref ref="WsTransfer"/>.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Get </label>
      <def>
       <p>
        An element which controls the retrieval of the resource
        fragment. This element MUST be present if the wsrt:ResourceTransfer 
        header is
        present.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Get/@Dialect </label>
      <def>
       <p>
        This URI indicates which dialect expression will be used to
        identify and retrieve the fragment(s). This attribute MUST be present 
        when the
        message contains a wsrt:Expression element. A resource MUST generate an
        UnsupportedDialectFault if it does not support the specified Dialect.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Get/wsrt:Expression </label>
      <def>
       <p>
        When present this optional element identifies a fragment in
        the resource to be sent in the response. Absence of this element is 
        equivalent
        to an Expression that identifies the entire resource representation. 
        The value
        of this element MUST conform to the dialect specified in
        <kw>[Body]</kw>/wsrt:Get/@Dialect
        attribute. A resource MUST generate an InvalidExpressionFault if the
        expression is invalid. If the expression syntax is not valid with 
        respect to
        the dialect then a resource SHOULD specify a fault detail of
        "InvalidExpressionSyntax".
        If the expression value is not valid for the resource type then the 
        resource
        SHOULD specify a fault detail of "InvalidExpressionValue".
       </p>
       <p>
        If a resource cannot return a value for a requested fragment then 
        it MUST generate a GetFault.
       </p>
       <p>
        If the request contains more Expression elements than the resource
        supports the resource MUST return a fault which SHOULD be
        wsrt:MultipartLimitExceededFault.
       </p>
      </def>
     </gitem>

    </glist>
    
    <p>
     If the resource accepts a wsrt:Get request and processes it successfully it
     MUST reply with a response of the following form:
    </p>
    
    <example>
     <eg><kw>[Headers]</kw>
&lt;wsrt:ResourceTransfer/&gt;

<kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-tra/GetResponse

<kw>[Body]</kw>
  &lt;wsrt:GetResponse&gt;
    &lt;wsrt:Result...&gt; <emph>xs:any</emph> &lt;/wsrt:Result&gt; +
  &lt;/wsrt:GetResponse&gt;</eg>
    </example>
    
    <p>
     The following describes additional constraints on the outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Headers]</kw>/wsrt:ResourceTransfer </label>
      <def>
       <p>
        This header indicates that the response contains body
        content defined in WS-ResourceTransfer.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:GetResponse </label>
      <def>
       <p>
        An element which wraps the packaging of the fragments in
        the response. This element MUST be present if the request Body 
        contained a wsrt:Get element.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:GetResponse/wsrt:Result </label>
      <def>
       <p>
        This element encompasses a single fragment response corresponding to a
        wsrt:Expression in the original request and MUST contain the
        fragment of the resource representation identified by the 
        wsrt:Expression. If
        the request contained no wsrt:Expression then this element MUST contain 
        the
        entire resource representation. If the request contained one or more
        wsrt:Expression elements then for each wsrt:Expression element in the 
        request
        there MUST be one wsrt:Result element in the response even if the 
        wsrt:Result
        has empty content. The wsrt:Result elements MUST appear in the same 
        order in
        the response as the corresponding wsrt:Expression elements in the 
        request. A
        wsrt:Result MUST have empty content in the case where a wsrt:Expression
        resolves to nothing.
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>
     An example Get message using the XPath Level 1 dialect 
     and the expected GetResponse is shown in <specref ref="exresource_get"/>
     and the expected GetResource is shown in 
     <specref ref="exresource_getresponse"/>, for the resource whose
     XML representation is shown in <specref ref="exresource"/> above.
    </p>
    
    <p>
     An example Get message that uses the QName dialect is shown in
     <specref ref="get_qname"/> below.
    </p>
    
    <example id="get_qname">
     <head>Get message using the "QName" dialect</head>
     <eg>(01) &lt;s:Envelope
(02)     xmlns:s="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wsrt=
(05)        "http://www.w3.org/2009/02/ws-rst">
(06)  &lt;s:Header&gt;
(07)     &lt;wsa:To>http://www.example.org/disk&lt;/wsa:To&gt;
(08)     &lt;wsa:Action s:mustUnderstand="true"&gt;
(09)       http://www.w3.org/2009/02/ws-tra/Get
(10)     &lt;/wsa:Action&gt;
(11)     &lt;wsrt:ResourceTransfer s:mustUnderstand="true"/&gt;
(12)     ...
(13)  &lt;/s:Header&gt;
(14)  &lt;s:Body&gt;
(15)     &lt;wsrt:Get Dialect="http://www.w3.org/2009/02/ws-rst/Dialect/QName"
(16)       xmlns:d="http://example.org/sample"&gt;
(17)        &lt;wsrt:Expression&gt;
(18)            d:Volume
(19)        &lt;/wsrt:Expression&gt;
(20)        &lt;wsrt:Expression&gt;
(21)            d:DiskCapacity
(22)        &lt;/wsrt:Expression&gt;
(23)     &lt;/wsrt:Get&gt;
(24)  &lt;/s:Body&gt;
(25) &lt;/s:Envelope&gt;</eg>
    </example>
    
    <p>
     The fragments of the resource representation are identified by
     the wsrt:Expression contents on lines (18) and (21). Notice that the
     <emph>d:Volume</emph> QName in the example resolves to three 
     elements in the
     resource representation. The response to this "Get" message is
     illustrated in <specref ref="getresponse_qname"/>.
    </p>
    
    <example id="getresponse_qname">
     <head>Example GetResponse using the "QName" dialect</head>
     <eg>(01) &lt;s:Envelope
(02)     xmlns:s="http://www.w3.org/2003/05/soap-envelope"
(03)     xmlns:wsa="http://www.w3.org/2005/08/addressing"
(04)     xmlns:wsrt=
(05)        "http://www.w3.org/2009/02/ws-rst">
(06)  &lt;s:Header&gt;
(07)     &lt;wsa:To&gt;
(08)   http://www.w3.org/2005/08/addressing/anonymous
(09)     &lt;/wsa:To&gt;
(10)     &lt;wsa:Action s:mustUnderstand="true"&gt;
(11)  http://www.w3.org/2009/02/ws-tra/GetResponse
(12)     &lt;/wsa:Action&gt;
(13)     &lt;wsrt:ResourceTransfer/&gt;
(14)     ...
(15)  &lt;/s:Header&gt;
(16)  &lt;s:Body&gt;
(17)   &lt;wsrt:GetResponse xmlns:d="http://example.org/sample"&gt;
(18)      &lt;wsrt:Result&gt;
(19)        &lt;d:Volume&gt;
(20)           &lt;d:Drive>C:&lt;/d:Drive&gt;
(21)           &lt;d:Label>MyDrive-C&lt;/d:Label&gt;
(22)           &lt;d:TotalCapacity>10000000000&lt;/d:TotalCapacity&gt;
(23)           &lt;d:FreeSpace>6234794528&lt;/d:FreeSpace&gt;
(24)        &lt;/d:Volume&gt;
(25)        &lt;d:Volume&gt;
(26)           &lt;d:Drive>D:&lt;/d:Drive&gt;
(27)           &lt;d:Label>MyDrive-D&lt;/d:Label&gt;
(28)           &lt;d:TotalCapacity>30000000000&lt;/d:TotalCapacity&gt;
(29)           &lt;d:FreeSpace>26462809800&lt;/d:FreeSpace&gt;
(30)        &lt;/d:Volume&gt;
(31)        &lt;d:Volume&gt;
(32)           &lt;d:Drive>E:&lt;/d:Drive&gt;
(33)           &lt;d:Label>MyDrive-E&lt;/d:Label&gt;
(34)           &lt;d:TotalCapacity>22500000000&lt;/d:TotalCapacity&gt;
(35)           &lt;d:FreeSpace>16056784170&lt;/d:FreeSpace&gt;
(36)        &lt;/d:Volume&gt;
(37)      &lt;/wsrt:Result&gt;
(38)      &lt;wsrt:Result&gt;
(39)        &lt;d:DiskCapacity&gt;62500000000&lt;/d:DiskCapacity&gt;
(40)      &lt;/wsrt:Result&gt;
(41)   &lt;/wsrt:GetResponse&gt;
(42)  &lt;/s:Body&gt;
(43) &lt;/s:Envelope&gt;</eg>
    </example>
    
    <p>
     The value of each of the wsrt:Expression fragments in the
     request message is returned in a unique wsrt:Result wrapper in the 
     response message. The order of the wsrt:Result elements in the 
     response matches the order of the corresponding wsrt:Expression elements 
     in the request. The result of getting the &lt;d:Volume&gt; fragment, 
     for example, is shown on lines (18) - (37).
    </p>
    
    <p>
     One final example of the Get operation, using the full XPath
     1.0 dialect, is shown below in <specref ref="get_xpath10"/>. 
     This illustrates the use of a
     query expression to return the computed result of the quantity of
     <emph>d:Volume</emph> elements that have a capacity greater 
     than 20000000000.
     For the sake of brevity, only the message body is shown.
    </p>
    
    <example id="get_xpath10">
     <head>Example Get message using an XPath 1.0 query expression</head>
     <eg>(01) &lt;s:Body&gt;
(02)   &lt;wsrt:Get Dialect="http://www.w3.org/TR/1999/REC-xpath-19991116"
(03)    xmlns:d="http://example.org/sample">
(04)       &lt;wsrt:Expression&gt;
(05)              count( d:Volume[d:TotalCapacity &gt; 20000000000] )
(06)       &lt;/wsrt:Expression&gt;
(07)   &lt;/wsrt:Get&gt;
(08) &lt;/s:Body&gt;</eg>
    </example>
    
    <p>
     The expression on line (05), when applied to the resource representation
     in <specref ref="example"/>, evaluates to a result of "2".
    </p>
    
    <example id="getresponse_xpath10">
     <head>GetResponse of an XPath 1.0 query expression</head>
     <eg>(01) &lt;s:Body&gt;
(02)    &lt;wsrt:GetResponse&gt;
(03)      &lt;wsrt:Result&gt;2&lt;/wsrt:Result&gt;
(04)    &lt;/wsrt:GetResponse&gt;
(05) &lt;/s:Body&gt;</eg>
    </example>
    
    <p>
     The result of the query expression is a number which is
     converted to an xs:double and returned as the value of the wsrt:Result 
     element shown on line (03).
    </p>
   </div2>

   <div2 id="put">
    <head>Put</head>
 
    <p>
     The WS-Transfer "Put" operation is used to update an existing resource
     representation by providing a
     replacement XML representation. WS-ResourceTransfer
     extends the "Put" operation to update an existing resource representation 
     by providing fragments of the XML representation. A resource that can 
     update its full representation MUST also support wst:Put to update the 
     entire resource representation without using WS-
     ResourceTransfer extensions.
    </p>
    
    <p>The extended outline for the "Put" operation is:</p>
    <example>
     <eg><kw>[Headers]</kw>
  &lt;wsrt:ResourceTransfer s:mustUnderstand="true"/&gt;

<kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-tra/Put

<kw>[Body]</kw>
  &lt;wsrt:Put Dialect="<emph>xs:anyURI</emph>"?&gt;
    &lt;wsrt:Fragment Mode="<emph>xs:anyURI</emph>"&gt;
      &lt;wsrt:Expression&gt;<emph>xs:any</emph>&lt;/wsrt:Expression&gt; ?
      &lt;wsrt:Value ...&gt;<emph>xs:any</emph>&lt;/wsrt:Value&gt; ?
    &lt;/wsrt:Fragment&gt; +
  &lt;/wsrt:Put&gt;</eg>
    </example>
    
    <p>
     The following describes additional constraints on the outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Header]</kw>/wsrt:ResourceTransfer </label>
      <def>
       <p>
        If present and understood, a resource MUST process the
        <kw>[Body]</kw> in its entirety and comply with its content. 
        If not present 
        then a resource MUST treat this request as described in WS-Transfer 
        Put <bibref ref="WsTransfer"/>.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Put </label>
      <def>
       <p>
        An element that specifies the fragments of the resource representation
        to update. This element MUST be present if the wsrt:ResourceTransfer
        header is present.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Put/@Dialect </label>
      <def>
       <p>
        This URI indicates which expression dialect will be used to
        identify the fragment(s) of the resource representation to be updated. 
        This attribute MUST be present when the message contains a 
        wsrt:Expression element.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Put/Fragment </label>
      <def>
       <p>
        This element encompasses a single update to be performed on
        the resource. Upon successful completion of a Put operation, the 
        resource representation MUST appear as though the fragment updates 
        occurred in the order specified in the Put operation. If there are 
        multiple Fragment elements then, for the first fragment, the 
        resource representation is the original resource representation 
        (before applying the Put changes). For subsequent fragments, the
        resource representation is the intermediate representation resulting 
        from
        applying the previous fragments.
       </p>
       <p>
        If the request contains more Fragment elements than the resource
        supports the resource MUST return a fault which SHOULD be
        wsrt:MultipartLimitExceededFault.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Put/Fragment/@Mode </label>
      <def> 
       <p>
        This attribute indicates the type of update to be performed
        on this fragment. A resource MUST generate a ResourceValidityFault if 
        the result of executing this operation would cause the resource 
        representation to become invalid. A resource MAY support only a subset 
        of the Modes defined within this specification. A resource that does 
        not support a specified Mode MUST 
        generate a PutModeUnsupportedFault.
       </p>
       <p>
        A value of "http://www.w3.org/2009/02/ws-rst/Remove" indicates that 
        the fragment MUST be
        deleted if it is present. The expression dialect indicated in this 
        operation MAY place additional constraints on the definition of this 
        Mode. Note that, in order to delete the resource itself, a WS-Transfer 
        "Delete" message is used.
       </p>
       <p>
        A value of "http://www.w3.org/2009/02/ws-rst/Modify" means that the 
        fragment MUST be
        replaced by removing any fragment that already exists and inserting the
        specified value in its place. If the expression resolves to nothing then
        this fragment element does not result in any change to the resource
        representation. The expression dialect indicated in this operation MAY
        place additional constraints on the definition of this Mode. A fragment
        with no wsrt:Expression MUST specify this Mode.
       </p>
       <p>
        A value of "http://www.w3.org/2009/02/ws-rst/Insert" indicates that 
        the fragment MUST be
        added to the resource representation. If the expression targets a 
        repeated element (maxOccurs &gt; 1), the fragment MUST be added at 
        the end. If the expression targets a non-repeated element 
        (maxOccurrs = 1) that already exists, the resource MUST generate 
        a FragmentAlreadyExistsFault. If the expression targets an existing 
        item of a repeated element, the fragment MUST be added before the 
        existing item.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Put/Fragment/Expression </label>
      <def>
       <p>
        When present this optional element contains the expression that
        identifies a fragment of the resource representation to be updated. 
        Absence of this element is equivalent to an Expression that identifies 
        the entire resource representation.
       </p>
       <p>
        The value of this element MUST conform to the dialect
        specified in the <kw>[Body]</kw>/wsrt:Put/@Dialect attribute. A 
        resource 
        MUST generate an InvalidExpressionFault if the expression is invalid. 
        If the expression syntax is not valid with respect to the dialect then 
        a resource SHOULD specify a fault detail of "InvalidExpressionSyntax". 
        If the expression value is not valid for the resource type then the 
        resource SHOULD specify a fault detail of "InvalidExpressionValue".
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Put/Fragment/Value </label>
      <def>
       <p>
        This element contains the data to be written to the
        resource representation. If the <kw>[Body]</kw>/wsrt:Put/Fragment/@Mode 
        attribute is "http://www.w3.org/2009/02/ws-rst/Insert" or 
        "http://www.w3.org/2009/02/ws-rst/Modify" then this element 
        MUST be present. 
        If the <kw>[Body]</kw>/wsrt:Put/Fragment/@Mode attribute is 
        "http://www.w3.org/2009/02/ws-rst/Remove" then 
        this element MUST NOT be present. A resource MUST generate an 
        InvalidPutSyntaxFault if it receives a message with a Value 
        cardinality that is not valid for the Mode attribute.
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>
     If a resource encounters a
     failure while processing the fragments in a Put request, it MUST 
     generate a PutFault. The resource SHOULD ensure that its representation 
     is unchanged from prior to the request, although atomic behavior is not 
     required of resource implementations. The resource SHOULD include a 
     wsrt:SideAffects element in the fault detail to indicate whether any 
     changes occurred.
    </p>
    
    <p>
     If the resource accepts a Put request and performs the
     requested update, it MUST reply with a response of the following form:
    </p>
    
    <example>
     <eg><kw>[Headers]</kw>
  &lt;wsrt:ResourceTransfer/&gt;

<kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-tra/PutResponse

<kw>[Body]</kw></eg>
    </example>
    
    <p>
     The following describes additional constraints on the outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Headers]</kw>/wsrt:ResourceTransfer </label>
      <def>
       <p>
        This header indicates that the response contains body
        content defined in WS-ResourceTransfer.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw> </label>
      <def>
       <p>
        If the request Body contained a wsrt:Put element then the new
        representation MUST be omitted in the response. Otherwise the response 
        MUST be as described in WS-Transfer. The absence of the resource 
        representation in the response is in recognition of the potentially 
        large amount of data that may be returned, which may have been the 
        reason a fragment Put was used instead of
        sending the entire resource representation.
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>
     An example Put message using the XPath Level 1 dialect is
     shown in <specref ref="put_xpath1"/>. For brevity only the message 
     body is shown.
    </p>
    
    <example id="put_xpath1">
     <head>Put message using the XPath Level 1 dialect</head>
     <eg>(01) &lt;s:Body&gt;
(02)   &lt;wsrt:Put Dialect="http://www.w3.org/2009/02/ws-rst/Dialect/XPath-Level-1"
(03)       xmlns:d="http://example.org/sample">
(04)     &lt;wsrt:Fragment Mode='http://www.w3.org/2009/02/ws-rst/Remove'&gt;
(05)       &lt;wsrt:Expression&gt;
(06)         d:Volume[1]
(07)       &lt;/wsrt:Expression&gt;
(08)     &lt;/wsrt:Fragment&gt;
(09)     &lt;wsrt:Fragment Mode='http://www.w3.org/2009/02/ws-rst/Insert'&gt;
(10)       &lt;wsrt:Expression&gt;
(11)         d:Volume[2]
(12)       &lt;/wsrt:Expression&gt;
(13)       &lt;wsrt:Value&gt;
(14)         &lt;d:Volume&gt;
(15)           &lt;d:Drive>X:&lt;/d:Drive&gt;
(16)           &lt;d:Label>MyDrive-X&lt;/d:Label&gt;
(17)           &lt;d:TotalCapacity&gt;5000000000&lt;/d:TotalCapacity&gt;
(18)         &lt;/d:Volume&gt;
(19)       &lt;/wsrt:Value&gt;
(20)     &lt;/wsrt:Fragment&gt;
(21)   &lt;/wsrt:Put&gt;
(22) &lt;/s:Body&gt;</eg>
    </example>
    
    <p>
     Line (04) indicates that a fragment should be removed and is targeted 
     at the 1<sup>st</sup> Volume element, identified by the wsrt:Expression 
     contents on line (05). Line (09) indicates that a fragment should be 
     inserted into the representation that results from applying the first 
     fragment update.
     The insertion location is identified by the wsrt:Expression contents on
     line (11), i.e. immediately before the second Volume element.
     Lines (13) - (18) show the content of the new Volume which is to be
     inserted. The updated resource representation is illustrated in
     <specref ref="after_put"/>.
    </p>
    
    <example id="after_put">
     <head>Updated resource representation</head>
     <eg>(01) &lt;Disk xmlns="http://example.org/sample"&gt;
(02)   &lt;DiskCapacity>62500000000&lt;/DiskCapacity&gt;
(03)   &lt;DiskFreeSpace>524182841&lt;/DiskFreeSpace&gt;
(04)   &lt;SerialNumber>123-F2560&lt;/SerialNumber&gt;
(05)   &lt;LastAuditDate>1998-05-25T13:30:15&lt;/LastAuditDate&gt;
(06)   &lt;Volume&gt;
(07)      &lt;Drive>D:&lt;/Drive&gt;
(08)      &lt;Label>MyDrive-D&lt;/Label&gt;
(09)      &lt;TotalCapacity>30000000000&lt;/TotalCapacity&gt;
(10)      &lt;FreeSpace>26462809800&lt;/FreeSpace&gt;
(11)   &lt;/Volume&gt;
(12)   &lt;Volume&gt;
(13)      &lt;Drive>X:&lt;/Drive&gt;
(14)      &lt;Label>MyDrive-X&lt;/Label&gt;
(15)      &lt;TotalCapacity>5000000000&lt;/TotalCapacity&gt;
(16)      &lt;FreeSpace>5000000000&lt;/FreeSpace&gt;
(17)   &lt;/Volume&gt;
(18)   &lt;Volume&gt;
(19)      &lt;Drive>E:&lt;/Drive&gt;
(20)      &lt;Label>MyDrive-E&lt;/Label&gt;
(21)      &lt;TotalCapacity>22500000000&lt;/TotalCapacity&gt;
(22)      &lt;FreeSpace&gt;16056784170&lt;/FreeSpace&gt;
(23)   &lt;/Volume&gt;
(24) &lt;/Disk&gt;</eg>
    </example>
    
    <p>
     Lines (12) - (17) show the result of the Put@Insert operation. Drive C was
     removed and X was inserted at position 2 in between drive D and E since
     the expression targeted the 2<sup>nd</sup> Volume element after the
     removal of C.
    </p>
    
    <p>
     An example Put message using the QName dialect is shown in
     <specref ref="putresponse_qname"/>.
     For brevity only the message body is shown.
    </p>
    
    <example id="putresponse_qname">
     <head>Put message using the QName dialect</head>
     <eg>(01) &lt;s:Body&gt;
(02)   &lt;wsrt:Put Dialect="http://www.w3.org/2009/02/ws-rst/Dialect/QName"
(03)       xmlns:d="http://example.org/sample">
(04)     &lt;wsrt:Fragment Mode='http://www.w3.org/2009/02/ws-rst/Modify'&gt;
(05)       &lt;wsrt:Expression&gt;
(06)         d:Volume
(07)       &lt;/wsrt:Expression&gt;
(08)       &lt;wsrt:Value&gt;
(09)         &lt;d:Volume&gt;
(10)           &lt;d:Drive>F:&lt;/d:Drive&gt;
(11)           &lt;d:Label>MyDrive-F&lt;/d:Label&gt;
(12)           &lt;d:TotalCapacity>5000000000&lt;/d:TotalCapacity&gt;
(13)         &lt;/d:Volume&gt;
(14)         &lt;d:Volume&gt;
(15)           &lt;d:Drive>D:&lt;/d:Drive&gt;
(16)           &lt;d:Label>MyDrive-D&lt;/d:Label&gt;
(17)           &lt;d:TotalCapacity>30000000000&lt;/d:TotalCapacity&gt;
(18)         &lt;/d:Volume&gt;
(19)       &lt;/wsrt:Value&gt;
(20)     &lt;/wsrt:Fragment&gt;
(21)     &lt;wsrt:Fragment Mode='http://www.w3.org/2009/02/ws-rst/Insert'&gt;
(22)       &lt;wsrt:Expression&gt;
(23)         d:Volume
(24)       &lt;/wsrt:Expression&gt;
(25)       &lt;wsrt:Value&gt;
(26)         &lt;d:Volume&gt;
(27)           &lt;d:Drive>X:&lt;/d:Drive&gt;
(28)           &lt;d:Label>MyDrive-X&lt;/d:Label&gt;
(29)           &lt;d:TotalCapacity&gt;5000000000&lt;/d:TotalCapacity&gt;
(30)         &lt;/d:Volume&gt;
(31)       &lt;/wsrt:Value&gt;
(32)     &lt;/wsrt:Fragment&gt;
(33)   &lt;/wsrt:Put&gt;
(34) &lt;/s:Body&gt;</eg>
    </example>
    
    <p>
     Line (04) again indicates that the fragment needs to be updated (i.e
     logically removed and then replaced). The target fragment of the resource
     is the set of d:Volume elements, identified by the wsrt:Expression
     contents on line (06). Lines (08) - (19) show the new value for this
     set of elements to use to replace the old set.
    </p>
    
    <p>
     Lines (21) - (32) indicates that a fragment should be inserted into the
     representation that results from applying the first fragment update.
     Lines (25) - (31) show the content of the new Volume which is added at
     the end.
    </p>
    
    <p>
     The updated resource representation is illustrated in
     <specref ref="after_put2"/>.
    </p>
    
    <example id="after_put2">
     <head>Updated resource representation</head>
     <eg>(01) &lt;Disk xmlns="http://example.org/sample"&gt;
(02)    &lt;DiskCapacity>62500000000&lt;/DiskCapacity&gt;
(03)    &lt;DiskFreeSpace>524182841&lt;/DiskFreeSpace&gt;
(04)    &lt;SerialNumber>123-F2560&lt;/SerialNumber&gt;
(05)    &lt;LastAuditDate>1998-05-25T13:30:15&lt;/LastAuditDate&gt;
(06)    &lt;Volume&gt;
(07)      &lt;Drive>F:&lt;/Drive&gt;
(08)      &lt;Label>MyDrive-F&lt;/Label&gt;
(09)      &lt;TotalCapacity>5000000000&lt;/TotalCapacity&gt;
(10)      &lt;FreeSpace>5000000000&lt;/FreeSpace&gt;
(11)    &lt;/Volume&gt;
(12)    &lt;Volume&gt;
(13)     &lt;Drive>D:&lt;/Drive&gt;
(14)     &lt;Label>MyDrive-D&lt;/Label&gt;
(15)     &lt;TotalCapacity>30000000000&lt;/TotalCapacity&gt;
(16)     &lt;FreeSpace>30000000000&lt;/FreeSpace&gt;
(17)    &lt;/Volume&gt;
(18)    &lt;Volume&gt;
(19)       &lt;Drive>X:&lt;/Drive&gt;
(20)       &lt;Label>MyDrive-X&lt;/Label&gt;
(21)       &lt;TotalCapacity>5000000000&lt;/TotalCapacity&gt;
(22)       &lt;FreeSpace&gt;5000000000&lt;/FreeSpace&gt;
(23)    &lt;/Volume&gt;
(24) &lt;/Disk&gt;</eg>
    </example>
    
    <p>
     Lines (06) - (17) show the result of the Put@Modify operation. Drives C, D
     and E are replaced by drives D and F. Effectively, drives C and E are
     removed and drive F is inserted. Lines (18) - (23) show the result of the
     Put@Insert operation. The Volume element for drive X is added at the end
     of the array of Volumes.
    </p>
   </div2>

   <div2 id="Create">
    <head>Create</head>
 
    <p>
     The WS-Transfer "Create" operation is used for creating a
     resource via an initial representation. The resource factory that receives a
     Create request will allocate a new resource that is initialized from the
     presented representation. The new resource will be assigned a
     factory-service-determined
     endpoint reference that is returned in the response message. In many cases, the
     information required to create a resource may markedly differ from the initial
     representation (the value as realized by a subsequent "Get"
     operation), and supplying the initial representation is not viable.
    </p>
    
    <p>
     WS-ResourceTransfer extends the "Create" operation to create
     a resource from zero or more specified fragments of the XML representation.
     WS-ResourceTransfer further extends the "Create" operation such that any
     resource metadata MAY be created as part of the creation of the resource.
    </p>
    
    <p>The extended outline for the "Create" operation is:</p>
    <example>
     <eg><kw>[Headers]</kw>
  &lt;wsrt:ResourceTransfer s:mustUnderstand="true"/&gt;

<kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-tra/Create

<kw>[Body]</kw>
  &lt;wsrt:Create Dialect="<emph>xs:anyURI</emph>"?&gt;
    &lt;wsmex:Metadata&gt;<emph>resource metadata</emph>&lt;/wsmex:Metadata&gt; ?
    &lt;wsrt:Fragment&gt;
      &lt;wsrt:Expression&gt;<emph>xs:any</emph>&lt;/wsrt:Expression&gt; ?
      &lt;wsrt:Value ...&gt;<emph>xs:any</emph>&lt;/wsrt:Value&gt;
    &lt;/wsrt:Fragment&gt; *
  &lt;/wsrt:Create&gt;</eg>
    </example>
    
    <p>
     The following describes additional constraints on the outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Header]</kw>/wsrt:ResourceTransfer </label>
      <def>
       <p>
        If present and understood, a resource MUST process the
        <kw>[Body]</kw> in its entirety and comply with its content. 
        If not present 
        then a resource MUST treat this request as described in WS-Transfer 
        Create <bibref ref="WsTransfer"/>.
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Create </label>
      <def>
       <p>
        An element that specifies the fragments of the resource
        representation to be initialized during resource creation and 
        optionally any resource metadata that is to be created as part of 
        the creation of the resource. This element MUST be present if the 
        wsrt:ResourceTransfer header is present.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Create/@Dialect </label>
      <def>
       <p>
        This URI indicates which expression dialect will be used to
        identify the fragment(s) of the resource representation to be 
        initialized during resource creation. This attribute MUST be present 
        when the message contains a wsrt:Expression element.
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Create/wsmex:Metadata </label>
      <def>
       <p>
        When present this optional element MUST contain at least
        one wsmex:MetadataSection. This is resource metadata to be created and
        initialized during the creation of the resource.
       </p>
       <p>
        A resource factory MUST generate an InvalidMetadataFault if
        the Create request message contains a wsmex:Dialect that is not 
        supported or if the resource metadata contains values that are 
        not supported for the resource.
       </p>
       <p>
        This element MAY contain a wsmex:MetadataSection with a wsmex:Dialect
        of http://www.w3.org/2009/02/ws-rst allowing the
        requestor to specify desired metadata as defined in this 
        specification (such as lifecycle metadata).
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Create/Fragment </label>
      <def>
       <p>
        This element encompasses a single resource fragment to be
        initialized during the resource creation. If there are multiple 
        Fragment elements then the resource MUST appear to have been 
        created as though each fragment were processed in the sequence 
        specified in the Create message.
       </p>
       <p>
        If the request contains more Fragment elements than the resource
        supports the resource MUST return a fault which SHOULD be
        wsrt:MultipartLimitExceededFault.
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Create/Fragment/Expression </label>
      <def>
       <p>
        When present this optional element contains an expression
        that identifies a resource fragment to be initialized during resource
        creation.  The expression identifies the fragment in the resource
        representation as it
        appears <emph>after</emph> successful processing of the current 
        fragment. Absence of
        this element is equivalent to an Expression that identifies the entire
        resource representation. The value of this element MUST conform to the
        dialect specified
        in the <kw>[Body]</kw>/wsrt:Create/@Dialect attribute. A resource 
        factory MUST
        generate an InvalidExpressionFault if the expression is invalid. 
        If the expression syntax is not valid with respect to the dialect 
        then a resource factory SHOULD
        specify a fault detail of "InvalidExpressionSyntax". If the 
        expression is not valid for the resource type then the resource 
        factory SHOULD specify a fault detail of "InvalidExpressionValue".
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> <kw>[Body]</kw>/wsrt:Create/Fragment/Value </label>
      <def>
       <p>
        This element contains the data to be written to the
        resource representation. If the resource factory is unable to write the
        requested fragment then it MUST generate a CreateFault.
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>
     If the resource factory accepts a Create request, it MUST reply with a
     response of the following form:
    </p>
    
    <example>
     <eg><kw>[Headers]</kw>
  &lt;wsrt:ResourceTransfer/&gt;

<kw>[Action]</kw>
  http://www.w3.org/2009/02/ws-tra/CreateResponse

<kw>[Body]</kw>
  &lt;wst:ResourceCreated&gt;
      <emph>wsa:EndpointReferenceType</emph>
  &lt;/wst:ResourceCreated&gt;</eg>
    </example>
    
    <p>
     The following describes additional constraints on the outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Headers]</kw>/wsrt:ResourceTransfer </label>
      <def>
       <p>
        This header indicates that the response contains body
        content defined in WS-ResourceTransfer.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/wst:ResourceCreated </label>
      <def>
       <p>
        This element contains the endpoint reference for the
        resource that was created. All subsequent access to the resource MUST 
        be done using this EPR.
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>
     If the request Body contained a wsrt:Create element then the
     new representation MUST be omitted in the response. Otherwise the
     response MUST be as described in WS-Transfer.
    </p>
    
    <p>
     An example Create message using the QName dialect is shown
     in <specref ref="create_qname"/>. For brevity only the message body 
     is shown.
    </p>
    
    <example id="create_qname">
     <head>Create message using the QName dialect</head>
     <eg>(01) &lt;s:Body&gt;
(02)   &lt;wsrt:Create Dialect="http://www.w3.org/2009/02/ws-rst/Dialect/QName"
(03)        xmlns:d="http://example.org/sample">
(04)     &lt;wsmex:Metadata&gt;
(05)       &lt;wsmex:MetadataSection Dialect="http://www.w3.org/
(06)                           2009/02/ws-rst">
(07)         &lt;wsrt:Metadata&gt;
(08)          &lt;wsrt:Lifetime&gt;
(09)           &lt;wsrt:TerminateAt&gt;
(10)            &lt;wsrt:TerminationTime&gt;
(11)             2006-04-11T12:00:00Z
(12)            &lt;/wsrt:TerminationTime&gt;
(13)            &lt;wsrt:CurrentTime&gt;
(14)             2006-04-10T10:00:54Z
(15)            &lt;/wsrt:CurrentTime&gt;
(16)           &lt;/wsrt:TerminateAt&gt;
(17)          &lt;/wsrt:Lifetime&gt;
(18)         &lt;/wsrt:Metadata&gt;
(19)       &lt;/wsmex:MetadataSection&gt;
(20)     &lt;/wsmex:Metadata&gt;
(21)     &lt;wsrt:Fragment&gt;
(22)       &lt;wsrt:Expression&gt;
(23)         d:Volume
(24)       &lt;/wsrt:Expression&gt;
(25)       &lt;wsrt:Value&gt;
(26)         &lt;d:Volume&gt;
(27)           &lt;d:Drive>C:&lt;/d:Drive&gt;
(28)           &lt;d:Label>MyDrive-C&lt;/d:Label&gt;
(29)           &lt;d:TotalCapacity>10000000000&lt;/d:TotalCapacity&gt;
(30)         &lt;/d:Volume&gt;
(31)         &lt;d:Volume&gt;
(32)           &lt;d:Drive>D:&lt;/d:Drive&gt;
(33)           &lt;d:Label>MyDrive-D&lt;/d:Label&gt;
(34)           &lt;d:TotalCapacity&gt;30000000000&lt;/d:TotalCapacity&gt;
(35)         &lt;/d:Volume&gt;
(36)       &lt;/wsrt:Value&gt;
(37)     &lt;/wsrt:Fragment&gt;
(38)   &lt;/wsrt:Create&gt;
(39) &lt;/s:Body&gt;</eg>
    </example>
    
    <p>
     Line (09) indicates that the resource, once created, is scheduled for
     destruction at the specific time. Messages sent to the EPR returned in
     the CreateResponse, after this time, will fault. Line (23) indicates that
     resource is created with a specific value or set of values for the
     &lt;d:Volume&gt; property. Lines (25) - (36) specify the set of values of
     the &lt;d:Volume&gt; property. The response to this "Create"
     message is illustrated in <specref ref="createresponse_qname"/>.
    </p>
    
    <example id="createresponse_qname">
     <head>CreateResponse</head>
     <eg>(01) &lt;s:Body&gt;
(02)     &lt;wst:ResourceCreated&gt;
(03)       &lt;wsa:Address>http://www.example.org/diskport&lt;/wsa:Address&gt;
(04)       &lt;wsa:ReferenceParameters&gt;
(05)         &lt;xyz:ManagedResource&gt;44355&lt;/xyz:ManagedResource&gt;
(06)       &lt;/wsa:ReferenceParameters&gt;
(07)     &lt;/wst:ResourceCreated&gt;
(08) &lt;/s:Body&gt;</eg>
    </example>
    
    <p>
     Lines (02) - (07) show the EPR to the disk resource that is returned in
     the response message.
    </p>
   </div2>
  </div1>
  
  <div1 id="faults">
   <head>Faults</head>
 
   <p>
    WS-ResourceTransfer faults MUST include as the <kw>[Action]</kw> property
    the following fault action URI:
   </p>
   
   <example>
    <eg>http://www.w3.org/2009/02/ws-rst/fault</eg>
   </example>
   
   <p>
    The faults defined in this section are generated if the condition
    stated in the preamble is met. Faults are targeted at a
    destination endpoint according to the fault handling rules defined
    in <bibref ref="AddrCore"/>.
   </p>
   
   <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;
      http://www.w3.org/2009/02/ws-rst/fault
    &lt;/wsa:Action&gt;
    &lt;!-- Headers elided for clarity. --&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="unreachable">
    <head>wsa:DestinationUnreachable</head>
 
    <p>
     This fault is sent in response to a message that is targeted at a
     resource that cannot be found and is deemed not to exist. This may be 
     because the resource was never created or because the resource has 
     been destroyed - there is no distinction between these cases.
    </p>
    
    <p>
     The SOAP bindings for this fault are defined in 
     <bibref ref="AddrCore"/>.
    </p>
   </div2>

   <div2 id="unavailable">
    <head>wsa:EndpointUnavailable</head>
 
    <p>
     The resource is unable to process the message at this time due to
     some transient issue. The endpoint MAY optionally include a wsa:RetryAfter
     parameter in the detail. The source should not retransmit the message until
     this duration has passed.
    </p>
    
    <p>
     The SOAP bindings for this fault are defined in 
     <bibref ref="AddrCore"/>.
    </p>
   </div2>

   <div2 id="concurrency">
    <head>ConcurrencyFault</head>
 
    <p>
     This fault is generated by a resource to indicate that it was
     unable to process a message due to concurrent access. A requester 
     might choose to handle this condition by retrying the operation that 
     caused it.
    </p>
    
    <table id="soapprops" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:ConcurrencyFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> 
        Could not access the resource due to concurrency and/or
        locking conditions
       </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="baddialect">
    <head>UnsupportedDialectFault</head>
 
    <p>
     This fault is generated by a resource to indicate that the expression
     dialect used to identify a resource fragment is not supported by the 
     resource for the current operation. The fault detail SHOULD contain the 
     Dialect values that the resource does support for the operation.
    </p>
    
    <table id="tab_baddialect" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left">
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:UnsupportedDialectFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> The requested dialect is not supported </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> &lt;wsrt:Dialect&gt;<emph>xs:anyURI</emph>&lt;/wsrt:Dialect&gt; * </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="badexpression">
    <head>InvalidExpressionFault</head>
 
    <p>
     This fault is sent by a resource if a &lt;wsrt:Expression&gt;
     element has an syntax that is invalid according to the definition of the
     expression dialect. If the expression syntax is not valid with respect 
     to the dialect then a resource SHOULD specify a fault detail of
     "InvalidExpressionSyntax", indicating which expression this detail 
     applies to.  If the expression is not valid for the resource type then 
     the resource SHOULD specify a fault detail of "InvalidExpressionValue", 
     indicating which expression this detail applies to.
    </p>
    
    <table id="tab_badexpression" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left">
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:InvalidExpressionFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> The specified Expression is not valid </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> 
        <example>
         <eg>&lt;wsrt:InvalidExpressionSyntax&gt;
  &lt;wsrt:Expression&gt;<emph>xs:any</emph>&lt;/wsrt:Expression&gt; +
&lt;/wsrt:InvalidExpressionSyntax&gt;
|
&lt;wsrt:InvalidExpressionValue&gt;
  &lt;wsrt:Expression&gt;<emph>xs:any</emph>&lt;/wsrt:Expression&gt; +
&lt;/wsrt:InvalidExpressionValue&gt;</eg>
        </example>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="getfault">
    <head>GetFault</head>
 
    <p>
     This fault is generated by a resource if it is unable to
     process a valid Get message.
    </p>
    
    <table id="tab_getfault" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left">
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Receiver </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:GetFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> Unable to process Get message </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="validity">
    <head>ResourceValidityFault</head>
 
    <p>
     This fault is generated by a resource if the result of processing
     a Put message would cause the resource representation to become invalid. The
     fault detail MAY include the wsrt:Fragment element in the Put message
     that caused this fault to be generated.
    </p>
    
    <table id="tab_validity" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left">
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:ResourceValidityFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> The requested resource modification is not valid. </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> &lt;wsrt:Fragment&gt;<emph>fragment</emph>&lt;/wsrt:Fragmant&gt; ? </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="dupfrag">
    <head>FragmentAlreadyExistsFault</head>
 
    <p>
     This fault is generated by a resource if a "Put" message
     specifies the "http://www.w3.org/2009/02/ws-rst/Insert" mode and 
     identifies a non-repeated fragment
     element (maxOccurrs = 1) that already exists. The fault detail MAY include
     the wsrt:Fragment that failed to be processed.
    </p>
    
    <table id="tab_dupfrag" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:FragmentAlreadyExistsFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> The fragment already exists </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> &lt;wsrt:Fragment&gt;<emph>fragment</emph>&lt;/wsrt:Fragment&gt; ? </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="putfault">
    <head>PutFault</head>
 
    <p>
     This fault is generated by a resource if it is unable to
     process a valid Put message. The fault detail MAY include the wsrt:Fragment
     that failed to be processed.
    </p>
    
    <p>
     The fault detail SHOULD include a wsrt:SideAffects element
     in the fault detail to indicate whether any changes occurred. A value of
     "true" indicates some changes occurred; a value of "false" indicates no
     changes occurred. Absence of the element indicates that changes may
     have occurred.
    </p>
    
    <table id="tab_putfault" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Receiver </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:PutFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> Unable to process Put message </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> 
        <example>
         <eg>&lt;wsrt:Fragment&gt;<emph>fragment</emph>&lt;/wsrt:Fragment&gt; ?
&lt;wsrt:SideEffects&gt;<emph>xs:boolean</emph>&lt;/wsrt:SideEffects&gt; ?</eg>
        </example>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="badputmode">
    <head>PutModeUnsupportedFault</head>
 
    <p>
     This fault is generated by a resource if a "Put" message
     specifies a mode that is not supported by the resource.
    </p>
    
    <table id="tab_badputmode" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:PutModeUnsupportedFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> The Put mode is not supported </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> <emph>The unsupported Mode URI</emph> </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="createfault">
    <head>CreateFault</head>
 
    <p>
     This fault is generated by a resource if it is unable to
     process a valid Create message. The fault detail MAY include the 
     wsrt:Fragment that failed to be processed.
    </p>
    
    <table id="tab_createfault" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left">
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Receiver </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:CreateFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> Unable to process Create message </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> &lt;wsrt:Fragment&gt;<emph>fragment</emph>&lt;/wsrt:Fragment&gt; ? </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="badmetadata">
    <head>InvalidMetadataFault</head>
 
    <p>
     This fault is generated by a resource factory if a "Create"
     message contains a wsmex:Dialect that is not supported or if the resource
     metadata contains values that are not supported for the resource.
    </p>
    
    <table id="tab_badmetadata" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:InvalidMetadataFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> Resource metadata values not supported by resource </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="exceedmulti">
    <head>MultipartLimitExceededFault</head>
 
    <p>
     This fault is generated by a resource if a request message exceeds
     the limit of wsrt:Expression or wsrt:Fragment elements supported for the
     dialect. The fault detail MUST contain the maximum number of 
     wsrt:Expression or wsrt:Fragment elements supported for the dialect.
    </p>
    
    <table id="tab_exceedmulti" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:MultipartLimitExceededFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> Access to multiple fragments exceeded the supported
            number of fragments in a single message </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td>
        &lt;wsrt:MultipartLimit&gt;<emph>xs:positiveInteger</emph>&lt;/wsrt:MultipartLimit&gt;
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="putsyntaxfault">
    <head>InvalidPutSyntaxFault</head>
 
    <p>
     This fault is generated by a resource if a Put request
     specifying a Mode "http://www.w3.org/2009/02/ws-rst/Remove" 
     contains a wsrt:Value element or if a Put 
     request specifying a Mode "http://www.w3.org/2009/02/ws-rst/Insert" 
     or "http://www.w3.org/2009/02/ws-rst/Modify" does not contain a 
     wsrt:Value element.
    </p>
    
    <table id="tab_putsyntaxfault" border="1">
     <tbody>
      <tr>
       <th align="left"> <kw>[Action]</kw> </th>
       <th align="left"> 
        http://www.w3.org/2009/02/ws-rst/fault 
       </th>
      </tr>
      <tr>
       <td> <kw>[Code]</kw> </td>
       <td> s12:Sender </td>
      </tr>
      <tr>
       <td> <kw>[Subcode]</kw> </td>
       <td> wsrt:InvalidRemoveSyntaxFault </td>
      </tr>
      <tr>
       <td> <kw>[Reason]</kw> </td>
       <td> Invalid syntax used for Put request </td>
      </tr>
      <tr>
       <td> <kw>[Detail]</kw> </td>
       <td> </td>
      </tr>
     </tbody>
    </table>
   </div2>
  </div1>

  <div1 id="security">
   <head>Security</head>
 
   <p>
    It is strongly recommended that the communication between services be
     secured using the mechanisms described in <bibref ref="WSSec"/>.
   </p>
   
   <p>
    In order to properly secure messages, the
    body (even if empty) and all relevant headers need to be included in the
    signature. Specifically, the WS-Addressing header blocks and WS-Security
    timestamp need to be signed along with the body in order to "bind"
    them together and prevent certain types of attacks.
   </p>
   
   <p>
    If a requestor is issuing multiple messages
    to a resource reference, then it is recommended that a security context be
    established using the mechanisms described in <bibref ref="WSTrust"/> and
    <bibref ref="WSSecConv"/>. It is further recommended that if shared
    secrets are used, message-specific derived keys also be used to protect
    the secret from crypto attacks.
   </p>
   
   <p>
    The access control semantics of resource
    references are out-of-scope of this specification and are specific to each
    resource reference. Similarly, any protection mechanisms on resource 
    references independent of transfer (e.g. embedded signatures and 
    encryption) are also out-of-scope.
   </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),
      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="RFC 2119" id="Rfc2119"
     href="http://www.ietf.org/rfc/rfc2119.txt" >
      <titleref>
       Key words for use in RFCs to Indicate Requirement Levels
      </titleref>
      , S. Bradner, Harvard University, March 1997.
    </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="Soap12"
     href="http://www.w3.org/TR/soap12-part1/">
     <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="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="WS-I BP 1.1" id="WS_I"
     href="http://www.ws-i.org/Profiles/BasicProfile-1.1.html">
     <titleref>
      WS-I Basic Profile Version 1.1
     </titleref>
     , K. Ballinger, et al, April 2006.
    </bibl>

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

    <bibl key="WS-Transfer" id="WsTransfer"
     href="http://www.w3.org/2009/02/ws-tra">
     <titleref>
      Web Services Transfer (WS-Transfer)
     </titleref>
     , J. Alexander, et al, March 2006.
    </bibl>

    <bibl key="WS-Security" id="WSSec"
     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>
     , OASIS standard.
    </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="WS-SecureConversation" id="WSSecConv">
     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="XML Schema, Part 1" id="XmlSchemaPart1"
     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="XmlSchemaPart2"
     href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">
     <titleref>
      XML Schema Part 2: Datatypes
     </titleref>
     , James Clark, et al, November 1999.
    </bibl>

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

 <back>
  <div1 id="a_xpath1">
   <head>XPath Level 1</head>
 
   <p>
    XPath Level 1 is a subset of the abbreviated relative syntax
    of XPath 1.0, and is used to identify or select a node within a resource
    representation or fragment. It is identified by the following URI:
   </p>
   
   <example>
    <eg>http://www.w3.org/2009/02/ws-rst/Dialect/XPath-Level-1</eg>
   </example>
   
   <p>
    The following XPath Level 1 grammar is LL(1), and the
    nonterminal productions are in angle brackets. Terminal symbols are
    either literals, or in UPPERCASE:
   </p>
   
   <example>
    <eg>(01) &lt;xpath> ::=  &lt;context> &lt;node_sequence&gt;;
(02)
(03) &lt;context> ::= '/' | &lt;&gt;;
(04)
(05) &lt;node_sequence&gt; ::=
(06)    &lt;element> &lt;optional_collection_operator> &lt;more&gt;;
(07)
(08) &lt;optional_collection_operator> ::= '[' &lt;array_location&gt; ']';
(09) &lt;optional_collection_operator> ::= &lt;&gt;;
(10)
(11) &lt;more> ::= '/' &lt;follower> | &lt;&gt;;
(12)
(13) &lt;follower&gt; ::=
(14)     &lt;attribute> | &lt;text_function> | &lt;node_sequence&gt;;
(15)
(16) &lt;element>        ::= &lt;qualified_name&gt;;
(17) &lt;attribute>      ::= '@' &lt;qualified_name&gt;;
(18)
(19) &lt;qualified_name> ::= &lt;name> &lt;qname_follower&gt;;
(20) &lt;qname_follower> ::= ':' &lt;name&gt; | &lt;&gt;;
(21) &lt;text_function&gt;  ::= "text()" ;
(22) &lt;array_location&gt; ::= NONZERO_DECIMAL_UNSIGNED_INTEGER;
(23) &lt;name&gt;           ::= XML_TOKEN;</eg>
   </example>
   
   <p>
    The terminal tokens which require further lexical
    specification are NONZERO_DECIMAL_UNSIGNED_INTEGER, whose values are in the
    subrange (1...4294967295), and XML_TOKEN whose values are equivalent to 
    those for the XML Schema type <emph>xs:token</emph>. This grammar 
    is small enough
    that it can be easily implemented in resource-constrained implementations.
   </p>
   
   <p>
    The following comments on the grammar will clarify certain
    constructs within the BNF.
   </p>
   
   <p>
    Most of the examples assume the following XML sample acting
    as a "resource" document:
   </p>
   
   <example>
    <eg>(01) &lt;a&gt;
(02)   &lt;b&gt;
(03)     &lt;c d="30"&gt; 20 &lt;/c&gt;
(04)   &lt;/b&gt;
(05)   &lt;e&gt;
(06)     &lt;f/&gt;
(07)     &lt;f/&gt;
(08)   &lt;/e&gt;
(09) &lt;/a&gt;</eg>
   </example>
   
   <p>
    The context and document root node need
    clarification. XPath Level 1 assumes that the root is the root
    node of the resource document, not the SOAP envelope or any other wrapper
    element which may contain the resource.
   </p>
   
   <p>
    Further, the default context is the root element and the
    context position is 1.
   </p>
   
   <p>
    In view of this, the / operator selects the containing root,
    and the only valid operand which may follow it is the outermost element 
    of the resource:
   </p>
   
   <example>
    <eg>(01) /a</eg>
   </example>
   
   <p>The following paths are equivalent:</p>
   
   <example>
    <eg>(01) /a/b
(02) b</eg>
   </example>
   
   <p>
    Note that because the context node is the root element, a
    relative path selects a matching child element.
   </p>
   
   <p>
    The &lt;node_sequence&gt; production provides the recursive
    behavior for the XPath:
   </p>
   
   <example>
    <eg>(01) /a/b/c
(02) b/c</eg>
   </example>
   
   <p>
    It also provides for selecting specific repeated elements
    through the &lt;optional_collection_operator&gt; production:
   </p>
   
   <example>
    <eg>(01) /a/e/f[2]</eg>
   </example>
   
   <p>
    The collection operator only takes unsigned nonzero values,
    as defined above for NONZERO_DECIMAL_UNSIGNED_INTEGER. Thus, [1] is the
    first of a repeating series of elements.
   </p>
   
   <p>
    The &lt;qualified_name&gt; production allows the XML naming
    tokens to be either namespace-qualified or unqualified:
   </p>
   
   <example>
    <eg>(01) /ns1:a/ns2:b/c</eg>
   </example>
   
   <p>
    The namespace bindings are evaluated against any namespace
    declarations that are in scope where the XPath appears within the SOAP
    message.
   </p>
   
   <p>
    NOTE: If the element name is unqualified, i.e. appears
    without a namespace prefix, then the element name MUST be matched against a
    matching element name in the resource document, regardless of namespace
    bindings that are in effect, including default bindings. This allows
    implementations to simply match element names in the majority of cases.
    If namespace bindings are significant for all elements, then qualified names
    must be used.
   </p>
   
   <p>
    The &lt;follower&gt; production allows for special-casing of
    the final tokens of the XPath allowing it to end in either an attribute
    or text.
   </p>
   
   <p>
    The text() NodeTest may be applied as a final token to the
    selected element. This NodeTest selects any text nodes that are
    children of the selected element. If the element only contains text
    content, the
    return value will be a node-set containing a single text node.
   </p>
   
   <example>
    <eg>(01) b/c/text()</eg>
   </example>
   
   <p>
    The above expression would return a node-set containing a
    single text node with the value <emph>20 </emph>as its result. This text 
    node would then be serialized into the following XML representation:
   </p>
   
   <example>
    <eg>(01) &lt;wsrt:TextNode&gt;20&lt;/wsrt:TextNode&gt;</eg>
   </example>
   
   <p>
    If accessed, attributes must be the final token in the path
    and they may be namespace-qualified or unqualified names, as required:
   </p>
   
   <example>
    <eg>(01) /a/b/c/@d</eg>
   </example>
   
   <p>
    The above expression would return a node-set containing a
    single attribute node with the value <emph>d="30"</emph> as its result. This
    attribute node would then be serialized into the following XML
    representation:
   </p>
   
   <example>
    <eg>(01) &lt;wsrt:AttributeNode name="d"&gt;30&lt;/wsrt:AttributeNode&gt;</eg>
   </example>
   
   <p>
    Selection of an element returns the element and its entire
    content. The path <emph>/a/b </emph>executed against the sample XML 
    returns a
    node-set containing a single element node which serializes directly:
   </p>
   
   <example>
    <eg>(01) &lt;b&gt; &lt;c d="30"&gt; 20 &lt;/c&gt; &lt;/b&gt;</eg>
   </example>
   
   <p>
    In the event that there is more than one node which would
    match the XPath, the implementation SHOULD select or return the first node
    only. This allows simple implementations to avoid the overhead of
    checking the remainder of the resource document for a possible match.
   </p>
   
   <p>
    Conformant implementations MAY supply additional functions
    and capabilities, but MUST adhere to the minimum behavior described above.
   </p>
  </div1>

  <div1 id="rt_metadata">
   <head>Resource Metadata Content</head>
 
   <p>
    A resource can have associated metadata that MAY be
    specified when the resource is created. A resource may provide access to 
    that metadata after it has been created and some aspects of a resource's
    metadata may be mutable.
   </p>
   
   <p>The form of the resource metadata is shown below.</p>
   
   <p><kw>Resource metadata:</kw></p>
   
   <example>
    <eg>(01) &lt;wsrt:Metadata&gt;
(02)   &lt;wsrt:Lifetime&gt;<emph>lifetime metadata</emph>&lt;/wsrt:Lifetime&gt; ?
(03)   &lt;wsrt:SupportedDialect&gt;
(04)     <emph>dialect metadata</emph>
(05)   &lt;/wsrt:SupportedDialect&gt; *
(06)   ...
(07) &lt;/wsrt:Metadata&gt;</eg>
   </example>
   
   <p>
    Metadata can be associated with a resource as described in
    WS-MetadataExchange.
    The following wsmex:GetMetadata/wsmex:Dialect URI is defined to
    indicate metadata as defined in this specification:
   </p>
   
   <example>
    <eg>http://www.w3.org/2009/02/ws-rst</eg>
   </example>
   
   <p>
    This is used in the wsmex:GetMetadata message to return
    resource metadata. It is RECOMMENDED that a resource whose
    metadata is mutable use the form of a wsmex:MetadataSection that contains an
    EPR which is a reference to a "metadata resource".
   </p>
   
   <p>
    The metadata defined by this specification includes
    lifecycle metadata as well as capability information about supported 
    dialects as described in the following sub-sections.
   </p>

   <div2 id="lifemeta">
    <head>Lifecycle metadata</head>
  
    <p>
     Resources have a distinct lifecycle in that they may be
     created and they may be destroyed. There is no distinction between 
     a resource that has been destroyed and a resource that has not been 
     created.
    </p>
    
    <p>
     Resources MAY allow their lifecycle metadata to be queried
     and changed and MAY support operations to operate on their 
     lifecycle metadata.  The following are properties of a resource's 
     lifecycle metadata:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[termination time]</kw> </label>
      <def>
       <p>
        The time at which the resource will be destroyed. The
        environment controlling the resource MUST NOT destroy the resource 
        before this time but MAY choose to delay its destruction after this 
        time.   However, client applications MUST NOT assume that the 
        resource will be available beyond this date/time.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[current time]</kw> </label>
      <def>
       <p>
        The current time, as measured by the resource. This can be used to 
        estimate local clock variations between time measured by a resource and
        time measured by an application that uses the resource.
       </p>
      </def>
     </gitem>
    </glist>
    
    <p>The form of resource lifecycle metadata is shown below. </p>
    
    <p><kw>Resource lifecycle metadata:</kw></p>
    
    <example>
     <eg>(01) &lt;wsrt:Lifetime&gt;
(02)   ( &lt;wsrt:TerminateAt&gt;
(03)       &lt;wsrt:TerminationTime&gt;<emph>xs:dateTime</emph>&lt;/wsrt:TerminationTime&gt;
(04)       &lt;wsrt:CurrentTime&gt;<emph>xs:dateTime</emph>&lt;/wsrt:CurrentTime&gt;
(05)     &lt;/wsrt:TerminateAt&gt; |
(06)     &lt;wsrt:TerminateAfter&gt;<emph>xs:duration</emph>&lt;/wsrt:TerminateAfter&gt; |
(07)     &lt;wsrt:TerminateAfterIdle&gt;
(08)       <emph>xs:duration</emph>
(09)     &lt;/wsrt:TerminateAfterIdle&gt; )
(10) &lt;/wsrt:Lifetime&gt;</eg>
    </example>
    
    <glist>
     <gitem>
      <label> wsrt:Lifetime/wsrt:TerminateAt </label>
      <def>
       <p>
        This element contains elements that specify the
        <kw>[termination time]</kw> and <kw>[current time]</kw> as 
        absolute times, as measured 
        by the resource.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> wsrt:Lifetime/wsrt:TerminateAt/wsrt:TerminationTime </label>
      <def>
       <p>
        This element specifies the <kw>[termination time]</kw> as an
        absolute time, as measured by the resource, after which the 
        resource will be destroyed.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> wsrt:Lifetime/wsrt:TerminateAt/wsrt:CurrentTime </label>
      <def>
       <p>
        This element specifies the <kw>[current time]</kw> as an absolute
        time, as measured by the resource. This can be used to estimate local 
        clock variations between time measured by a resource and time measured 
        by an application that uses the resource.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> wsrt:Lifetime/wsrt:TerminateAfter </label>
      <def>
       <p>
        This element specifies the <kw>[termination time]</kw> as a duration
        after the current time that the resource will be destroyed.
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> wsrt:Lifetime/wsrt:TerminateAfterIdle </label>
      <def>
       <p>
        This element specifies the <kw>[termination time]</kw> as an amount of time to
        wait after a message to the resource before automatically destroying
        it. Any message sent to the resource SHOULD reset this timer.
       </p>
      </def>
     </gitem>
    </glist>
   </div2>
 
   <div2 id="expmetadata">
    <head>Expression Dialect metadata</head>
  
    <p>
     Resources can support different expression dialects, as
     described above in Expression Dialect. A resource MAY declare which
     dialects it supports through its resource metadata.
    </p>
    
    <p>
     The form of resource expression dialect metadata is shown below.
    </p>
    
    <p><kw>Resource expression metadata:</kw></p>
    
    <example>
     <eg>(01) &lt;wsrt:SupportedDialect DialectName="<emph>xs:anyURI</emph>"&gt;
(02)   &lt;wsrt:SupportedOperation OperationName="<emph>xs:anyURI</emph>"&gt;
(03)     &lt;wsrt:SupportedPutMode&gt;
(04)     <emph>xs:anyURI</emph>
(05)     &lt;/wsrt:SupportedPutMode&gt; *
(06)     &lt;wsrt:MultipartLimit&gt;
(07)       <emph>xs:positiveInteger</emph>
(08)     &lt;/wsrt:MultipartLimit&gt; ?
(09)   &lt;/wsrt:SupportedOperation&gt; *
(10) &lt;/wsrt:SupportedDialect&gt;</eg>
    </example>
    
    <glist>
     <gitem>
      <label> wsrt:SupportedDialect </label>
      <def>
       <p>
        This element encapsulates all the metadata about the
        support of a specific expression dialect. The resource MUST support 
        each of the dialects in this list and MAY support others.
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> wsrt:SupportedDialect/@DialectName </label>
      <def>
       <p>
        The URI that uniquely identifies the dialect.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> wsrt:SupportedDialect/wsrt:SupportedOperation </label>
      <def>
       <p>
        This element encapsulates all the metadata regarding the
        behaviour of the subject expression dialect for a specific WS-Transfer
        operation. If this element is absent, then all WS-Transfer operations 
        and all Put Modes are supported for the subject dialect.
       </p>
      </def>
     </gitem>
    
     <gitem>
      <label> 
       wsrt:SupportedDialect/wsrt:SupportedOperation/@OperationName
      </label>
      <def>
       <p>
        The Action URI that indicates the Get, Put or Create operation.
       </p>
      </def>
     </gitem>

     <gitem>
      <label>
       wsrt:SupportedDialect/wsrt:SupportedOperation/wsrt:SupportedPutMode
      </label>
      <def>
       <p>
        This element contains a Mode URI that is supported for the
        operation for the subject dialect. If this element is absent, then all 
        Mode URIs defined by this specification are supported for the 
        operation for the subject dialect. This 
        element is present only when the @OperationName indicates the "Put"
        operation.
       </p>
      </def>
     </gitem>

     <gitem>
      <label>
       wsrt:SupportedDialect/wsrt:SupportedOperation/wsrt:MultipartLimit
      </label>
      <def>
       <p>
        Indicates the maximum number of &lt;wsrt:Expression&gt; elements
        supported for a Get operation or the maximum number of 
        &lt;wsrt:Fragment&gt; elements supported for a Put or Create operation 
        for the subject dialect. If
        this element is absent then there is no limit for the operation for the
        subject dialect. A resource that specifies this metadata MUST generate
        a MultipartLimitExceededFault if it receives a message that exceeds the
        limit of wsrt:Expression or wsrt:Fragment elements supported for the
        operation for the subject dialect.
       </p>
      </def>
     </gitem>
    </glist>
   </div2>
  </div1>

  <div1 id="schema">
   <head>XML Schema</head>
 
   <p>
    A normative copy of the XML Schema <bibref ref="XmlSchemaPart1"/>, 
    <bibref ref="XmlSchemaPart2"/> description 
    for this specification can be retrieved from the following address:
   </p>
  
   <example>
    <eg><loc href="http://www.w3.org/2009/02/ws-rst/wsrt.xsd">http://www.w3.org/2009/02/ws-rst/wsrt.xsd</loc></eg>
   </example>
   
   <p>
    A non-normative copy of the XML Schema description is listed
    below for convenience.
   </p>
   
   <example>
    <eg>&lt;xs:schema
      targetNamespace="http://www.w3.org/2009/02/ws-rst"
    xmlns:wsrt="http://www.w3.org/2009/02/ws-rst"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsmex="http://www.w3.org/2009/02/ws-mex"
    elementFormDefault="qualified" blockDefault="#all">

  &lt;xs:import
      namespace="http://www.w3.org/2005/08/addressing"
      schemaLocation="http://www.w3.org/2006/03/addressing/ws-addr.xsd"/>
  &lt;xs:import namespace="http://www.w3.org/2009/02/ws-mex"
    schemaLocation=
      "http://www.w3.org/2009/02/ws-mex/MetadataExchange.xsd"/>

  &lt;!-- ResourceMetadata section --&gt;

  &lt;!-- A wsmex:MetadaSection with a wsmex:Dialect of
       http://www.w3.org/2009/02/ws-rst
       contains the following Metadata element
  -->

  &lt;xs:element name="Metadata"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref="wsrt:Lifetime" minOccurs="0"/&gt;
        &lt;xs:element ref="wsrt:SupportedDialect"
                    minOccurs="0" maxOccurs="unbounded"/>
        &lt;xs:any minOccurs="0" maxOccurs="unbounded"
                namespace="##other"  processContents="lax"/>
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="Lifetime"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:choice&gt;
          &lt;xs:element ref="wsrt:TerminateAt"/&gt;
          &lt;xs:element name="TerminateAfter" type="xs:duration"/&gt;
          &lt;xs:element name="TerminateAfterIdle" type="xs:duration"/&gt;
        &lt;/xs:choice&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="TerminateAt"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="TerminationTime" type="xs:dateTime"/&gt;
        &lt;xs:element name="CurrentTime" type="xs:dateTime"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="SupportedDialect"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref="wsrt:SupportedOperation"
                    minOccurs="0" maxOccurs="unbounded"/>
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name='DialectName' type='xs:anyURI' use='required'/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="SupportedOperation"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="SupportedPutMode" type="xs:anyURI"
                    minOccurs="0" maxOccurs="unbounded"/>
        &lt;xs:element name="MultipartLimit"
                    type="xs:positiveInteger" minOccurs="0"/>
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name='OperationName' type='xs:anyURI' use='required'/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;!-- Shared Types section --&gt;
  &lt;xs:complexType name='MixedAnyType' final='restriction' mixed="true"&gt;
    &lt;xs:complexContent mixed="true"&gt;
      &lt;xs:restriction base="xs:anyType"&gt;
        &lt;xs:sequence&gt;
          &lt;xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

  &lt;xs:complexType name='ResultType' final='restriction'&gt;
    &lt;xs:complexContent&gt;
      &lt;xs:extension base='wsrt:MixedAnyType'/&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

  &lt;xs:complexType name='ExpressionType' final='restriction'&gt;
    &lt;xs:complexContent&gt;
      &lt;xs:extension base='wsrt:MixedAnyType'/&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

  &lt;xs:element name='Expression' type='wsrt:ExpressionType'/&gt;

  &lt;xs:complexType name='FragmentType'&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element ref='wsrt:Expression'
                 minOccurs='0' maxOccurs='1'/>
      &lt;xs:element name='Value' type='wsrt:MixedAnyType'
                 minOccurs='0' maxOccurs='1'/>
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;

  &lt;xs:element name='Fragment' type='wsrt:FragmentType'/&gt;

  &lt;xs:element name="ResourceTransfer"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:anyAttribute namespace="##other" processContents="lax"/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;!-- Create section --&gt;
  &lt;xs:element name='Create'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref='wsmex:Metadata' minOccurs='0'/&gt;
        &lt;xs:element ref='wsrt:Fragment' minOccurs='0' maxOccurs='unbounded'/&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name='Dialect' type='xs:anyURI'/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="CreateResponse"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref="wsrt:ResourceCreated"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name="ResourceCreated" type="wsa:EndpointReferenceType"/&gt;

  &lt;!-- Put section --&gt;

  &lt;xs:element name='Put'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name='Fragment' type='wsrt:PutFragmentType'
                    maxOccurs='unbounded'/>
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name='Dialect' type='xs:anyURI'/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:complexType name='PutFragmentType'&gt;
    &lt;xs:complexContent&gt;
      &lt;xs:extension base="wsrt:FragmentType"&gt;
        &lt;xs:attribute name='Mode' type='xs:anyURI' use='required'/&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;

  &lt;xs:element name="PutResponse"&gt;
    &lt;xs:complexType/&gt;
  &lt;/xs:element&gt;

  &lt;!-- Get section --&gt;

  &lt;xs:element name='Get'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref='wsrt:Expression' minOccurs='0'
                    maxOccurs='unbounded'/>
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name='Dialect' type='xs:anyURI'/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name='GetResponse'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name='Result' type='wsrt:ResultType'
                    maxOccurs='unbounded'/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;!-- Fault section --&gt;

  &lt;xs:simpleType name="FaultCodeTypes"&gt;
    &lt;xs:restriction base="xs:QName"&gt;
      &lt;xs:enumeration value="wsrt:ConcurrencyFault"/&gt;
      &lt;xs:enumeration value="wsrt:UnsupportedDialectFault"/&gt;
      &lt;xs:enumeration value="wsrt:InvalidExpressionFault"/&gt;
      &lt;xs:enumeration value="wsrt:GetFault"/&gt;
      &lt;xs:enumeration value="wsrt:ResourceValidityFault"/&gt;
      &lt;xs:enumeration value="wsrt:FragmentAlreadyExistsFault"/&gt;
      &lt;xs:enumeration value="wsrt:PutFault"/&gt;
      &lt;xs:enumeration value="wsrt:PutModeUnsupportedFault"/&gt;
      &lt;xs:enumeration value="wsrt:CreateFault"/&gt;
      &lt;xs:enumeration value="wsrt:InvalidMetadataFault"/&gt;
      &lt;xs:enumeration value="wsrt:MultipartLimitExceededFault"/&gt;
      &lt;xs:enumeration value="wsrt:InvalidPutSyntaxFault"/&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;

  &lt;xs:element name='Dialect' type='xs:anyURI'/&gt;

  &lt;xs:element name='InvalidExpressionSyntax'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref='wsrt:Expression' maxOccurs='unbounded'/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name='InvalidExpressionValue'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref='wsrt:Expression' maxOccurs='unbounded'/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name='MultipartLimit' type='xs:positiveInteger'/&gt;

  &lt;xs:element name='SideEffects' type='xs:boolean'/&gt;

  &lt;!-- XPath section --&gt;

  &lt;xs:element name='AttributeNode'&gt;
    &lt;xs:complexType&gt;
      &lt;xs:simpleContent&gt;
        &lt;xs:extension base='xs:string'&gt;
          &lt;xs:attribute name='name' type='xs:QName'/&gt;
        &lt;/xs:extension&gt;
      &lt;/xs:simpleContent&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;

  &lt;xs:element name='TextNode' type='xs:string'/&gt;

  &lt;xs:element name='NodeSet' type='wsrt:ResultType'/&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 for this specification can be retrieved from the following
    address:
   </p>
   
   <example>
    <eg><loc href="http://www.w3.org/2009/02/ws-rst/wsrt.wsdl">http://www.w3.org/2009/02/ws-rst/wsrt.wsdl</loc></eg>
   </example>
   
   <p>
    A non-normative copy of the WSDL description is listed below
    for convenience.
   </p>
   
   <example>
    <eg>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;wsdl:definitions targetNamespace=
    "http://www.w3.org/2009/02/ws-rst"
     xmlns:wsrt="http://www.w3.org/2009/02/ws-rst"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wst="http://www.w3.org/2009/02/ws-tra"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

  &lt;wsdl:types&gt;
    &lt;xs:schema&gt;
      &lt;xs:include schemaLocation=
        "http://www.w3.org/2009/02/ws-rst/wsrt.xsd"/>
    &lt;/xs:schema&gt;
  &lt;/wsdl:types&gt;

  &lt;wsdl:message name="CreateRequestMessage"&gt;
    &lt;wsdl:part name="Body" element="wsrt:Create"/&gt;
  &lt;/wsdl:message&gt;

  &lt;wsdl:message name="CreateResponseMessage"&gt;
    &lt;wsdl:part name="Body" element="wsrt:CreateResponse"/&gt;
  &lt;/wsdl:message&gt;

  &lt;wsdl:message name="GetRequestMessage"&gt;
    &lt;wsdl:part name="Body" element="wsrt:Get"/&gt;
  &lt;/wsdl:message&gt;

  &lt;wsdl:message name="GetResponseMessage"&gt;
    &lt;wsdl:part name="Body" element="wsrt:GetResponse"/&gt;
  &lt;/wsdl:message&gt;

  &lt;wsdl:message name="PutRequestMessage"&gt;
    &lt;wsdl:part name="Body" element="wsrt:Put"/&gt;
  &lt;/wsdl:message&gt;

  &lt;wsdl:message name="PutResponseMessage"&gt;
    &lt;wsdl:part name="Body" element="wsrt:PutResponse"/&gt;
  &lt;/wsdl:message&gt;

  &lt;wsdl:portType name="ResourceInterface"&gt;
    &lt;wsdl:documentation&gt;
      This port type contains the Get and Put
      operations defined in WS-ResourceTransfer.
    &lt;/wsdl:documentation&gt;
    &lt;wsdl:operation name="Get"&gt;
      &lt;wsdl:input message="wsrt:GetRequestMessage"
        wsam:Action="http://www.w3.org/2009/02/ws-tra/Get"/>
      &lt;wsdl:output message="wsrt:GetResponseMessage"
        wsam:Action=
          "http://www.w3.org/2009/02/ws-tra/GetResponse"/>
    &lt;/wsdl:operation&gt;
    &lt;wsdl:operation name="Put"&gt;
      &lt;wsdl:input message="wsrt:PutRequestMessage"
        wsam:Action="http://www.w3.org/2009/02/ws-tra/Put"/>
      &lt;wsdl:output message="wsrt:PutResponseMessage"
        wsam:Action=
          "http://www.w3.org/2009/02/ws-tra/PutResponse"/>
    &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;

  &lt;wsdl:portType name="ResourceFactoryInterface"&gt;
    &lt;wsdl:documentation&gt;
      This port type contains the Create operation
      defined in WS-ResourceTransfer.
    &lt;/wsdl:documentation&gt;
    &lt;wsdl:operation name="Create"&gt;
      &lt;wsdl:input message="wsrt:CreateRequestMessage"
        wsam:Action="http://www.w3.org/2009/02/ws-tra/Create"/>
      &lt;wsdl:output message="wsrt:CreateResponseMessage"
        wsam:Action=
          "http://www.w3.org/2009/02/ws-tra/CreateResponse"/&gt;
    &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
&lt;/wsdl:definitions&gt;</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=6412">6412</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/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=6425">6425</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/12 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6548">6548</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/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/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>
    </tbody>
   </table>
  </div1>

 </back>

</spec>
