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

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

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

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

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

  <status id='Status'>
   <p>This is the First Public Working Draft.</p>
   <p>
    Publication as a Working Draft does not imply endorsement by the
    W3C Membership. This is a draft document and can be updated, replaced
    or obsoleted by other documents at any time. It is inappropriate to
    cite this document as other than work in progress.
   </p>
  </status>
 
  <abstract>
   <p>
    This specification defines how metadata
    associated with a Web service endpoint can be represented as
    <bibref ref='WS-Transfer'/> resources or HTTP resources, how metadata can
    be embedded in <bibref ref='AddrCore'/>
    endpoint references, how metadata could be
    retrieved from a metadata resource, and how metadata associated with 
    implicit features can be advertised.
   </p>
  </abstract>
  
  <langusage>
   <language id="en">English</language>
  </langusage>

  <revisiondesc>
   <p>Last Modified: $Date: 2011/07/05 20:03:25 $</p>
  </revisiondesc>

 </header>

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

   <p>
    By using the XML, SOAP <bibref ref="SOAP11"/>,
    <bibref ref="SOAP12"/>, and WSDL <bibref ref="WSDL11"/>
    extensibility models, the Web service
    specifications (WS-*) are designed to be composed with each other
    to provide a rich set of tools for the Web
    services environment. This specification specifically relies on
    other Web service specifications to provide secure, reliable,
    and/or transacted message delivery and to express Web service and
    client policy.
   </p>
  </div1>

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

   <p>
    Web services use metadata to describe what other endpoints need to know 
    to interact with them. Specifically, <bibref ref='wspolicy'/> 
    describes the capabilities, requirements, and general characteristics 
    of Web services; <bibref ref='WSDL11'/> describes abstract message 
    operations, concrete network protocols, and endpoint addresses used 
    by Web services; XML Schema <bibref ref='XMLSchema1'/>, 
    <bibref ref='XMLSchema2'/> describes the structure and contents of 
    XML-based messages received by and sent by Web services.
   </p>

   <p>
    To bootstrap communication with Web services this specification defines 
    how metadata can be treated as a HTTP resources or as 
    <bibref ref='WS-Transfer'/> resources 
    for retrieval purposes, how metadata can be embedded in WS-Addressing 
    endpoint references, and how Web service endpoints can OPTIONALLY 
    support a request-response interaction for the retrieval of metadata.
    When the type of metadata sought is clearly known, e.g., 
    <bibref ref='wspolicy'/>, a requester MAY indicate that only that 
    type is to be returned; where additional types of metadata are being 
    used, or are expected, or when a requester needs to retrieve all of 
    the metadata relevant to subsequent interactions with an endpoint, a 
    requester MAY indicate that all available metadata, regardless of their 
    types, are expected.
   </p>

   <p>
    The mechanisms defined herein are intended for the retrieval of 
    metadata (i.e., Web service description information) only. They are 
    not intended to provide a general purpose query or retrieval 
    mechanism for other types of data associated with a Web service, 
    such as state data, properties and attribute values, etc.
   </p>

   <div2 id='Requirements'>
    <head>Requirements</head>

    <p>
     This specification intends to meet the following requirements:
    </p>

    <ulist>
     <item>
      <p>
       Define a mechanism for retrieving metadata about a Web service endpoint.
      </p>
     </item>

     <item>
      <p>
       Define an encapsulation format for metadata.
      </p>
     </item>

     <item>
      <p>
       Treat the metadata about a Web service endpoint as 
       <bibref ref='WS-Transfer'/> resources, or as an HTTP reachable resource.
      </p>
     </item>

     <item>
      <p>
       Define a bootstrap mechanism for retrieving metadata.
      </p>
     </item>
     
     <item>
      <p>
       Support future versions of known metadata formats.
      </p>
     </item>

     <item>
      <p>
       Allow new metadata formats to be added.
      </p>
     </item>
    </ulist>
   </div2>
   
   <div2 id='Examples'>
    <head>Examples</head>

    <p>
     <specref ref="GetWSDLRequest"/> illustrates a sample GetWSDL request 
     for the WSDL metadata document of a service.
    </p>

    <example id="GetWSDLRequest">
     <head>Sample GetWSDL request message</head>

     <eg>(01)  &lt;s11:Envelope
(02)     xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'
(03)     xmlns:wsa='http://www.w3.org/2005/08/addressing'>
(04)     xmlns:wst='http://www.w3.org/&wstra.nsprefix;/ws-tra'>
(05)    &lt;s11:Header>
(06)      &lt;wsa:Action>
(07)        http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetWSDL
(08)      &lt;/wsa:Action>
(09)      &lt;wsa:To>http://services.example.org/stockquote&lt;/wsa:To>
(10)      &lt;wsa:ReplyTo>
(11)        &lt;wsa:Address>http://client.example.org&lt;/wsa:Address>
(12)      &lt;/wsa:ReplyTo>
(13)      &lt;wsa:MessageID>
(14)        urn:uuid:1cec121a-82fe-41da-87e1-3b23f254f128
(15)      &lt;/wsa:MessageID>
(16)    &lt;/s11:Header>
(17)    &lt;s11:Body>
(18)      &lt;mex:GetWSDL/>
(19)    &lt;/s11:Body>
(20)  &lt;/s11:Envelope> </eg>
    </example>

    <p>
     <specref ref="GetWSDLResponse"/> lists a sample response to the request 
     in <specref ref="GetWSDLRequest"/>.
    </p>

    <example id="GetWSDLResponse">
     <head>Sample GetWSDLResponse message</head>

     <eg>(01)   &lt;s11:Envelope
(02)      xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'
(03)      xmlns:wsa='http://www.w3.org/2005/08/addressing'
(04)      xmlns:wsp='http://www.w3.org/ns/ws-policy'
(05)      xmlns:mex='http://www.w3.org/&wsmex.nsprefix;/ws-mex'>
(06)    &lt;s11:Header>
(07)      &lt;wsa:To>http://client.example.org&lt;/wsa:To>
(08)      &lt;wsa:Action>
(09)        http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetWSDLResponse
(10)      &lt;/wsa:Action>
(11)      &lt;wsa:RelatesTo>
(12)        urn:uuid:73d7edfc-5c3c-49b9-ba46-2480caee43e9
(13)      &lt;/wsa:RelatesTo>
(14)    &lt;/s11:Header>
(15)    &lt;s11:Body>
(16)      &lt;mex:GetWSDLResponse>
(17)        &lt;wsdl:definitions ...>
(18)          &lt;!-- WSDL data removed for brevity -->
(19)        &lt;/wsdl:definitions>
(18)      &lt;/mex:GetWSDLResponse>
(19)    &lt;/s11:Body>
(20)  &lt;/s11:Envelope> </eg>
    </example>

    <p>
     Lines 17-19 in <specref ref="GetWSDLResponse"/> is the WSDL of
     the service.
    </p>

    <p>
     <specref ref="GetRequest"/> illustrates a sample 
     <bibref ref='WS-Transfer'/> Get request for a resource'
     s representation.
    </p>

    <example id="GetRequest">
     <head>Sample Get request message</head>

     <eg>(01)  &lt;s11:Envelope
(02)     xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'
(03)     xmlns:wsa='http://www.w3.org/2005/08/addressing'>
(04)     xmlns:wst='http://www.w3.org/&wstra.nsprefix;/ws-tra'>
(05)    &lt;s11:Header>
(06)      &lt;wsa:Action>
(07)        http://www.w3.org/&wsmex.nsprefix;/ws-tra/Get
(08)      &lt;/wsa:Action>
(09)      &lt;wsa:To>http://services.example.org/stockquote/metadata&lt;/wsa:To>
(10)      &lt;wsa:ReplyTo>
(11)        &lt;wsa:Address>http://client.example.org&lt;/wsa:Address>
(12)      &lt;/wsa:ReplyTo>
(13)      &lt;wsa:MessageID>
(14)        urn:uuid:1cec121a-82fe-41da-87e1-3b23f254f128
(15)      &lt;/wsa:MessageID>
(16)    &lt;/s11:Header>
(17)    &lt;s11:Body>
(18)      &lt;wst:Get/>
(19)    &lt;/s11:Body>
(20)  &lt;/s11:Envelope&gt;</eg>
    </example>

    <p>
     The sample request message of <specref ref="GetRequest"/> is a 
     <bibref ref='WS-Transfer'/> request for the retrieval of a 
     resource's representation. In this case, the requested representation 
     is the WS-MetadataExchange Metadata element about a Web service 
     endpoint. The fact that the resource's representation is a 
     mex:Metadata element might be known to the requestor but is not 
     explicitly encoded in the request message.
    </p>

    <p>
     <specref ref="GetResponse"/> illustrates a sample response to the 
     request of <specref ref="GetRequest"/>.
    </p>

    <example id="GetResponse">
     <head>Sample response message with metadata</head>

     <eg>(01)  &lt;s11:Envelope
(02)      xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'
(03)      xmlns:xs='http://www.w3.org/2001/XMLSchema'
(04)      xmlns:wsa='http://www.w3.org/2005/08/addressing'
(05)      xmlns:mex='http://www.w3.org/&wsmex.nsprefix;/ws-mex'
(06)      xmlns:wsp='http://www.w3.org/ns/ws-policy'
(07)      xmlns:wst='http://www.w3.org/&wsmex.nsprefix;/ws-tra'
(08)      xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
(09)    &lt;s11:Header>
(10)      &lt;wsa:Action>
(11)        http://www.w3.org/&wsmex.nsprefix;/ws-tra/GetResponse
(12)      &lt;/wsa:Action>
(13)      &lt;wsa:To>http://client.example.org&lt;/wsa:To>
(14)      &lt;wsa:RelatesTo>
(15)        urn:uuid:1cec121a-82fe-41da-87e1-3b23f254f128
(16)      &lt;/wsa:RelatesTo>
(17)    &lt;/s11:Header>
(18)    &lt;s11:Body>
(19)      &lt;wst:GetResponse>
(20)        &lt;mex:Metadata>
(21)          &lt;mex:MetadataSection Dialect='wsdl:definitions'>
(22)            &lt;wsdl:definitions>
(23)              &lt;!-- WSDL data removed for brevity -->
(24)            &lt;/wsdl:definitions>
(25)          &lt;/mex:MetadataSection>
(26)          &lt;mex:MetadataSection
(27)              Dialect='xs:schema'
(28)              Identifier='http://services.example.org/stockquote/schemas'>
(29)            &lt;mex:MetadataLocation>
(30)              http://services.example.org/stockquote/schemas
(31)            &lt;/mex:MetadataLocation>
(32)          &lt;/mex:MetadataSection>
(33)          &lt;mex:MetadataSection
(34)              Dialect='wsp:Policy'
(35)              Identifier='http://services.example.org/stockquote/policy'>
(36)            &lt;mex:MetadataReference>
(37)              &lt;wsa:Address>
(38)                http://services.example.org/stockquote/policy
(39)              &lt;/wsa:Address>
(40)            &lt;/mex:MetadataReference>
(41)          &lt;/mex:MetadataSection>
(42)        &lt;/mex:Metadata>
(43)      &lt;/wst:GetResponse>
(44)    &lt;/s11:Body>
(45)  &lt;/s11:Envelope&gt;</eg>
    </example>

    <p>
     The message of <specref ref="GetResponse"/> is a 
     <bibref ref='WS-Transfer'/> 
     response message to the request of <specref ref="GetRequest"/>. The 
     content 
     of the <kw>[Body]</kw> (lines 18-44) is a mex:Metadata element with 
     metadata 
     about the Web service endpoint (lines 20-42). The mex:Metadata 
     contains three MetadataSections. The first MetadataSection 
     (lines 21-25) contains the <bibref ref='WSDL11'/> of the Web 
     service endpoint. The second MetadataSection (lines 26-32) contains 
     the location of the XML Schemas <bibref ref='XMLSchema1'/>,
     <bibref ref='XMLSchema2'/> used by the WSDL document. The schemas can 
     be retrieved through an HTTP GET request at the identified URL 
     (lines 29-31). The third MetadataSection (lines 33-41) contains 
     the <bibref ref='AddrCore'/> endpoint reference (lines 36-40) of 
     a <bibref ref='WS-Transfer'/> resource the representation of 
     which is a <bibref ref='wspolicy'/> document as indicated by 
     the Dialect attribute (line 34).
    </p>

    <p>
     While the WS-Policy of the Web service endpoint could be retrieved using 
     a WS-Transfer Get request directed to the endpoint identified by the 
     mex:MetadataReference element in lines 36-40 of 
     <specref ref="GetResponse"/>,
     some endpoints MAY support explicit requests for metadata via the 
     GetMetadata operation.
     <specref ref="GetMexReq"/> illustrates a sample GetMetadata request 
     for the <bibref ref='wspolicy'/>.
    </p>

    <example id="GetMexReq">
     <head>Sample GetMetadata request message</head>

     <eg>(01)  &lt;s11:Envelope
(02)      xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'
(03)      xmlns:wsa='http://www.w3.org/2005/08/addressing'
(04)      xmlns:wsp='http://www.w3.org/ns/ws-policy'
(05)      xmlns:mex='http://www.w3.org/&wsmex.nsprefix;/ws-mex' >
(06)    &lt;s11:Header>
(07)      &lt;wsa:To>http://services.example.org/stockquote&lt;/wsa:To>
(08)      &lt;wsa:Action>
(09)        http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetMetadata
(10)      &lt;/wsa:Action>
(11)      &lt;wsa:MessageID>
(12)        urn:uuid:73d7edfc-5c3c-49b9-ba46-2480caee43e9
(13)      &lt;/wsa:MessageID>
(14)      &lt;wsa:ReplyTo>
(15)        &lt;wsa:Address>http://client.example.org&lt;/wsa:Address>
(16)      &lt;/wsa:ReplyTo>
(17)    &lt;/s11:Header>
(18)    &lt;s11:Body>
(19)      &lt;mex:GetMetadata>
(20)        &lt;mex:Dialect Type='{http://www.w3.org/ns/ws-policy}Policy'
(21)          Identifier='http://services.example.org/stockquote/policy'/>
(22)      &lt;/mex:GetMetadata>
(23)    &lt;/s11:Body>
(24)  &lt;/s11:Envelope&gt;</eg>
    </example>

    <p>
     Lines 8-10 in <specref ref="GetMexReq"/> indicate this is a GetMetadata 
     request. As lines 19-22 indicate, this request is for the policy of 
     the Web service endpoint (line 7).
    </p>

    <p>
     <specref ref="GetMexRes"/> lists a sample response to the request in 
     <specref ref="GetMexReq"/>.
    </p>

    <example id="GetMexRes">
     <head>Sample GetMetadataResponse message</head>

     <eg>(01)   &lt;s11:Envelope
(02)      xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'
(03)      xmlns:wsa='http://www.w3.org/2005/08/addressing'
(04)      xmlns:wsp='http://www.w3.org/ns/ws-policy'
(05)      xmlns:mex='http://www.w3.org/&wsmex.nsprefix;/ws-mex'>
(06)    &lt;s11:Header>
(07)      &lt;wsa:To>http://client.example.org&lt;/wsa:To>
(08)      &lt;wsa:Action>
(09)        http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetMetadataResponse
(10)      &lt;/wsa:Action>
(11)      &lt;wsa:RelatesTo>
(12)        urn:uuid:73d7edfc-5c3c-49b9-ba46-2480caee43e9
(13)      &lt;/wsa:RelatesTo>
(14)    &lt;/s11:Header>
(15)    &lt;s11:Body>
(16)      &lt;mex:GetMetadataResponse>
(17)        &lt;mex:Metadata>
(18)          &lt;mex:MetadataSection
(19)              Dialect='wsp:Policy'
(20)              Identifier='http://services.example.org/stockquote/policy'>
(21)            &lt;wsp:Policy>
(22)              &lt;wsp:ExactlyOne>
(23)                &lt;!-- Policy alternatives -->
(24)              &lt;/wsp:ExactlyOne>
(25)            &lt;/wsp:Policy>
(26)          &lt;/mex:MetadataSection>
(27)        &lt;/mex:Metadata>
(28)      &lt;/mex:GetMetadataResponse>
(29)    &lt;/s11:Body>
(30)  &lt;/s11:Envelope&gt;</eg>
    </example>

    <p>
     Lines 8-10 in <specref ref="GetMexRes"/> indicate this message is a 
     response to a GetMetadata request, and lines 11-13 indicate that it 
     is a response to the request in <specref ref="GetMexReq"/>. Lines 
     17-26 contain a single MetadataSection (lines 18-26); line 19 
     indicates that the metadata in this section is of type, or 
     Dialect, WS-Policy while line 20 identifies a specific policy 
     document. Line 23 would have contained the policy expressions for the 
     Web service endpoint to which the GetMetadata request of 
     <specref ref="GetMexReq"/> was directed.
    </p>
   </div2>
  </div1>

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

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

   <div2 id="Conventions">
    <head>Notational Conventions</head>

    <p>
     The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 
     "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 
     document are to be interpreted as described in RFC 2119 
     <bibref ref='RFC2119'/>.
    </p>

    <p>
     This specification uses the following syntax to define 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="XMLNS"/>) 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 IRI. </p>
      </def>
     </gitem>
     
     <gitem>
      <label> <kw>[Body]</kw> </label>
      <def>
       <p> A message body. </p>
      </def>
     </gitem>
    </glist>
     
    <p>
     These properties bind to a SOAP Envelope as follows:
    </p>
     
    <example>    
     <eg>&lt;s:Envelope&gt;
  &lt;s:Header&gt;
    <kw>[Headers]</kw>
    &lt;wsa:Action&gt;<kw>[Action]</kw>&lt;/wsa:Action&gt;
    ...
  &lt;/s:Header&gt;
  &lt;s:Body&gt;<kw>[Body]</kw>&lt;/s:Body&gt; 
&lt;/s:Envelope&gt;</eg>  
    </example>
 
    <p>
     This specification can be used in terms of XML Information Set (Infoset)
     <bibref ref="XMLInfoset"/>, even though the specification uses XML 1.0
     terminology. Valid Infoset for this specification is the one
     serializable in XML 1.0, hence the use of XML 1.0.
    </p>

    <p>
     The term "generate" is used in relation to the various faults defined
     by this specification to imply that a fault is produced and no
     further processing SHOULD be performed. In these cases the fault
     SHOULD be transmitted. However, there might be reasons when a compliant
     implementation can choose not to transmit the fault - for example,
     security concerns - in these situations the service MAY choose
     not to transmit the fault.
    </p>
   
   </div2>

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

    <p>
     The elements defined in this specification MAY be extended at the
     points indicated by their outlines and schema. Implementations MAY
     add child elements and/or attributes at the indicated extension
     points but MUST NOT contradict the semantics of the parent and/or
     owner, respectively. If a receiver does not recognize an extension,
     the receiver SHOULD ignore that extension. Senders MAY indicate
     the presence of an extension that has to be understood through the use
     of a corresponding SOAP Header with a soap:mustUnderstand attribute
     with the value "1".
    </p>

    <p>
     In cases where it is either desirable or necessary for the receiver
     of a request that has been extended to indicate that it has
     recognized and accepted the semantics associated with that extension,
     it is RECOMMENDED that the receiver add a corresponding extension
     to the response message.  The definition of an extension SHOULD clearly
     specify how the extension that appears in the response correlates
     with that in the corresponding request.
    </p>

    <p>
     Extension elements and attributes MUST NOT use the Web Services
     Metadata Exchange namespace URI.
    </p>
   </div2>
 
   <div2 id="terms">
    <head>Terminology</head>

    <glist>
     <gitem>
      <label> Service Endpoint </label>
      <def>
       <p>
        A Web service that is addressable using a WS-Addressing endpoint 
        reference. Within the context of this specification, it is assumed 
        that the consumer's primary goal is to interact with this service.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> Metadata Resource </label>
      <def>
       <p>
        A specialized Web service that is addressable using either a 
        WS-Addressing endpoint reference or a URL and whose main purpose is 
        to expose the XML representation of a piece of metadata associated 
        with a Service Endpoint.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     While technically a single Web service can be both a 'Service Endpoint' 
     as well as a 'Metadata Resource', for the purposes of clarifying the 
     various expectations of these two types Web services, this specification 
     will discuss these two concepts (or roles) as distinct entities.
    </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 conform to the
     WS-Addressing specifications and be sent to a Web service that
     is addressable by an EPR (see <bibref ref="AddrCore"/>).
    </p>

    <p>
     Unless otherwise noted, all IRIs are absolute IRIs and IRI comparison
     MUST be performed according to <bibref ref="RFC3987"/> section 5.3.1.
    </p>

    <p>
     For any message defined by this specification, any OPTIONAL elements
     or attributes in the message MAY be used by senders of the message;
     however receivers of those messages MUST support those OPTIONAL
     elements and attributes, unless other behavior is explicitly defined
     by this specification.
    </p>
    
    <p>
     Support for the GetMetadata operation by a Web service is 
     OPTIONAL. If metadata about a Web service endpoint is referenced by 
     a MetadataReference, which is a 
     <bibref ref='AddrCore'/> endpoint reference, then the MetadataReference 
     MUST refer to a <bibref ref='WS-Transfer'/> resource. 
     The referred resource MAY also support other resource management 
     and access specifications (e.g. HTTP, WS-ResourceFramework).
    </p>

    <p>
     Implementations are expected to support both UTF-8 and UTF-16 as
     described in XML 1.0.
    </p>

    <p>
     Implementations of this specification MUST conform to the corrected
     version of WSDL as defined by the 'WSDL Correction' sections of WS-I
     Basic Profile 1.2 <bibref ref="BP12"/> and WS-I Basic Profile 2.0
     <bibref ref="BP20"/>.
    </p>

   </div2>

   <div2 id="namespaces">
    <head>XML Namespaces</head>

    <p>
     The XML namespace URI that MUST be used by implementations of this 
     specification is:
    </p>  

    <example>
     <eg><loc href="http://www.w3.org/&wsmex.nsprefix;/ws-mex">http://www.w3.org/&wsmex.nsprefix;/ws-mex</loc></eg>
    </example>
  
    <p> 
     <specref ref="XMLNS"/> lists XML namespaces that are used in this 
     specification. The choice of any namespace prefix is arbitrary and 
     not semantically significant.
    </p>

    <table id="XMLNS" border="1">
     <caption> Prefixes and XML namespaces used in this specification </caption>

     <tbody>
      <tr>
       <th align="left"> Prefix </th>
       <th align="left"> XML Namespaces </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> wsdl </td>
       <td> http://schemas.xmlsoap.org/wsdl/ </td> 
       <td> <bibref ref="WSDL11"/> </td> 
      </tr>
      <tr>
       <td> wsp </td>
       <td> http://www.w3.org/ns/ws-policy </td> 
       <td> <bibref ref="wspolicy"/> </td> 
      </tr>
      <tr>
       <td> mex </td>
       <td> http://www.w3.org/&wsmex.nsprefix;/ws-mex </td> 
       <td> This specification </td> 
      </tr>
      <tr>
       <td> xs </td>
       <td> http://www.w3.org/2001/XMLSchema </td> 
       <td> <bibref ref="XMLSchema1"/> </td> 
      </tr>
      <tr>
       <td> wssa </td>
       <td> http://www.w3.org/&wssas.nsprefix;/ws-sas </td> 
       <td> <bibref ref="WS-SOAPAssertions"/> </td> 
      </tr>
      <tr>
       <td> wst </td>
       <td> http://www.w3.org/&wsmex.nsprefix;/ws-tra </td> 
       <td> <bibref ref="WS-Transfer"/> </td> 
      </tr>
     </tbody>
    </table>
 
    <p>
     The working group intends to update the value of the Web Services
     Metadata Exchange 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 Metadata Exchange 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>

  </div1>
 
  <div1 id = 'web-services-metadata'>
   <head>Web Services Metadata Collection</head> 

   <p>
    The WS-MetadataExchange Metadata element is a collection of metadata units 
    such as <bibref ref='WSDL11'/> definitions, <bibref ref='XMLSchema1'/> 
    documents, <bibref ref='wspolicy'/> expressions, etc. Each unit 
    corresponds to metadata for a given scope, domain, or namespace. The 
    collection of units is represented by a Metadata element, and units 
    within the collection are represented by MetadataSection elements.
   </p>
   
   <p>
    To facilitate processing, MetadataSections are tagged with a 
    @Dialect and @Identifier of the metadata unit. To ensure 
    scalability, a unit of metadata MAY be embedded within its 
    MetadataSection or MAY be included by reference, either an endpoint 
    reference <bibref ref='AddrCore'/> 
    (MetadataReference) or a URL (MetadataLocation).
   </p>

   <p>
    The outline for the Metadata element is: 
   </p>

   <example>
    <eg>&lt;mex:Metadata ...>
  &lt;mex:MetadataSection Dialect='<emph>xs:QName</emph>'
                       Identifier='<emph>xs:anyURI</emph>' ...>
  (
    &lt;mex:MetadataReference ...>
      <emph>endpoint-reference-type</emph>
    &lt;/mex:MetadataReference>
    |
    &lt;mex:MetadataLocation ...> <emph>xs:anyURI</emph> &lt;/mex:MetadataLocation>
    |
    DialectSpecificElement
  )
  &lt;/mex:MetadataSection> *
  <emph>xs:any</emph>*
&lt;/mex:Metadata&gt;</eg>
   </example>
    
   <p>
    The following describes additional constraints on the outline listed 
    above:
   </p>
   
   <glist>
    <gitem>
     <label>/mex:Metadata</label>
     <def>
      <p>
       This contains one MetadataSection child for each distinct unit of 
       metadata. When there is a large amount of metadata, the children 
       SHOULD contain MetadataReferences or MetadataLocations instead of the 
       actual information.
      </p>
     </def>
    </gitem>
     
    <gitem>
     <label>/mex:Metadata/mex:MetadataSection</label>
     <def>
      <p>
       This represents a single unit of metadata (e.g., a WSDL 
       definitions, an XML Schema document) for a given scope, domain, 
       or namespace. A MetadataSection contains exactly one child 
       element, either the embedded XML for the metadata unit, an 
       endpoint reference to a Metadata Resource for the metadata 
       unit, or a URL to metadata unit.
      </p>
     </def>
    </gitem>
 
    <gitem>
     <label>/mex:Metadata/mex:MetadataSection/@Dialect</label>
     <def>
      <p>
       This REQUIRED attribute 
       indicates the type and version of the metadata unit 
       contained in this MetadataSection (e.g., WSDL version 1.1).
       This MUST be the QName of the root element of the metadata.
      </p>

      <p>
       If there is more than one metadata unit with the same Dialect, e.g., 
       more than one XML Schema document, including them all, one per 
       MetadataSection, is explicitly encouraged.
      </p>

      <p>
       Note: the QName is serialized as {namespace-uri}localName.
      </p>
  
     </def>
    </gitem>

    <gitem>
     <label>
      /mex:Metadata/mex:MetadataSection/@Dialect='{http://www.w3.org/&wsmex.nsprefix;/ws-mex}Metadata'
     </label>
     <def>
      <p>
       This Dialect value indicates that the type of the metadata contained 
       within the MetadataSection is itself a mex:Metadata element.  
       When the Dialect value is used in conjunction with 
       mex:MetadataReference or mex:MetadataLocation, the Dialect value 
       provides the ability to include metadata by reference (an endpoint 
       reference or a URL).
       <specref ref="EPRMD"/> illustrates the use of this Dialect.
      </p>
     </def>
    </gitem>
    
    <gitem>
     <label>/mex:Metadata/mex:MetadataSection/@Identifier</label>
     <def>
      <p>
       This REQUIRED attribute indicates the Identifier for the metadata unit 
       in this MetadataSection. Identifier is an absolute IRI. 
      </p>

      <p>
       The interpretation of Identifier is Dialect-specific. 
       If the value of the 
       Dialect attribute of the MetadataSection is one of the values in 
       the table below, the Identifier attribute MUST have the indicated, 
       corresponding value. In other cases the value of the Identifier 
       attribute is not constrained.
       If there is no algorithm defined for how to determine the Identifier 
       value for a particular type of metadata, then the Identifier MUST 
       use a value of "" (empty string).
      </p>

      <table border='1'>
       <tbody>
        <tr>
         <th align="left"> Dialect QName </th>
         <th align="left"> @Identifier value </th>
        </tr>
        <tr>
         <td> xs:schema </td> 
         <td> xs:schema/@targetNamespace </td> 
        </tr>
        <tr>
         <td> wsdl:definitions </td> 
         <td> wsdl:definitions/@targetNamespace  </td> 
        </tr>
        <tr>
         <td> wsp:Policy </td> 
         <td> wsp:Policy/@Name </td> 
        </tr>
        <tr>
         <td> mex:Metadata </td> 
         <td> "" (empty string) </td> 
        </tr>
       </tbody>
      </table>
   
      <p>
       If there is more than one MetadataSection with the same 
       identifier, e.g., more than one XML Schema in the same target 
       namespace, including them all, one per MetadataSection, is 
       REQUIRED.
      </p>
   
     </def> 
    </gitem>

    <gitem>
     <label>/mex:Metadata/mex:MetadataSection/mex:MetadataReference</label>
     <def>
      <p>
       This is an endpoint reference to a metadata resource and is 
       of type EndpointReferenceType as defined by <bibref ref='AddrCore'/>. 
       The metadata resource MUST support the Get operation 
       <bibref ref='WS-Transfer'/> to allow the retrieval of the 
       metadata unit for the MetadataSection's Dialect and Identifier.
       When this element is present, it MUST have no 
       element siblings.
      </p>
     </def>
    </gitem>
    <gitem>
     <label>/mex:Metadata/mex:MetadataSection/mex:MetadataLocation</label>
     <def>
      <p>
       This contains a URL to metadata, and the metadata MUST be 
       retrievable from that URL using the primary access mechanism for 
       the scheme of the URL. For example, for an HTTP URL, the 
       metadata MUST be retrievable by sending an HTTP GET request to 
       the URL. When this element is present, it MUST have no 
       element siblings.
      </p>
     </def>
    </gitem>
    <gitem>
     <label>/mex:Metadata/mex:MetadataSection/DialectSpecificElement</label>
     <def>
      <p>
       When any element other than MetadataReference or MetadataLocation is 
       present, the element is to be interpreted as the representation of 
       the metadata unit associated with the MetadataSection's Dialect 
       and Identifier.
      </p>
     </def> 
    </gitem>
   </glist>
  </div1>
   
  <div1 id = 'metadata-resources'>
   <head>Metadata Resources</head> 

   <p>
    A resource is referred to as a 'metadata resource' when its 
    representation is of type mex:Metadata, as defined in 
    <specref ref="web-services-metadata"/>, or any other document format 
    (e.g. <bibref ref='XMLSchema1'/>,<bibref ref='XMLSchema2'/>,
    <bibref ref='WSDL11'/>, <bibref ref='wspolicy'/>) that is used to 
    describe some aspect of a service.
   </p>

   <p>
    When a metadata resource is addressable by an endpoint reference 
    the resource's representation MUST be retrievable using the Get operation 
    defined in <bibref ref='WS-Transfer'/> and MAY be updated as any other 
    <bibref ref="WS-Transfer"/> resource.  When the resource is addressed by 
    a URL the resource's representation MUST be retrievable using an 
    HTTP GET and MAY be updated as any other HTTP resource.
   </p>

   <p>
    To retrieve the representation of a metadata resource, a requester MAY 
    send a <bibref ref="WS-Transfer"/> Get request message to the metadata 
    resource's endpoint reference, or it MAY send an HTTP GET to the metadata 
    resource's IRI. These will fetch a one-time snapshot of the metadata. 
    The metadata associated with a service endpoint MAY be available as 
    multiple metadata resources. 
   </p>

   <p>
    The representation of a metadata resource MAY be a mex:Metadata element 
    which MAY contain one or more mex:MetadataSection children. Each 
    MetadataSection is identified by a specific Dialect and contains 
    information whose format and content depend on the Dialect. 
   </p>

   <p>
    A Web service endpoint MAY have one or more associated metadata 
    resources. 
   </p> 

   <p>
    It is important to note that metadata resources are themselves services. 
    In other words, a metadata resource can still accept GetWSDL or 
    GetMetadata requests, but such requests would apply to the metadata 
    about the metadata resource and not the original service that the metadata 
    resource describes.
   </p>
   
  </div1>

  <div1 id="Retrieving-Metadata">
   <head>Retrieving Metadata about Service Endpoints</head>
    
   <p>
    This specification defines two mechanism by which a requester can ask 
    a WS-MetadataExchange compliant 'service endpoint' for its metadata: 
    the GetWSDL operation and the GetMetadata 
    operation.
   </p>

   <p>
    GetWSDL provides the means to obtain a starting point for constructing 
    the relationships between the metadata documents that apply to a 
    service. It is useful in situations when the requester has no prior 
    knowledge of these relationships. The GetMetadata operation is useful 
    in cases where the requester is already aware of these relationships 
    or when it wishes to obtain a specific metadata document.
   </p>

   <div2 id="GetWSDL">
    <head>GetWSDL</head>
    
    <p>
     A requester MAY send a GetWSDL request message to an endpoint to 
     retrieve the service's WSDL metadata document. This operation MUST 
     be supported by compliant WS-MetadataExchange service endpoints. 
     Note, the GetWSDL operation 
     is a SOAP-based equivalent feature to the commonly supported HTTP GET 
     targeted at an endpoint's URL appended with "?wsdl".
    </p>
     
    <p>
     Through examination of this WSDL document, and by following any 
     references within it, a requester MUST be able to retrieve any metadata 
     needed to interact with the service. For example, the schema used by 
     the service might be embedded within the WSDL or could be available by 
     following a xs:import element. Likewise, as discussed in 
     <specref ref="ImplicitWSDL"/> through the inclusion of policy 
     assertions and nested metadata (or metadata references) within those 
     policy assertions, a requester MUST be able to determine the set of 
     implicit features available and any related metadata associated with 
     those features.
    </p>

    <p>
     The normative outline for a GetWSDL request is:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetWSDL

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

    <p>
     If the endpoint accepts a GetWSDL request, it MUST reply with a 
     GetWSDLResponse message. The normative outline for a GetWSDLResponse is: 
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetWSDLResponse

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

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

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/mex:GetWSDLResponse/xs:any </label>
      <def>
       <p>
        When the GetWSDLResponse element contains any child elements, the 
        first element MUST either be the WSDL metadata document, or a 
        reference to the WSDL metadata document, of the endpoint. 
        While an endpoint MAY choose to return a reference to the WSDL, it is 
        STRONGLY RECOMMENDED that the WSDL metadata document itself be 
        returned.  
        If a requester would like a reference to the WSDL then it can use the 
        GetMetadata operation specifying the appropriate Content URI.
       </p>
       <p>
        Any extension elements MUST appear after the WSDL document/reference. 
        The absence of any child elements indicates that the endpoint does 
        not have any WSDL document, or additional metadata, associated with it. 
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:GetWSDLResponse/wsdl:definitions </label>
      <def>
       <p>
        When present this OPTIONAL element contains the WSDL metadata 
        document of the endpoint.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:GetWSDLResponse/mex:Location </label>
      <def>
       <p>
        When present this OPTIONAL element contains a reference to the 
        WSDL metadata document of the endpoint.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:GetWSDLResponse/mex:Reference </label>
      <def>
       <p>
        When present this OPTIONAL element contains a reference to the 
        WSDL metadata document of the endpoint.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     This operation is safe; it will not result in any side effect
     imputable to the requester. This means that in case of an underlying
     protocol error that might get unnoticed, resending the same request
     can be done automatically.
    </p>


   </div2>

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

    <p>
     A requester MAY send a GetMetadata request message to an endpoint to 
     retrieve the metadata associated with that endpoint.
     This operation MAY be supported by WS-MetadataExchange compliant 
     service endpoints.
     Observe that, in the case where 
     a service endpoint is also a <bibref ref='WS-Transfer'/> resource, 
     the <bibref ref='WS-Transfer'/> Get operation allows requesters to 
     retrieve the resource representation associated with that endpoint 
     (i.e. the "data"), while the GetMetadata operation can be used to 
     retrieve that endpoint's metadata. The normative outline for a 
     GetMetadata request is:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetMetadata

<kw>[Body]</kw>
  &lt;mex:GetMetadata Content='<emph>xs:any</emph>' ? ...>
    &lt;mex:Dialect Type='<emph>mex:QNameSerialization</emph>'
                 Identifier='<emph>xs:anyURI</emph>' ?
                 Content='<emph>xs:anyURI</emph>' ? .../> *
    <emph>xs:any</emph>*
  &lt;/mex:GetMetadata&gt; </eg>
    </example>

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

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/mex:GetMetadata@Content </label>
      <def>
       <p>
        This OPTIONAL attribute, when present, specifies the default 
        content form IRI for this request.   When this attribute is 
        not present, the default content form IRI is 
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/Content/Any'.
       </p>

       <p>
        If no dialect elements are present in the request, the response
        MUST only include MetadataSections of the content form specified
        by this attribute.
       </p>

       <p>
        If the specified content form is not available, or not known, 
        then the response MUST include zero MetadataSections of the 
        specified form. 
       </p>

       <p>
        This specification defines the following content form IRIs:
       </p>
       <table border='1'>
        <tbody>
         <tr>
          <th align="left"> Content Form IRI </th>
          <th align="left"> Form </th>
         </tr>
         <tr>
          <td> http://www.w3.org/&wsmex.nsprefix;/ws-mex/Content/EPR </td> 
          <td> A MetadataReference element is returned </td> 
         </tr>
         <tr>
          <td> http://www.w3.org/&wsmex.nsprefix;/ws-mex/Content/URI </td> 
          <td> A MetadataLocation element is returned </td> 
         </tr>
         <tr>
          <td> http://www.w3.org/&wsmex.nsprefix;/ws-mex/Content/Metadata </td> 
          <td> The metadata is embedded </td> 
         </tr>
         <tr>
          <td> http://www.w3.org/&wsmex.nsprefix;/ws-mex/Content/Any </td> 
          <td> The service is free to choose any content form </td> 
         </tr>
         <tr>
          <td> http://www.w3.org/&wsmex.nsprefix;/ws-mex/Content/All </td> 
          <td> The service MUST return all available content forms </td> 
         </tr>
        </tbody>
       </table>
      </def>
     </gitem>


     <gitem>
      <label> <kw>[Body]</kw>/mex:GetMetadata/mex:Dialect </label>
      <def>
       <p>
        When this repeating OPTIONAL element is present, the response MUST 
        include only MetadataSections corresponding to metadata specified by 
        the combination of the QName, Identifier and Content attributes of 
        each of the Dialect elements. For each Dialect element if there is no 
        metadata for that combination of attributes then the response 
        MUST NOT include any MetadataSections for that Dialect element.
       </p>
       <p>
        When this element is not present, the endpoint MUST return all 
        available metadata.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:GetMetadata/mex:Dialect@Type </label>
      <def>
       <p>
        This REQUIRED attribute specifies the Metadata Dialect. The response 
        MUST only include MetadataSections corresponding to the Dialect 
        specified by this QName. If the receiver does not have any 
        MetadataSections of this indicated Dialect, the response MUST 
        include zero MetadataSections for this QName. 
       </p>

       <p>
        Note: the QName is serialized as {namespace-uri}localName.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:GetMetadata/mex:Dialect@Identifier </label>
      <def>
       <p>
        When this OPTIONAL attribute is present, the response MUST include only
        MetadataSections with the indicated identifier; if the receiver 
        does not have any MetadataSections of the indicated identifier, 
        the response MUST include zero MetadataSections for this
        QName/Identifier pair.
        When this attribute is not present, the implied value is any 
        identifier. 
        If multiple MetadataSections have the indicated Dialect 
        and Identifier then all of them MUST be returned.
        Note that the absence of this attribute is not equivalent to its 
        presence with a value of "" - which indicates a request to retrieve 
        all metadata whose Identifier is the empty string.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:GetMetadata/mex:Dialect@Content </label>
      <def>
       <p>
        For the dialect indicated, the response MUST include only 
        MetadataSections of the content form specified by this attribute.
       </p>

       <p>
        When this OPTIONAL attribute is not present, it defaults to the 
        value of the [Body]/mex:GetMetadata@Content attribute.  
       </p>

       <p>
        If the specified content form is not available, or not known,
        then the response MUST include zero
        MetadataSections of the specified form for this QName/Identifier pair.
       </p>
      </def>
     </gitem>

    </glist>

    <p>
     Subject to authorization restrictions, services MUST return all the 
     MetadataSections corresponding to the GetMetadata request.  Note 
     that there can be multiple MetadataSections returned for any one 
     combination of Dialect, Identifier and Content values.
    </p>

    <p>
     If an endpoint accepts a GetMetadata request, it MUST reply with 
     a GetMetadataResponse message. The normative outline for a 
     GetMetadataResponse is:
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetMetadataResponse

<kw>[Body]</kw>
  &lt;mex:GetMetadataResponse ...>
    &lt;mex:Metadata ...> ... &lt;/mex:Metadata&gt;
    <emph>xs:any</emph>*
  &lt;/mex:GetMetadataResponse></eg>
    </example>

    <p>
     The following describes additional, normative constraints on the 
     outline listed above:
    </p>
    
    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/mex:GetMetadataResponse/mex:Metadata </label>
      <def>
       <p>
        The body of the response message MUST contain one mex:Metadata 
        element as defined in <specref ref="web-services-metadata"/>.
       </p>

       <p>
        Note, in cases where the requester, through the use of @Content 
        and/or mex:Dialect sub-elements in the GetMetadata request, has 
        excluded all the metadata maintained by the service, this 
        element will be empty.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     This operation is safe; it will not result in any side effect
     imputable to the requester. This means that in case of an underlying
     protocol error that might get unnoticed, resending the same request
     can be done automatically.
    </p>

   </div2>

   <div2 id="PutMetadata">
    <head>PutMetadata</head>
 
    <p>
     A requester MAY send a PutMetadata request message to an endpoint to 
     update the metadata associated with that endpoint. This operation MAY 
     be supported by WS-MetadataExchange compliant service endpoints. Observe 
     that, in the case where a service endpoint is also a 
     <bibref ref="WS-Transfer"/> resource, the <bibref ref="WS-Transfer"/> Put 
     operation allows requesters to update the resource representation 
     associated with that endpoint (i.e. the "data"), while the PutMetadata 
     operation can be used to update that endpoint's metadata. 
    </p>
 
    <p>
     The normative outline for a PutMetadata request is: 
    </p>
 
    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/PutMetadata
 
<kw>[Body]</kw>
  &lt;mex:PutMetadata ...>
    &lt;mex:Metadata ...> ... &lt;/mex:Metadata&gt;
    <emph>xs:any</emph>*
  &lt;/mex:PutMetadata></eg>
    </example>

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

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/mex:PutMetadata </label>
      <def>
       <p>
        This REQUIRED element MUST have as its first child element an 
        element that comprises the representation of the metadata that 
        is to be replaced.  Additional extension elements MAY be included 
        after the element representing the metadata to be updated.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:PutMetadata/mex:Metadata </label>
      <def>
       <p>
        The body of the PutMetadata message MUST contain one 
        mex:Metadata element as defined in 
        <specref ref="web-services-metadata"/>.
       </p>

       <p>
        The mex:Metadata element contains one MetadataSection child for 
        each distinct unit of metadata to be updated.  All resource 
        metadata (identified by the Dialect, Identifier and Content values)
        specified by 
        each metadata section MUST be replaced in its entirety by the 
        metadata specified in the PutMetadata request message;
        the service MUST treat the incoming MetadataSections as the
        complete set of metadata for the specified Dialect, Identifier and
        Content values and any metadata previously associated with that
        triplet of values MUST be removed.
       </p>

       <p>
        If there is no Metadata associated with the resource that 
        corresponds to a MetadataSection child contained within the 
        mex:Metadata element, the endpoint MUST create the Metadata if 
        the MetadataSection has a dialect that is supported by the 
        endpoint and if the creation of the Metadata will not invalidate 
        the endpoint.
       </p>

       <p>
        When storing references, the endpoint 
        MUST NOT resolve the references in an attempt to persist the
        actual metadata document itself.
       </p>

      </def>
     </gitem>
    </glist>

    <p>
     An endpoint MUST reject a PutMetadata request if it is unable to 
     process all of the metadata updates requested.   If the dialect, 
     identifier or content form specified in one or more MetadataSections 
     is unsupported 
     by the endpoint, the endpoint MUST generate a mex:UnsupportedMetadata 
     fault.
     If the creation or update of the endpoint's Metadata will render the 
     endpoint invalid (either because the metadata is of an invalid syntax 
     for the dialect or because the metadata will cause a semantic conflict 
     with the endpoint's definition), the endpoint MUST generate an 
     mex:InvalidMetadata fault.
    </p>

    <p>
     If an endpoint accepts a PutMetadata request, it MUST reply with a 
     PutMetadataResponse message. The normative outline for a 
     PutMetadataResponse is: 
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/PutMetadataResponse
 
<kw>[Body]</kw>
  &lt;mex:PutMetadataResponse>
    &lt;mex:Metadata ...> ... &lt;/mex:Metadata&gt; ?
    <emph>xs:any</emph>*
  &lt;/mex:PutMetadataResponse></eg>
    </example>

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

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/mex:PutMetadataResponse </label>
      <def>
       <p>
        This REQUIRED element, if it contains any child elements, MUST have 
        as its first child element, a mex:Metadata element that comprises 
        the representation of the metadata that has been updated. Additional 
        extension elements MAY be included after the element representing 
        the metadata updates. 
       </p>

       <p>
        As an optimization and as a service to the requester, if there are 
        no extension elements this element SHOULD be empty if the updated 
        representation does not differ from the representation sent in 
        the PutMetadata request message; that is, if the service accepted 
        the new representation (including all Metadata updates) verbatim. 
       </p>

       <p>
        Such a response (an empty mex:PutMetadataResponse) implies that the 
        update request was successful in its entirety (assuming no 
        intervening mutating operations are performed). A service MAY return 
        the current representation of the resource as the child of the 
        mex:PutMetadataResponse element even in this case, however.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:PutMetadataResponse/mex:Metadata </label>
      <def>
       <p>
        This OPTIONAL element comprises the representation of all the 
        metadata sections of the resource that have been updated during 
        the PutMetadata operation.
       </p>
      </def>
     </gitem>
    </glist>

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

    <p>
     A requester MAY send a DeleteMetadata request message to an endpoint 
     to delete the metadata associated with that endpoint. This operation 
     MAY be supported by WS-MetadataExchange compliant service endpoints. 
     Observe that, in the case where a service endpoint is also a 
     <bibref ref="WS-Transfer"/> resource, the <bibref ref="WS-Transfer"/>
     Delete operation allows requesters to update the resource representation 
     associated with that endpoint (i.e. the "data"), while the 
     DeleteMetadata operation can be used to update that endpoint's metadata. 
    </p>
 
    <p>
     The normative outline for a DeleteMetadata request is: 
    </p>
 
    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/DeleteMetadata
 
<kw>[Body]</kw>
  &lt;mex:DeleteMetadata ...>
    &lt;mex:Dialect Type='<emph>mex:QNameSerialization</emph>'
                 Identifier='<emph>xs:anyURI</emph>'? 
                 Content='<emph>xs:anyURI</emph>'? .../> +
    <emph>xs:any</emph>*
  &lt;/mex:DeleteMetadata></eg>
    </example>

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

    <glist>
     <gitem>
      <label> <kw>[Body]</kw>/mex:DeleteMetadata </label>
      <def>
       <p>
        This REQUIRED element MUST have as its first children elements one 
        or more elements that comprise the representation of the metadata 
        that is to be deleted.  Additional extension elements MAY be 
        included after the element representing the metadata to be deleted.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:DeleteMetadata/mex:Dialect </label>
      <def>
       <p>
        This REQUIRED (optionally repeating) element specifies the 
        metadata to be deleted.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:DeleteMetadata/mex:Dialect@Type </label>
      <def>
       <p>
        This REQUIRED attribute specifies the Metadata Dialect of the 
        metadata to be deleted. 
       </p>

       <p>
        Note: the QName is serialized as {namespace-uri}localName.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:DeleteMetadata/mex:Dialect@Identifier </label>
      <def>
       <p>
        When this OPTIONAL attribute is present, only metadata with the 
        indicated identifier is to be deleted.
        Absence of this attribute indicates that all metadata matching the 
        specified Dialect and Content MUST be removed.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> <kw>[Body]</kw>/mex:DeleteMetadata/mex:Dialect@Content </label>
      <def>
       <p>
        When this OPTIONAL attribute is present, only metadata of the
        specific content form is to be deleted.
        Absence of this attribute indicates that all metadata matching the 
        specified Dialetc and Identifier MUST be removed.
       </p>
      </def>
     </gitem>
    </glist>

    <p>
     An endpoint MUST reject a DeleteMetadata request if it is unable to 
     process all of the metadata deletes requested.   If the dialect, 
     identifier or content form
     specified in one or more of the Dialect elements is 
     unsupported by the endpoint, the endpoint MUST generate a 
     mex:UnsupportedMetadata fault.  If the deletion of the specified Metadata 
     will render the endpoint invalid, the endpoint MUST generate an 
     mex:InvalidMetadata fault.
     Note that an otherwise valid request that refers to metadata that does not
     exist is not considered an error condition. Rather, the service MUST 
     continue as if it had successfully processed that one delete request.
    </p>

    <p>
     If an endpoint accepts a DeleteMetadata request, it MUST reply with a 
     DeleteMetadataResponse message. The normative outline for a 
     DeleteMetadataResponse is: 
    </p>

    <example>
     <eg><kw>[Action]</kw>
  http://www.w3.org/&wsmex.nsprefix;/ws-mex/DeleteMetadataResponse
 
<kw>[Body]</kw>
  &lt;mex:DeleteMetadataResponse>
    <emph>xs:any</emph>*
  &lt;/mex:DeleteMetadataResponse></eg>
    </example>

    <p>
     There are no additional, normative constraints on the outline listed above.
    </p>

   </div2>

  </div1>

  <div1 id="MetadataReferences">
   <head>Metadata References</head>

   <p>
    While a service's metadata can be embedded in many different places 
    (for example, within an EPR, or within a feature's policy assertion), 
    it might be more convenient to include a reference to the metadata rather 
    than include the actual metadata itself. This might be simply for 
    brevity's sake or so the same copy of metadata can be used in many 
    different locations without the overhead of duplicating it.
   </p>

   <p>
    This specification defines two mechanisms by which a metadata reference 
    can be used in place of metadata. These mechanisms do not modify any 
    semantic meaning that might be associated with the presence of the 
    metadata at any particular location - they are simply a syntactical 
    alternative to embedding the referenced metadata.
   </p>

   <div2 id="mexLocation">
    <head>mex:Location</head>

    <p>
     The mex:Location element MAY be used to specify a reference to an 
     HTTP metadata resource. A requester MAY use an HTTP GET to the indicated 
     URL to retrieve the metadata.
    </p>

    <p>
     The outline for the mex:Location element is:
    </p>

    <example>
     <eg>&lt;mex:Location URL="<emph>xs:anyURI</emph>" Type="<emph>mex:QNameSerialization</emph>" 
              Identifier="<emph>xs:anyURI</emph>" ...>
  <emph>xs:any</emph>*
&lt;mex:Location> </eg>
    </example>

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

    <glist>
     <gitem>
      <label> /mex:Location </label>
      <def>
       <p>
        This element contains a reference to an HTTP metadata resource.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /mex:Location@URL </label>
      <def>
       <p>
        This REQUIRED attribute contains the URL of an HTTP metadata 
        resource. This resource MUST support retrieval of the metadata via 
        an HTTP GET request.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /mex:Location@Type </label>
      <def>
       <p>
        This REQUIRED attribute indicates the QName of the referenced 
        metadata. This can be used in deciding whether or not to retrieve 
        the metadata.
       </p>

       <p>
        Note: the QName is serialized as {namespace-uri}localName.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /mex:Location@Identifier </label>
      <def>
       <p>
        This REQUIRED attribute indicates the Identifier for the metadata 
        being referenced. Identifier is an absolute IRI. 
       </p>
      </def>
     </gitem>
    </glist>

   </div2>

   <div2 id="mexReference">
    <head>mex:Reference</head>

    <p>
     The mex:Reference element MAY be used to specify a reference to a 
     WS-Transfer metadata resource. A requester MAY use a WS-Transfer Get 
     to the indicated EPR to retrieve the metadata
    </p>

    <p>
     The outline for the mex:Reference element is:
    </p>

    <example>
     <eg>&lt;mex:Reference Type="<emph>mex:QNameSerialization</emph>" 
               Identifier="<emph>xs:anyURI</emph>" ...>
  <emph>endpoint-reference-type</emph>
&lt;mex:Reference> </eg>
    </example>

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

    <glist>
     <gitem>
      <label> /mex:Reference </label>
      <def>
       <p>
        This element is an endpoint reference to a metadata resource. This 
        resource MUST support retrieval of the metadata via a WS-Transfer 
        Get request.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /mex:Reference@Type </label>
      <def>
       <p>
        This REQUIRED attribute indicates the QName of the referenced 
        metadata. This can be used in deciding whether or not to retrieve 
        the metadata.
       </p>

       <p>
        Note: the QName is serialized as {namespace-uri}localName.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /mex:Reference@Identifier </label>
      <def>
       <p>
        This REQUIRED attribute indicates the Identifier for the metadata 
        being referenced. Identifier is an absolute IRI.
       </p>
      </def>
     </gitem>
    </glist>

   </div2>

   <div2>
    <head>Examples</head>

    <p>
     The following examples show how metadata might appear in various 
     locations:
    </p>
 
    <example id="WSDLinEPR">
     <head>WSDL in an Endpoint Reference</head>
 
     <eg>(01) &lt;wsa:Endpoint ...>
(02)    &lt;wsa:Address> http://example.com &lt;/wsa:Address>
(03)    &lt;wsa:Metadata>
(04)      &lt;wsdl:definitions>
(05)        ...
(06)      &lt;/wsdl:definitions>
(07)    &lt;/wsa:Metadata>
(08)  &lt;/wsa:Endpoint> </eg>
    </example>
 
    <p>
     <specref ref="WSDLinEPR"/> shows an endpoint reference with the 
     endpoint's WSDL embedded. This saves the user of this EPR from having 
     to retrieve the WSDL. This same endpoint reference might have been 
     constructed by using a metadata reference instead, as shown in 
     <specref ref="WSDLrefinEPR"/>:
    </p>
 
    <example id="WSDLrefinEPR">
     <head>WSDL reference in an Endpoint Reference</head>
 
     <eg>(01) &lt;wsa:Endpoint ...>
(02)   &lt;wsa:Address> http://example.com &lt;/wsa:Address>
(03)   &lt;wsa:Metadata>
(04)     &lt;mex:Location URL="http://example.com?wsdl"
(05)                     Type="{http://schemas.xmlsoap.org/wsdl/}definitions"
(06)                     Indentifier="..."/>
(07)   &lt;/wsa:Metadata>
(08) &lt;/wsa:Endpoint> </eg>
    </example>
 
    <p>
     <specref ref="WSDLrefinEPR"/> shows the same endpoint reference but 
     rather than embedding the endpoint's WSDL directly in the EPR a 
     mex:Location is used to indicate that if the user of the EPR needs the 
     service's WSDL then it can retrieve it from the specified URL.
    </p>
 
    <p>
     The following example WSDL shows how support for a particular feature 
     might be indicated:
    </p>
 
    <example>
     <head>Feature Metadata in a Policy Assertion</head>
 
     <eg>(01) &lt;wsdl:definitions>
(02)   ...
(03)   &lt;wsdl:service name="stockQuote">
(04)     &lt;wsdl:port binding="..." name="...">
(05)       &lt;soap:address location="http://example.com"/>
(06)     &lt;/wsdl:port>
(07)     &lt;wsp:Policy>
(08)       &lt;wse:EventSource>
(09)         &lt;wse:FormatName uri="http://www.w3.org/&wsevt.nsprefix;/ws-evt/DeliveryFormats/Unwrap"/>
(10)         &lt;wsdl:definitions>
(11)           ...
(12)           &lt;wsdl:service ...>
(13)             ...
(14)             &lt;wsp:Policy xmlns:wsp="..." wmlns:sp="...">
(15)               &lt;sp:SymmetricBinding>
(16)                 &lt;wsp:Policy>
(17)                   &lt;sp:ProtectionToken>
(18)                     &lt;wsp:Policy>
(19)                       &lt;sp:SecureConversationToken ...>
(20)                         ...
(21)                       &lt;/sp:SecureConversationToken>
(22)                     &lt;/wsp:Policy>
(23)                   &lt;/sp:ProtectionToken>
(24)                 &lt;/wsp:Policy>
(25)               &lt;/sp:SymmetricBinding>
(26)             &lt;/wsp:Policy>
(27)           &lt;/service>
(28)         &lt;/wsdl:definitions>
(29)       &lt;/wse:EventSource>
(30)     &lt;/wsp:Policy>
(31)   &lt;/wsdl:service>
(32) &lt;/wsdl:definitions> </eg>
    </example>

    <p>
     This example shows the WSDL for a stockQuote service. As indicated on 
     lines (08) through (29), this endpoint also acts as a WS-Eventing event 
     source.  The endpoint supports sending notification in the "Unwrapped" 
     format - line (09).  Line (10) through (28) provides the WSDL for the 
     WS-Eventing features. In particular, lines (14) through (26) indicates 
     that the WS-Eventing messages need to be protected using 
     WS-SecureConversation.
    </p>
 
    <p>
     This example could have also been written by using metadata references:
    </p>
 
    <example>
     <eg>(01) &lt;wsdl:definitions>
(02)   ...
(03)   &lt;wsdl:service name="stockQuote">
(04)     &lt;wsdl:port binding="..." name="...">
(05)       &lt;soap:address location="http://example.com"/>
(06)     &lt;/wsdl:port>
(07)     &lt;wsp:Policy>
(08)       &lt;wse:EventSource>
(09)         &lt;wse:FormatName uri="http://www.w3.org/&wsevt.nsprefix;/ws-evt/DeliveryFormats/Unwrap"/>
(10)         &lt;mex:Location URL="http://example.com/EventingWSDL"
(11)                       Type="{http://schemas.xmlsoap.org/wsdl/}definitions"
(12)                       Identifier="..." />
(13)       &lt;/wse:EventSource>
(14)     &lt;/wsp:Policy>
(15)   &lt;/wsdl:service>
(16) &lt;/wsdl:definitions> </eg>
    </example>

    <p>
     In this case the embedded WS-Eventing WSDL that is supported by the 
     stockQuote service has been replaced by a mex:Location element. The WSDL 
     can now be retrieved via an HTTP GET to the URL specified on line (10).
    </p>
   </div2>

  </div1>
  
  <div1 id="Metadata-in-Endpoint-References">
   <head>Metadata in Endpoint References</head>

   <div2 id="EPRwithMEX">
    <head>Endpoint References Containing Metadata</head>
   
    <p>
     The issuer of a WS-Addressing endpoint 
     reference MAY include metadata for that service inside 
     the endpoint reference itself. This mechanism 
     simplifies the bootstrapping of the service interaction on the 
     requester side by avoiding additional calls to retrieve 
     the Web service metadata for the service endpoint.
    </p>  

    <p>
     Embedding the metadata (including a mex:Metadata element) inside an 
     endpoint reference's wsa:Metadata element allows 
     the issuer of the endpoint reference to include metadata by value 
     or by reference, according to the options described in 
     <specref ref="web-services-metadata"/> and
     <specref ref="MetadataReferences"/>.
     The outline of a <bibref ref='AddrCore'/> endpoint reference which 
     includes Web services metadata is as follows:
    </p>
 
    <example>
     <eg>&lt;wsa:EndpointReference ...>
     &lt;wsa:Address>xs:anyURI&lt;/wsa:Address>
     &lt;wsa:ReferenceParameters> <emph>xs:any</emph>* &lt;/wsa:ReferenceParameters> ?
     &lt;wsa:Metadata>
       ( &lt;mex:Location .../> |
         &lt;mex:Reference ...> ... &lt;/mex:Reference> |
         &lt;mex:Metadata ...> ... &lt;/mex:Metadata> ) *
         <emph>xs:any</emph>*
     &lt;/wsa:Metadata> ?
     <emph>xs:any</emph>*
&lt;/wsa:EndpointReference&gt;</eg>
    </example>
 
    <glist>

     <gitem>
      <label> /wsa:EndpointReference/wsa:Metadata/mex:Location </label>
      <def>
       <p>
        This repeating OPTIONAL element MAY appear as a direct child of 
        the wsa:Metadata endpoint reference element.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /wsa:EndpointReference/wsa:Metadata/mex:Reference </label>
      <def>
       <p>
        This repeating OPTIONAL element MAY appear as a direct child of 
        the wsa:Metadata endpoint reference element.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /wsa:EndpointReference/wsa:Metadata/mex:Metadata </label>
      <def>
       <p>
        This repeating OPTIONAL element MAY appear as a direct child of
        the wsa:Metadata endpoint reference element.
        Note: It MAY also be possible to combine multiple mex:Metadata
        elements into one mex:Metadata element, however, it is RECOMMENDED
        that multiple mex:Metadata elements be used.
       </p>
      </def>
     </gitem>

     <gitem>
      <label> /wsa:EndpointReference/wsa:Metadata/xs:any </label>
      <def>
       <p>
        This extensibility point, defined by WS-Addressing, can be used 
        for embedding additional metadata.
       </p>
      </def>
     </gitem>

    </glist>
    
    <p>
     In example <specref ref="EPRMEX"/>, a <bibref ref='AddrCore'/> 
     endpoint reference contains WSDL metadata by value that identifies 
     the binding used to access the service endpoint:
    </p>
 
    <example id="EPRMEX">
     <head>Endpoint reference with embedded WSDL metadata</head>
 
     <eg>(01) &lt;wsa:EndpointReference
(02)     xmlns:wsa='http://www.w3.org/2005/08/addressing'>
(03)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address>
(04)   &lt;wsa:Metadata>
(05)     &lt;wsdl:definitions
(06)         name='StockQuote'
(07)         targetNamespace='http://services.example.org/stockquote'
(08)         xmlns:tns='http://services.example.org/stockquote'
(09)         xmlns:wsoap='http://schemas.xmlsoap.org/wsdl/soap/'
(10)         xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
(11)         xmlns:wsp='http://www.w3.org/ns/ws-policy'
(12)         xmlns:msgs='http://services.example.org/stockquote/schemas
(13)         xmlns:xs='http://www.w3.org/2001/XMLSchema'>
(14)       &lt;wsdl:import
(15)           namespace='http://services.example.org/stockquote'
(16)           location='http://services.example.org/stockquote/schemas'/>
(17)       &lt;wsdl:portType name='StockQuotePortType'>
(18)         &lt;wsdl:operation name='GetLastTradePrice'>
(19)           &lt;wsdl:input message='msgs:GetLastTradePriceInput'
(20)                       name='GetLastTradePriceInput'/>
(21)           &lt;wsdl:output message='msgs:GetLastTradePriceOutput'
(22)                        name='GetLastTradePriceOutput'/>
(23)         &lt;/wsdl:operation>
(24)       &lt;/wsdl:portType>
(25)       &lt;wsdl:binding name='StockQuoteBinding'
(26)             type='tns:StockQuotePortType'>
(27)         &lt;wsp:PolicyReference
(28)             URI='http://services.example.org/stockquote/policy' />
(29)         &lt;wsoap:binding style='document'
(30)                  transport='http://schemas.xmlsoap.org/soap/http'/>
(31)         &lt;wsdl:operation name='GetLastTradePrice'>
(32)           &lt;wsoap:operation soapAction='http://services.example.org/stockquote/GetLastTradePrice' />
(33)           &lt;wsdl:input name='GetLastTradePriceInput'>
(34)             &lt;wsoap:body use='literal'/>
(35)           &lt;/wsdl:input>
(36)           &lt;wsdl:output name='GetLastTradePriceOutput'>
(37)             &lt;wsoap:body use='literal'/>
(38)           &lt;/wsdl:output>
(39)         &lt;/wsdl:operation>
(40)       &lt;/wsdl:binding>
(41)       &lt;wsdl:service name='StockQuoteService'>
(42)         &lt;wsdl:port name='StockQuotePort'
(43)                    binding='tns:StockQuoteBinding' >
(44)           &lt;wsoap:address
(45)                 location='http://services.example.org/stockquote'/>
(46)         &lt;/wsdl:port>
(47)       &lt;/wsdl:service>
(48)     &lt;/wsdl:definitions>
(49)   &lt;/wsa:Metadata>
(50) &lt;/wsa:EndpointReference> </eg>
    </example>
      
    <p>
     Lines 5-48 show the way the WSDL of the Web service endpoint is 
     included 'by value'. 
    </p>
 
    <example id="EPRMD">
     <head>Endpoint reference with embedded metadata about the Metadata Reference</head>
     <eg>(01) &lt;wsa:EndpointReference ...>
(02)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address>
(03)   &lt;wsa:Metadata>
(04)     &lt;mex:Reference Type="{http://www.w3.org/&wsmex.nsprefix;/ws-mex}Metadata" Identifier="">
(05)       &lt;wsa:Address>
(06)         http://services.example.org/stockquote/metadata
(07)       &lt;/wsa:Address>
(08)       &lt;wsa:Metadata>
(09)         &lt;wsdl:definitions ...>
(10)           &lt;!-- WS-Transfer WSDL portType plus binding -->
(11)         &lt;/wsdl:definitions>
(12)       &lt;/wsa:Metadata>
(13)     &lt;/mex:Reference>
(14)   &lt;/wsa:Metadata>
(15) &lt;/wsa:EndpointReference> </eg>
    </example>
 
    <p>
     <specref ref="EPRMD"/> shows an example of a Web service endpoint 
     reference in which the Metadata element contains a single 
     mex:Reference element to a metadata resource (lines 4-13) the 
     representation of which is mex:Metadata as hinted by the value of 
     the Type attribute (line 4). The metadata reference contains a 
     Metadata element (lines 8-12) which contains the necessary metadata for 
     interacting with the metadata resource through 
     <bibref ref='WS-Transfer'/> operations. Since the mex:Reference
     is an endpoint reference to a <bibref ref='WS-Transfer'/> 
     resource, the embedded metadata includes the <bibref ref='WS-Transfer'/> 
     WSDL portType and the necessary binding information for communicating 
     with that resource.
    </p>

    <example id="EPRrefMDref">
     <head>Endpoint reference with a reference to metadata about the Metadata Reference</head>
     <eg>(01) &lt;wsa:EndpointReference ...>
(02)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address>
(03)   &lt;wsa:Metadata>
(04)     &lt;mex:Reference Type='{http://www.w3.org/&wsmex.nsprefix;/ws-mex}Metadata' Identifier=''>
(05)       &lt;wsa:Address>
(06)         http://services.example.org/stockquote/metadata
(07)       &lt;/wsa:Address>
(08)       &lt;wsa:Metadata>
(09)         &lt;!-- Ref to the WS-Transfer WSDL -->
(10)         &lt;mex:Location URL='http://example.org/sq/TransferWSDL'
(11)                       Type='{http://schemas.xmlsoap.org/wsdl/}definitions' Identifier='...'/>
(12)       &lt;/wsa:Metadata>
(13)     &lt;/mex:Reference>
(14)   &lt;/wsa:Metadata>
(15) &lt;/wsa:EndpointReference> </eg>
    </example>

    <p>
     <specref ref="EPRrefMDref"/> shows an alternative way to represent 
     <specref ref="EPRMD"/>. It shows an example of a Web service endpoint 
     reference in which the Metadata element contains a single mex:Reference 
     element to a metadata resource (lines 4-13) the representation of which 
     is mex:Metadata as hinted by the value of the Type attribute (line 4). 
     The metadata reference contains a Metadata element (lines 8-12) which 
     contains the necessary metadata for interacting with the metadata 
     resource through <bibref ref="WS-Transfer"/> operations. Since the 
     mex:Reference is an endpoint reference to a <bibref ref="WS-Transfer"/>
     resource, the mex:Location element is a reference to the 
     <bibref ref="WS-Transfer"/> WSDL which includes the portType and the 
     necessary binding information for communicating with that resource. 
    </p>

    <p>
     In example <specref ref="EPR-PA"/>, an endpoint reference to a service 
     endpoint contains the metadata to allow requesters to issue a GetWSDL 
     request against it.
    </p>

    <example id="EPR-PA">
     <head>Endpoint reference containing Policy Attachment metadata for the GetWSDL operation</head>
     <eg>(01) &lt;wsa:EndpointReference ...>
(02)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address> 
(03)   &lt;wsa:Metadata> 
(04)     &lt;wsp:PolicyAttachment>
(05)       &lt;wsp:AppliesTo>                       
(06)         &lt;!-- Following according to: http://www.w3.org/TR/ws-policy-attach/#uri-domain-expression --> 
(07)         &lt;!-- with URI syntax from:
(08)              http://www.w3.org/TR/wsdl11elementidentifiers/ -->
(09)         &lt;wsp:URI> 
(10)           http://www.w3.org/&wsmex.nsprefix;/ws-mex#wsdl1.PortTypeOperation(GetWSDL) 
(11)         &lt;/wsp:URI>
(12)       &lt;/wsp:AppliesTo> 
(13)       &lt;wsp:Policy> ... &lt;/wsp:Policy>  
(14)     &lt;/wsp:PolicyAttachment>            
(15)   &lt;/wsa:Metadata>
(16) &lt;/wsa:EndpointReference> </eg>
    </example>

    <p>
     <specref ref="EPR-PA"/> shows an example of an endpoint reference to a 
     service endpoint.  The endpoint reference contains metadata associated 
     with the service endpoint (lines 3-15) and the Policy metadata 
     (lines 4-14) which contains the necessary metadata for interacting 
     with the endpoint through WS-MetadataExchange.  The metadata for 
     the WS-MetadataExchange interaction is of policy attachment (line 4).  
     The policy attachment (lines 4-14) defines the policy (line 13) and 
     the GetWSDL operation to which the policy applies (lines 5-12).
    </p>

    <p>
     Alternatively, <specref ref="EPR-PA"/> could have been written with 
     the WS-MetadataExchange Policy Assertion embedded directly into the 
     EPR along with the necessary Policy Assertions, as shown in 
     <specref ref="EPRmexAssertion"/>:
    </p>

    <example id="EPRmexAssertion">
     <head>Endpoint reference containing the MetadataExchange policy assertion</head>

     <eg>(01) &lt;wsa:EndpointReference ...>
(02)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address> 
(03)   &lt;wsa:Metadata> 
(04)     &lt;wsp:Policy>
(05)       &lt;mex:MetadataExchange>
(06)         &lt;wsp:Policy> ... &lt;/wsp:Policy>
(07)       &lt;/mex:MetadataExchange>
(08)     &lt;/wsp:Policy>
(09)   &lt;/wsa:Metadata>
(10) &lt;/wsa:EndpointReference> </eg>
    </example>

    <p>
     <specref ref="EPRmexAssertion"/> shows an example of a endpoint 
     reference to a service endpoint. The endpoint reference contains 
     Policy metadata that can be used to properly interact with the service. 
     In this case the Policy contains the mex:MetadataExchange Policy 
     Assertion (lines 5-7) indicating that it supports the WS-MetadataExchange 
     specification.  Line 6 contains a Policy Assertion that further qualifies 
     how a requester would invoke the WS-MetadataExchange operations.  For 
     example, the Policy Assertion on line 6 might contain 
     assertions to indicate how all WS-MetadataExchange messages are to
     be consturcted.
    </p>

   </div2>

   <div2 id="WSPAEPR">
    <head>Associating Policies with Endpoint References</head>

    <p>
     It is desirable for components that provide EPRs to other components to 
     be able to efficiently communicate the effective policies of the 
     endpoints referenced by those EPRs. For example, a subscriber might wish 
     to indicate to an event source that the notification messages sent as 
     part of a subscription needs to be digitally signed. Although the 
     mechanisms described in <specref ref="EPRwithMEX"/> can be used to 
     communicate the complete set of policies associated with an endpoint, 
     the relationship of these policies to specific bindings, operations, 
     or messages cannot be determined without additional information such 
     as WSDL documents or wsp:PolicyAttachment elements. 
    </p>

    <p>
     A single wsp:Policy or wsp:PolicyReference element MAY appear as a 
     child of the /wsa:EndpointReference/wsa:Metadata element. 
    </p>

    <example>
     <eg>&lt;wsa:EndpointReference>
  &lt;wsa:Address> xs:anyURI &lt;/wsa:Address>
  &lt;wsa:ReferenceParameters> xs:any* &lt;/wsa:ReferenceParameters>
  &lt;wsa:Metadata>
    ( &lt;wsp:Policy ...> ... &lt;/wsp:Policy> |
      &lt;wsp:PolicyReference ...> ... &lt;/wsp:PolicyReference> ) ?
  &lt;/wsa:Metadata>
&lt;/wsa:EndpointReference></eg>
    </example>

    <p>
     If multiple alternatives are desired, the operators defined in 
     <bibref ref="wspolicy"/> can be used to specify such alternatives 
     within the single wsp:Policy element or the element referenced by the 
     wsp:PolicyReference. 
    </p>

    <p>
     Policies that appear in an endpoint reference in this manner have 
     Endpoint Policy Subject. Endpoint Policy Subject is defined as follows: 
    </p>

    <p>
     The wsp:Policy or wsp:PolicyReference element, when present, represents 
     the capabilities and requirements of the endpoint referenced by the 
     EPR as defined by Section 3, "Policy Model", in the 
     <bibref ref="wspolicy"/> specification. Policy attached to an EPR in 
     this manner MUST be applicable to all message exchanges using the 
     endpoint referenced by that EPR. 
    </p>

    <example id="EPRsecure">
     <head>Endpoint Reference with Associated Policy</head>
     <eg>(01) &lt;wse:NotifyTo xmlns:wsa="http://www.w3.org/2005/08/addressing"
(02)               xmlns:wse="http://www.w3.org/&wsevt.nsprefix;/ws-evt">
(03)   &lt;wsa:Address>http://www.example.com/EventSink/OnPriceChange&lt;/wsa:Address>
(04)   &lt;wsa:ReferenceParameters>
(05)     ...
(06)   &lt;/wsa:ReferenceParameters>
(07)   &lt;wsa:Metadata>
(08)     &lt;wsp:Policy xmlns:wsp="..." wmlns:sp="...">
(09)       &lt;sp:SymmetricBinding>
(10)         &lt;wsp:Policy>
(11)           &lt;sp:ProtectionToken>
(12)             &lt;wsp:Policy>
(13)               &lt;sp:SecureConversationToken ...>
(14)                 ...
(15)               &lt;/sp:SecureConversationToken>
(16)             &lt;/wsp:Policy>
(17)           &lt;/sp:ProtectionToken>
(18)         &lt;/wsp:Policy>
(19)       &lt;/sp:SymmetricBinding>
(20)     &lt;/wsp:Policy>
(21)   &lt;/wsa:Metadata>
(22) &lt;/wse:NotifyTo></eg>
    </example>

    <p>
     <specref ref="EPRsecure"/> shows a WS-Eventing NotifyTo EPR that refers 
     to the endpoint to which an event source sends notification messages. 
     Attached to this EPR is a Policy (lines 8-20) that indicates that 
     WS-SecureConversation needs to be used when sending messages to 
     this endpoint. 
    </p>

    <p>
     Note that in some cases the context in which an EPR appears might 
     imply the version of SOAP that messages addressed to that EPR are to 
     use.  In this example, without an explicit use of the SOAP assertion, 
     the Notifications will most likely be sent using the same version of 
     SOAP that was used to carry the Subscribe message.
    </p>

    <p>
     The <bibref ref="AddrCore"/> specification discusses caveats to the 
     validity of Metadata information. These apply to policies contained 
     within the wsa:Metadata element as discussed in this section. 
    </p>

    <p>
     The relationship, if any, between policies contained within the 
     wsa:Metadata element and any other policies that might apply to the 
     endpoint referred to by the containing EPR (e.g. policies that might
     appear in a WSDL document that describes one or more of the services 
     offered by that endpoint) is not defined by this specification. 
    </p>

   </div2>

  </div1>
  
  <div1 id="ImplicitWSDL">
   <head>Exposing Metadata for Implicitly Defined Features</head>

   <p>
    An endpoint MAY indicate that it supports a specific feature by 
    including the feature's policy assertion within its WSDL. By doing so, 
    the endpoint is indicating that feature operations are 
    supported by that endpoint even though they are implicit
    and do not explicitly appear in 
    its WSDL.  An example of this is an endpoint that indicates the use 
    of WS-Transfer <bibref ref="WS-Transfer"/> by the use of the 
    wst:TransferResource WS-Policy <bibref ref="wspolicy"/> assertion.
   </p>

   <p>
    The Feature WSDL (the WSDL associated with these implicit operations) 
    MAY appear within a Feature Policy assertion and can be annotated to 
    indicate any endpoint specific metadata that might be needed by clients 
    interacting with this service. For example, the WSDL can have policy 
    assertions that indicate a particular security mechanism used to protect 
    the feature's operations supported by this endpoint. When a Feature WSDL 
    does not provide a concrete endpoint, the consumer MUST use the 
    concrete aspects of the endpoint's WSDL. 
   </p>

   <p>
    An endpoint MAY choose to expose additional metadata about the feature 
    by including the feature specific metadata within the feature's policy 
    assertion.  For example, an endpoint that also supports WS-Eventing 
    might choose to have the following WS-Eventing Policy assertion defined: 
   </p>

   <example id="wseEventSourcePA">
    <head>WS-Eventing EventSource Policy Assertion with Annotations</head>

    <eg>(01) &lt;wsp:Policy>
(02)  &lt;wse:EventSource>
(03)   &lt;wse:FormatName
(04)     URI="http://www.w3.org/&wsevt.nsprefix;/ws-evt/DeliveryFormats/Unwrap">
(05)   &lt;/wse:FormatName>
(06)   &lt;wsevd:EventDescriptions>
(07)    &lt;wsevd:types>
(08)     &lt;xs:schema targetNamespace="http://www.example.org/oceanwatch">
(09)      &lt;xs:include
(10)       schemaLocation="http://www.example.org/schemas/oceanwatch.xsd"/>
(11)      &lt;xs:element name="WindReport" type="ow:WindReportType"/>
(12)     &lt;/xs:schema>
(13)    &lt;/wsevd:types>
(14)    &lt;wsevd:eventType name="WindReportEvent" element="ow:WindReport"
(15)      actionURI="http://www.example.org/oceanwatch/2003/WindReport"/>
(16)   &lt;/wsevd:EventDescriptions>
(17)   &lt;wsp:Policy> ...security policies... &lt;/wsp:Policy>
(18)  &lt;/wse:EventSource>
(19) &lt;/wsp:Policy> </eg>
   </example>

   <p>
    When this policy assertion appears in a service's WSDL it indicates that 
    the service supports WS-Eventing, it supports sending notifications using 
    the 'Unwrap' format, and that it generates exactly one type of event - 
    a &lt;sq:Quote> event. The Policy Assertion on line 17 indicates that the 
    nested policy assertions apply to the WS-Eventing operations. For 
    example, if line 17 includes some security related assertions then the 
    WS-Eventing operations would need to be secured using those security 
    mechanisms. 
   </p>

   <p>
    When Feature Policy Assertions contain nested Policy Assertions (as 
    show above in line 17), those assertions have Endpoint Policy Subject 
    and apply to all message exchanges related to the feature.
   </p>

   <p>
    If there were additional WS-Eventing metadata available, for example 
    a specialized Feature WSDL document, then they would appear as a child 
    of the wse:EventSource element as well.
   </p>

   <p>
    The following shows the same WS-Eventing Policy Assertion from 
    <specref ref="wseEventSourcePA"/> with an embedded copy of the 
    WS-Eventing WSDL.  As discussed above, this WSDL might be annotated to 
    specify additional constrains on the WS-Eventing message exchanges.
   </p>

   <example>
   <head> Sample WS-Eventing Policy with Embedded WSDL </head>
    <eg>(01) &lt;wsp:Policy>
(02)  &lt;wse:EventSource>
(03)   &lt;wse:FormatName
(04)     URI="http://www.w3.org/&wsevt.nsprefix;/ws-evt/DeliveryFormats/Unwrap">
(05)   &lt;/wse:FormatName>
(06)   &lt;wsevd:EventDescriptions>
(07)    &lt;wsevd:types>
(08)     &lt;xs:schema targetNamespace="http://www.example.org/oceanwatch">
(09)      &lt;xs:include
(10)       schemaLocation="http://www.example.org/schemas/oceanwatch.xsd"/>
(11)      &lt;xs:element name="WindReport" type="ow:WindReportType"/>
(12)     &lt;/xs:schema>
(13)    &lt;/wsevd:types>
(14)    &lt;wsevd:eventType name="WindReportEvent" element="ow:WindReport"
(15)      actionURI="http://www.example.org/oceanwatch/2003/WindReport"/>
(16)   &lt;/wsevd:EventDescriptions>
(17)   &lt;wsdl:definitions> ...ws-eventing wsdl... &lt;/wsdl:definitions>
(18)  &lt;/wse:EventSource>
(19) &lt;/wsp:Polixy> </eg>
   </example>

   <p>
    The following shows a sample WS-Eventing wse:NotifyTo endpoint 
    reference that might appear as part of a Subscribe request. Lines 05-08 
    indicate that WS-ReliableMessaging is required when sending notifications 
    to this endpoint. The mex:Location element, lines 06-07, is a reference 
    to the WS-ReliableMessaging WSDL that the event source will need to use 
    when transmitting the WS-ReliableMessaging protocol messages for those 
    notifications.  For example, this WSDL might include security policy 
    assertions or perhaps binding information that indicates there is a 
    specific endpoint to which those protocol messages are to be sent - if 
    it is different from the address specified on line 02.
   </p>

   <example>
    <head> Sample EndpointReference with Embedded Policy </head>
    <eg>(01) &lt;wse:NotifyTo>
(02)   &lt;wsa:Address> http://example.com &lt;/wsa:Address>
(03)   &lt;wsa:Metadata>
(04)     &lt;wsp:Policy>
(05)       &lt;wsrmp:RMAssertion>
(06)         &lt;mex:Location URL='http://example.com/RMWSDL'
(07)                       Type='{http://schemas.xmlsoap.org/wsdl/}definitions' Identifier='...'/>
(08)       &lt;/wsrmp:RMAssertion>
(09)     &lt;/wsp:Policy>
(10)   &lt;/wsa:Metadata>
(11) &lt;/wse:NotifyTo> </eg>
   </example>

  </div1>

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

   <example>
     <eg><loc href="http://www.w3.org/&wsmex.nsprefix;/ws-mex/fault">http://www.w3.org/&wsmex.nsprefix;/ws-mex/fault</loc></eg>
   </example>

   <p>
    The definitions of faults in this section use the following properties:
   </p>
      
   <p>
    <kw>[Code]</kw> The fault code.<phrase/>
    <kw>[Subcode]</kw> The fault subcode.<phrase/>
    <kw>[Reason]</kw> The English language reason element.<phrase/>
    <kw>[Detail]</kw> The detail element. If absent, no detail element 
    is defined for the fault.<phrase/>
   </p>
   
   <p>The properties above bind to a SOAP 1.2 fault as follows:</p>
   <example>
    <eg>&lt;s12:Envelope&gt;
  &lt;s12:Header&gt;
    &lt;wsa:Action&gt; <kw>[Action]</kw> &lt;/wsa:Action&gt;
    &lt;!-- Headers elided for brevity. --&gt;
  &lt;/s12:Header&gt;
  &lt;s12:Body&gt;
    &lt;s12:Fault&gt;
      &lt;s12:Code&gt;
        &lt;s12:Value&gt;<kw>[Code]</kw>&lt;/s12:Value&gt;
        &lt;s12:Subcode&gt;
          &lt;s12:Value&gt;<kw>[Subcode]</kw>&lt;/s12:Value&gt;
        &lt;/s12:Subcode&gt;
      &lt;/s12:Code&gt;
      &lt;s12:Reason&gt;
        &lt;s12:Text xml:lang="en"&gt;<kw>[Reason]</kw>&lt;/s12:Text&gt;
      &lt;/s12:Reason&gt;
      &lt;s12:Detail&gt;
        <kw>[Detail]</kw>
        ...
      &lt;/s12:Detail&gt;
    &lt;/s12:Fault&gt;
  &lt;/s12:Body&gt;
&lt;/s12:Envelope&gt;</eg>
   </example>
      
   <p>The properties bind to a SOAP 1.1 fault as follows:</p>
   <example>
    <eg>&lt;s11:Envelope&gt;
  &lt;s12:Header&gt;
    &lt;wsa:Action&gt; <kw>[Action]</kw> &lt;/wsa:Action&gt;
    &lt;!-- Headers elided for brevity. --&gt;
  &lt;/s12:Header&gt;
  &lt;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="UnsupportedMetadata">
    <head>UnsupportedMetadata</head>

    <p>
     This fault MUST be generated when one or more metadata dialect(s) 
     specified on the request message are unsupported by the endpoint.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <th align="left"><kw>[Code]</kw></th>
       <td>s:Sender</td>
      </tr>
      <tr>
       <th align="left"><kw>[Subcode]</kw></th>
       <td>mex:UnsupportedMetadata</td>
      </tr>
      <tr>
       <th align="left"><kw>[Reason]</kw></th>
       <td>
        The metadata specified on the request message is not supported by 
        the endpoint
       </td>
      </tr>
      <tr>
       <th align="left"><kw>[Detail]</kw></th>
       <td>
        <emph>One or more elements specifying the unsupported Metadata of the 
        following form:</emph>
        <phrase/>
        &lt;Dialect Type='<emph>mex:QNameSerialization</emph>' Identifier='<emph>xs:anyURI</emph>'? .../> +
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

   <div2 id="InvalidMetadata">
    <head>InvalidMetadata</head>
    <p>
     This fault MUST be generated when the metadata passed on the 
     PutMetadata request message is invalid or when the Metadata would 
     render the endpoint invalid.
    </p>

    <table border="1">
     <tbody>
      <tr>
       <th align="left"><kw>[Code]</kw></th>
       <td>s:Sender</td>
      </tr>
      <tr>
       <th align="left"><kw>[Subcode]</kw></th>
       <td>mex:InvalidMetadata</td>
      </tr>
      <tr>
       <th align="left"><kw>[Reason]</kw></th>
       <td>
        The metadata specified is invalid for this endpoint
       </td>
      </tr>
      <tr>
       <th align="left"><kw>[Detail]</kw></th>
       <td>
        <emph>The invalid metadata specified by a mex:Metadata element.</emph>
        <phrase/>
        &lt;mex:Metadata ...> ... &lt;/mex:Metadata>
       </td>
      </tr>
     </tbody>
    </table>
   </div2>

  </div1>



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

   <p>
    This specification considers two sets of security requirements, those of 
    the applications that use the WS-MetadataExchange protocol and those of 
    the protocol itself.
   </p>

   <p>
    This specification makes no assumptions about the security requirements 
    of the applications that use WS-MetadataExchange. However, once those 
    requirements have been satisfied within a given operational context, 
    the addition of WS-MetadataExchange to this operational context can 
    not undermine the fulfillment of those requirements; the use of 
    WS-MetadataExchange SHOULD NOT create additional attack vectors within 
    an otherwise secure system.
   </p>

   <p>
    The material below is not a "check list". There are many other security 
    concerns that need to be considered when implementing or using this 
    protocol. Implementers and users of this protocol are urged to perform a 
    security analysis to determine their particular threat profile and the 
    appropriate responses to those threats.
   </p>

   <div2>
    <head>Metadata and Security Bootstrapping</head>

    <p>
     There are cases in which the metadata used to describe a service might 
     be considered sensitive information. In these cases it is advisable 
     for services to authenticate and authorize consumers as part of the 
     processing of any requests for this metadata. However, because the 
     security aspects of a service (e.g. supported protocols and token 
     formats, cipher suites, etc.) are usually described using metadata 
     (i.e. the constructs defined by WS-SecurityPolicy), there is an obvious 
     dilemma when attempting to protect metadata in this way. Services 
     wishing to protect access to their metadata are advised to use the 
     mechanisms described in <specref ref="bootstrapping"/> to advertise 
     the security requirements for clients wishing to access metadata via 
     the mechanisms defined in this specification.
    </p>
   </div2>
  </div1>

  <div1 id="metadata">
   <head>WS-MetadataExchange Metadata</head>

   <p>
    An endpoint MAY indicate its support of WS-MetadataExchange, or its 
    features,
    by including the MetadataExchange Policy assertion within its WSDL. By
    doing so the endpoint is indicating that the corresponding 
    WS-MetadataExchange
    operations are supported by that endpoint even though they are implicit
    and do not explicitly appear in its WSDL 
    (i.e. the WS-MetadataExchange operations do not appear in the WSDL that 
    MAY be retrievable by using a WS-MetadataExchange GetWSDL to that endpoint).
   </p>

   <p>
    The WS-MetadataExchange WSDL containing the operations indicated by the 
    MetadataExchange Assertion MAY be exposed by including the WSDL as a 
    child of the MetadataExchange Policy assertion or by including a 
    reference to it using the mex:Location or mex:Reference elements 
    (as described in <specref ref="MetadataReferences"/>). 
   </p>

   <p>
    The WS-MetadataExchange WSDL can be annotated to indicate any endpoint
    specific metadata that might be needed by clients interacting with
    the WS-MetadataExchange operations.  For example, the WSDL 
    MAY have policy assertions that
    indicate a particular security mechanism used to protect the
    WS-MetadataExchange operations supported by this endpoint.
   </p>

   <div2>
    <head>MetadataExchange Assertion</head>

    <p>
     Services indicate support for the WS-MetadataExchange specification 
     through the use of the Web Services
     Policy - Framework <bibref ref="wspolicy"/> and Web Services Policy -
     Attachment <bibref ref="WS-PolicyAttachment"/> specifications.
    </p>

    <p>
     This specification defines a policy assertion (mex:MetadataExchange).  
     The normative outline of this assertion is:
    </p>

    <example>
     <eg>&lt;mex:MetadataExchange ...>
  &lt;mex:GetMetadataSupported ...>
    &lt;mex:MetadataExchangeDialect Type="<emph>mex:QNameSerialization</emph>" ...>
      &lt;mex:MetadataContent URI="<emph>xs:anyURI</emph>" ...> 
        <emph>xs:any</emph>*
      &lt;/mex:MetadataContent> *
      <emph>xs:any</emph>*
    &lt;/mex:MetadataExchangeDialect> * 
    <emph>xs:any</emph>*
  &lt;/mex:GetMetadataSupported> ?
  &lt;mex:PutMetadataSupported ...>
    &lt;mex:MetadataExchangeDialect Type="<emph>mex:QNameSerialization</emph>" ...>
      &lt;mex:MetadataContent URI="<emph>xs:anyURI</emph>" ...> 
        <emph>xs:any</emph>*
      &lt;/mex:MetadataContent> *
      <emph>xs:any</emph>*
    &lt;/mex:MetadataExchangeDialect> *
    <emph>xs:any</emph>*
  &lt;/mex:PutMetadataSupported> ?
  &lt;mex:DeleteMetadataSupported ...>
    &lt;mex:MetadataExchangeDialect Type="<emph>mex:QNameSerialization</emph>" ...>
      &lt;mex:MetadataContent URI="<emph>xs:anyURI</emph>" ...> 
        <emph>xs:any</emph>*
      &lt;/mex:MetadataContent> *
      <emph>xs:any</emph>*
    &lt;/mex:MetadataExchangeDialect> *
    <emph>xs:any</emph>*
  &lt;/mex:DeleteMetadataSupported> ?
  <emph>xs:any</emph>*
&lt;/mex:MetadataExchange></eg>
    </example>

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

    <glist>

     <gitem>
      <label> /mex:MetadataExchange </label>
       <def>
        <p>
         This policy assertion has Endpoint Policy Subject. When present in a
         policy alternative, it indicates that 
         the WS-MetadataExchange protocol MUST
         be used when communicating with this endpoint.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:GetMetadataSupported </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates that the 
         GetMetadata operation is supported by this endpoint.  
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:GetMetadataSupported/mex:MetadataExchangeDialect@Type </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates support for the 
         specified MetadataExchange Dialect QName by the GetMetadata operation.
        </p>

        <p>
         Note: the QName is serialized as {namespace-uri}localName.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:GetMetadataSupported/mex:MetadataExchangeDialect/mex:MetadataContent </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates support for the 
         specified MetadataExchange content IRI by the GetMetadata 
         operation for the dialect indicated.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:GetMetadataSupported/mex:MetadataExchangeDialect/mex:MetadataContent/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional MetadataContent 
         specific metadata to be included within the policy assertion. Any 
         metadata that appears is scoped to the use of the specified 
         MetadataContent URI.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:GetMetadataSupported/mex:MetadataExchangeDialect/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional Metadata Dialect 
         specific metadata to be included within the policy assertion. Any 
         metadata that appears is scoped to the use of the specified 
         Metadata Dialect QName.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:GetMetadataSupported/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional metadata specific 
         to the GetMetadata operation to be included within the policy 
         assertion. Any metadata that appears is scoped to the use of the 
         GetMetadata operation.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:PutMetadataSupported </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates that the PutMetadata 
         operation is supported by this endpoint. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:PutMetadataSupported/mex:MetadataExchangeDialect@Type </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates support for the 
         specified MetadataExchange Dialect QName by the PutMetadata operation. 
        </p>

        <p>
         Note: the QName is serialized as {namespace-uri}localName.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:PutMetadataSupported/mex:MetadataExchangeDialect/mex:MetadataContent </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates support for the 
         specified MetadataExchange content IRI by the PutMetadata 
         operation for the dialect indicated. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:PutMetadataSupported/mex:MetadataExchangeDialect/mex:MetadataContent/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional MetadataContent 
         specific metadata to be included within the policy assertion. Any 
         metadata that appears is scoped to the use of the specified 
         MetadataContent URI. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:PutMetadataSupported/mex:MetadataExchangeDialect/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional Metadata Dialect 
         specific metadata to be included within the policy assertion. Any 
         metadata that appears is scoped to the use of the specified 
         Metadata Dialect QName. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:PutMetadataSupported/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional metadata specific to 
         the PutMetadata operation to be included within the policy 
         assertion. Any metadata that appears is scoped to the use of the 
         PutMetadata operation. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:DeleteMetadataSupported </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates that the 
         DeleteMetadata operation is supported by this endpoint. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:DeleteMetadataSupported/mex:MetadataExchangeDialect@Type </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates support for the 
         specified MetadataExchange Dialect QName by the 
         DeleteMetadata operation. 
        </p>

        <p>
         Note: the QName is serialized as {namespace-uri}localName.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:DeleteMetadataSupported/mex:MetadataExchangeDialect/mex:MetadataContent </label>
       <def>
        <p>
         When present, this OPTIONAL parameter indicates support for the 
         specified MetadataExchange content IRI by the DeleteMetadata 
         operation for the dialect indicated.
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:DeleteMetadataSupported/mex:MetadataExchangeDialect/mex:MetadataContent/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional MetadataContent 
         specific metadata to be included within the policy assertion. Any 
         metadata that appears is scoped to the use of the specified 
         MetadataContent URI. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:DeleteMetadataSupported/mex:MetadataExchangeDialect/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional Metadata Dialect 
         specific metadata to be included within the policy assertion. Any 
         metadata that appears is scoped to the use of the specified 
         Metadata Dialect QName. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/mex:DeleteMetadataSupported/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional metadata specific to 
         the DeleteMetadata operation to be included within the policy 
         assertion. Any metadata that appears is scoped to the use of the 
         DeleteMetadata operation. 
        </p>
       </def>
     </gitem>

     <gitem>
      <label> /mex:MetadataExchange/xs:any </label>
       <def>
        <p>
         This extensibility point allows for additional WS-MetadataExchange 
         specific metadata to be included within the policy assertion - 
         e.g. WS-MetadataExchange WSDL, or nested policy assertions related 
         to the WS-MetadataExchange message exchanges. Any metadata that 
         appears is scoped to the operations and features of the 
         WS-MetadataExchange specification.
        </p>
       </def>
     </gitem>

    </glist>

   </div2>

  </div1>

  <div1 id="bootstrapping">
   <head>Bootstrapping Metadata Retrieval</head>

   <p>
    Although the operations described in <specref ref="Retrieving-Metadata"/>
    can be used by a requester to obtain the metadata about a particular 
    Service Endpoint, there is the 'chicken and egg' problem of how the 
    requester knows whether or not these operations are supported in the first 
    place. The facilities described in 
    <specref ref="Metadata-in-Endpoint-References"/>, 
    <specref ref="ImplicitWSDL"/>, and 
    <specref ref="metadata"/> can be used to address this problem.
   </p>

   <example id="EPRgetwsdl">
    <head>Endpoint reference to a Service Endpoint that supports mex:GetWSDL</head>

    <eg>(01) &lt;wsa:EndpointReference ...>
(02)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address>
(03)   &lt;wsa:Metadata>
(04)     &lt;wsp:Policy>
(05)       &lt;mex:MetadataExchange/>
(06)       &lt;wssa:SOAP11/>
(07)     &lt;/wsp:Policy>
(08)   &lt;/wsa:Metadata>
(09) &lt;/wsa:EndpointReference> </eg>
   </example>

   <p>
    The policy assertion at line 05 in <specref ref="EPRgetwsdl"/>
    indicates to consumers of this EPR that the GetWSDL operation is 
    supported by the referenced Service Endpoint. The parameters described in 
    <specref ref="metadata"/> could be added to the policy assertion at 
    line 05 to indicate additional capabilities such as support for the 
    mex:GetMetadata operation.
    The assertion on line 06 indicates that SOAP 1.1 needs to be used 
    when sending the GetWSDL message.
   </p>

   <p>
    Alternatively the EPR for a Service Endpoint can contain embedded 
    metadata or references to Metadata Resources that describe the 
    referenced service. <specref ref="EPRMEX"/> illustrated an EPR with 
    embedded WSDL metadata. <specref ref="WSDLrefinEPR"/> shows an EPR with a 
    reference to a Metadata Resource. The representation of this resource 
    (retrievable via HTTP GET) is a WSDL document that describes the 
    service at "http://example.com". <specref ref="EPRrefMDref"/> illustrates a 
    similar mechanism, except that the retrieval mechanism is WS-Transfer 
    and the representation will be a mex:Metadata document.
   </p>

   <p>
    Extra binding information (such as SOAP version) could either be 
    implied by the context in which the EPR was provided or could be 
    conveyed as in <specref ref="EPRwsdl"/>.  
   </p>

   <example id="EPRwsdl">
    <head>Endpoint reference to a Service Endpoint that supports mex:GetWSDL</head>

    <eg>(01) &lt;wsa:EndpointReference ...>
(02)   &lt;wsa:Address>http://services.example.org/stockquote&lt;/wsa:Address>
(03)   &lt;wsa:Metadata>
(04)     &lt;wsp:Policy>
(05)       &lt;mex:MetadataExchange>
{06)         &lt;wsdl:definitions ...>
(07)           &lt;!-- Binding information -->
(08)           &lt;wsdl:binding ...>
(09)             ...
(10)           &lt;/wsdl:binding>
(11)         &lt;/wsdl:definitions>
(12)       &lt;/mex:MetadataExchange>
(13)     &lt;/wsp:Policy>
(14)   &lt;/wsa:Metadata>
(15) &lt;/wsa:EndpointReference> </eg>
   </example>

   <p>
    When information about the availability of metadata is not present in 
    an EPR, requesters can use contextual or out-of-band information to 
    choose the mechanism most appropriate for retrieving the metadata. 
    Furthermore, specific mechanisms for metadata retrieval can be defined 
    by communities within the context of particular application domains.
   </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: 
     Alessio Soldano (Red Hat),
     Ashok Malhotra (Oracle Corp.),
     Asir Vedamuthu (Microsoft Corp.),
     Bob Freund (Hitachi, Ltd.),
     Bob Natale (MITRE Corp.),
     David Snelling (Fujitsu, Ltd.),
     Doug Davis (IBM),
     Fred Maciel (Hitachi, Ltd.),
     Geoff Bullen (Microsoft Corp.),
     Gilbert Pilz (Oracle Corp.),
     Greg Carpenter (Microsoft Corp.),
     Jeff Mischkinsky (Oracle Corp.),
     Katy Warr (IBM),
     Li Li (Avaya Communications),
     Mark Little (Red Hat),
     Martin Chapman (Oracle Corp.),
     Paul Fremantle (WSO2),
     Paul Nolan (IBM),
     Prasad Yendluri (Software AG),
     Ram Jeyaraman (Microsoft Corp.),
     Sreedhara Narayanaswamy (CA),
     Sumeet Vij (Software AG),
     Tom Rutt (Fujitsu, Ltd.),
     Vikas Varma (Software AG),
     Wu Chou (Avaya Communications),
     Yves Lafon (W3C/ERCIM).
   </p>
  </div1>

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

   <div2>
    <head>Normative References</head>

    <blist>
     <bibl key="BP12" id="BP12"
      href="http://ws-i.org/profiles/BasicProfile-1.2-2010-11-09.html">
        <titleref>
         WS-I Profile, Basic Profile Version 1.2
        </titleref>
        , R. Chumbley, et al, Editors.
        Web Services Interoperability Organization (WS-I), 9 November 2010.
     </bibl>

     <bibl key="BP20" id="BP20"
      href="http://ws-i.org/profiles/BasicProfile-2.0-2010-11-09.html">
        <titleref>
         WS-I Profile, Basic Profile Version 2.0
        </titleref>
        , R. Chumbley, et al, Editors.
        Web Services Interoperability Organization (WS-I), 9 November 2010.
     </bibl>

     <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, Author.
       Internet Engineering Task Force, March 1997.
     </bibl>

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

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

     <bibl key="SOAP12" id="SOAP12"
      href="http://www.w3.org/TR/soap12-part1/">
       <titleref>
        W3C Recommendation, "SOAP Version 1.2 Part 1: Messaging Framework"
       </titleref>
       , M. Gudgin, M. Hadley, N. Mendelsohn, J-J. Moreau, H. Frystyk Nielson,
        Editors.
       World Wide Web Consortium (W3C), 27 April 2007.
     </bibl>

     <bibl key="WS-Addressing" id="AddrCore"
      href="http://www.w3.org/TR/ws-addr-core">
       <titleref>
        W3C Recommendation, "Web Services Addressing 1.0 (WS-Addressing)"
       </titleref>
       , M. Gudgin, M. Hadley, T. Rogers, Editors.
       World Wide Web Consortium (W3C), 9 May 2006.
     </bibl>

     <bibl key="WS-Addressing 1.0 SOAP Binding" id="WSABinding"
      href="http://www.w3.org/TR/ws-addr-soap">
       <titleref>
        W3C Recommendation, "Web Services Addressing 1.0 - SOAP Binding"
       </titleref>
       , M. Gudgin, M. Hadley, T. Rogers, Editors.
       World Wide Web Consortium (W3C), 9 May 2006.
     </bibl>

     <bibl key="WS-SOAPAssertions" id="WS-SOAPAssertions"
        href="http://www.w3.org/TR/ws-soap-assertions">
      <titleref>
       W3C Working Group Draft, "Web Services SOAP Assertions (WS-SOAPAssertions) 1.0"
      </titleref>
      , D. Davis, et al., Editors. 
      World Wide Web Consortium (W3C), 15 September 2009. 
     </bibl>

     <bibl key="WS-Policy" id="wspolicy"
      href="http://www.w3.org/TR/ws-policy/">
       <titleref>
        W3C Recommendation, "Web Services Policy (WS-Policy) 1.5 - Framework"
       </titleref>
       , A. Vedamuthu, et al., Editors.
       World Wide Web Consortium (W3C), 4 September 2007.
     </bibl>

     <bibl id="WS-PolicyAttachment" key="WS-PolicyAttachment"
        href="http://www.w3.org/TR/ws-policy-attach/">
      <titleref>
       W3C Recommendation, "Web Services Policy (WS-Policy) 1.5 - Attachment"
      </titleref>
      , A. Vedamuthu, et al., Editors.
      World Wide Web Consortium (W3C), 4 September 2007.
     </bibl>

     <bibl id="WS-Transfer" key="WS-Transfer"
        href="http://www.w3.org/TR/ws-transfer">
      <titleref>
       W3C Working Group Draft, "Web Services Transfer (WS-Transfer) 1.1"
      </titleref>
      , D. Davis, et al., Editors. 
      World Wide Web Consortium (W3C), 15 September 2009. 
     </bibl>

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

     <bibl key="XML Infoset" id="XMLInfoset"
      href="http://www.w3.org/TR/xml-infoset">
       <titleref>
        W3C Recommendation, "XML Information Set (Second Edition)"
       </titleref>
       , J. Cowan, R. Tobin, Editors.
       World Wide Web Consortium (W3C), 4 February 2004.
     </bibl>

     <bibl key="XMLSchema - Part 1" id="XMLSchema1"
      href="http://www.w3.org/TR/xmlschema-1/">
       <titleref>
        W3C Recommendation, "XML Schema Part 1: Structures (Second Edition)"
       </titleref>
       , H. Thompson, et al., Editors.
       World Wide Web Consortium (W3C), 28 October 2004.
     </bibl>

     <bibl key="XMLSchema - Part 2" id="XMLSchema2"
      href="http://www.w3.org/TR/xmlschema-2/">
       <titleref>
        W3C Recommendation, "XML Schema Part 2: Datatypes (Second Edition)"
       </titleref>
       , P. Biron, A. Malhotra, Editors.
       World Wide Web Consortium (W3C), 28 October 2004.
     </bibl>

    </blist>
   </div2>
 
  </div1>
 </body>
 
 <back>
  <div1 id="Appendix-A">
   <head>XML Schema</head>
   
   <p>
    A normative copy of the XML Schema <bibref ref='XMLSchema1'/>,
    <bibref ref='XMLSchema2'/> description for this specification can be 
    retrieved from the following address:
   </p>
   
   <example>
    <eg><loc href='http://www.w3.org/&wsmex.nsprefix;/ws-mex/MetadataExchange.xsd'>http://www.w3.org/&wsmex.nsprefix;/ws-mex/MetadataExchange.xsd</loc></eg>
   </example>

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

   <example>
    <eg>&lt;xs:schema
    targetNamespace='http://www.w3.org/&wsmex.nsprefix;/ws-mex'
    xmlns:tns='http://www.w3.org/&wsmex.nsprefix;/ws-mex'
    xmlns:wsa='http://www.w3.org/2005/08/addressing'
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
    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'/>

  <!-- Types and global elements -->
  &lt;xs:simpleType name='QNameSerialization'>
    &lt;xs:restriction base='xs:string'>
      &lt;xs:pattern value='\{.*\}.+'/>
      <!-- A QName w/o a namespace-uri is realized as "{}local-name} -->
    &lt;/xs:restriction>
  &lt;/xs:simpleType>

  &lt;!-- GetWSDL request -->
  &lt;xs:element name='GetWSDL'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- GetWSDL response -->
  &lt;xs:element name='GetWSDLResponse'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Get Metadata request -->
  &lt;xs:element name='GetMetadata'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element ref='tns:Dialect' minOccurs='0' maxOccurs='unbounded'/>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:attribute name='Content' type='xs:anyURI'/>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Get Metadata response -->
  &lt;xs:element name='GetMetadataResponse'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element ref='tns:Metadata'/>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Put Metadata request -->
  &lt;xs:element name='PutMetadata'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element ref='tns:Metadata'/>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Put Metadata response -->
  &lt;xs:element name='PutMetadataResponse'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element ref='tns:Metadata' minOccurs='0'/>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Delete Metadata request -->
  &lt;xs:element name='DeleteMetadata'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element ref='tns:Dialect' minOccurs='0' maxOccurs='unbounded'/>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Delete Metadata response -->
  &lt;xs:element name='DeleteMetadataResponse'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;xs:element name='Dialect'>
    &lt;xs:complexType>
      &lt;xs:attribute name='Type' type='tns:QNameSerialization' use='required'/>
      &lt;xs:attribute name='Identifier' type='xs:anyURI'/>
      &lt;xs:attribute name='Content' type='xs:anyURI'/>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;!-- Metadata -->
  &lt;xs:element name='Metadata'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element ref='tns:MetadataSection'
                    minOccurs='0'
                    maxOccurs='unbounded'/>
        &lt;xs:any namespace='##other' processContents='lax'
                minOccurs='0'
                maxOccurs='unbounded'/>
      &lt;/xs:sequence>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;xs:element name='MetadataSection'>
    &lt;xs:complexType>
      &lt;xs:choice>
        &lt;xs:any namespace='##other' processContents='lax'/>
        &lt;xs:element name='MetadataReference' type='wsa:EndpointReferenceType' />
        &lt;xs:element name='MetadataLocation' type='tns:URI'/>
      &lt;/xs:choice>
      &lt;xs:attribute name='Dialect' type='tns:QNameSerialization' use='required'/>
      &lt;xs:attribute name='Identifier' type='xs:anyURI' use='required'/>
      &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
    &lt;/xs:complexType>
  &lt;/xs:element>

  &lt;xs:complexType name='LocationType'>
    &lt;xs:sequence>
      &lt;xs:any namespace='##other' processContents='lax' minOccurs='0'
              maxOccurs='unbounded'/>
    &lt;/xs:sequence>
    &lt;xs:attribute name='URL'  type='xs:anyURI' use='required'/>
    &lt;xs:attribute name='Type' type='tns:QNameSerialization'  use='required'/>
    &lt;xs:attribute name='Identifier' type='xs:anyURI' use='required'/>
    &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
  &lt;/xs:complexType>
  &lt;xs:element name='Location' type='tns:LocationType'/>

  &lt;xs:complexType name='ReferenceType'>
    &lt;xs:complexContent>
      &lt;xs:extension base='wsa:EndpointReferenceType'>
        &lt;xs:attribute name='Type' type='tns:QNameSerialization'  use='required'/>
        &lt;xs:attribute name='Identifier' type='xs:anyURI' use='required'/>
        &lt;xs:anyAttribute processContents='lax'/>
      &lt;/xs:extension>
    &lt;/xs:complexContent>
  &lt;/xs:complexType>
  &lt;xs:element name='Reference' type='tns:ReferenceType'/>

  &lt;!-- Policy -->
  &lt;xs:complexType name='URI'>
    &lt;xs:simpleContent>
      &lt;xs:extension base='xs:anyURI'>
        &lt;xs:anyAttribute namespace='##other' processContents='lax'/>
      &lt;/xs:extension>
    &lt;/xs:simpleContent>
  &lt;/xs:complexType>

  &lt;xs:element name='MetadataExchange'>
    &lt;xs:complexType>
      &lt;xs:sequence>
        &lt;xs:element name='GetMetadataSupported' minOccurs='0'>
          &lt;xs:complexType>
            &lt;xs:sequence>
              &lt;xs:element name='MetadataExchangeDialect' 
                          minOccurs='0' maxOccurs='unbounded'>
                &lt;xs:complexType>
                  &lt;xs:sequence>
                    &lt;xs:element name='MetadataContent' 
                                minOccurs='0' maxOccurs='unbounded'>
                      &lt;xs:complexType>
                        &lt;xs:sequence>
                          &lt;xs:any namespace='##other' processContents='lax' 
                                  minOccurs='0' maxOccurs='0'/>
                        &lt;/xs:sequence>
                        &lt;xs:attribute name='URI' type='xs:anyURI' 
                                                 use='required' />
                        &lt;xs:anyAttribute namespace="##other" 
                                         processContents='lax'/>
                      &lt;/xs:complexType>
                    &lt;/xs:element>
                    &lt;xs:any namespace='##other' processContents='lax'
                            minOccurs='0' maxOccurs='unbounded'/>
                  &lt;/xs:sequence>
                  &lt;xs:attribute name='URI' type='xs:anyURI' 
                                use='required'/>
                  &lt;xs:anyAttribute namespace='##other' 
                                   processContents='lax'/>
                &lt;/xs:complexType>
              &lt;/xs:element>
              &lt;xs:any namespace='##other' processContents='lax' 
                      minOccurs='0' maxOccurs='unbounded'/>
            &lt;/xs:sequence>
            &lt;xs:anyAttribute namespace='##other' processContents='lax' />
          &lt;/xs:complexType>
        &lt;/xs:element>
        &lt;xs:element name='PutMetadataSupported' minOccurs='0'>
          &lt;xs:complexType>
            &lt;xs:sequence>
              &lt;xs:element name='MetadataExchangeDialect' 
                          minOccurs='0' maxOccurs='unbounded'>
                &lt;xs:complexType>
                  &lt;xs:sequence>
                    &lt;xs:element name='MetadataContent' 
                                minOccurs='0' maxOccurs='unbounded'>
                      &lt;xs:complexType>
                        &lt;xs:sequence>
                          &lt;xs:any namespace='##other' processContents='lax' 
                                  minOccurs='0' maxOccurs='0'/>
                        &lt;/xs:sequence>
                        &lt;xs:attribute name='URI' type='xs:anyURI' 
                                                 use='required' />
                        &lt;xs:anyAttribute namespace="##other" 
                                         processContents='lax'/>
                      &lt;/xs:complexType>
                    &lt;/xs:element>
                    &lt;xs:any namespace='##other' processContents='lax'
                            minOccurs='0' maxOccurs='unbounded'/>
                  &lt;/xs:sequence>
                  &lt;xs:attribute name='URI' type='xs:anyURI' 
                                use='required'/>
                  &lt;xs:anyAttribute namespace='##other' 
                                   processContents='lax'/>
                &lt;/xs:complexType>
              &lt;/xs:element>
              &lt;xs:any namespace='##other' processContents='lax' 
                      minOccurs='0' maxOccurs='unbounded'/>
            &lt;/xs:sequence>
            &lt;xs:anyAttribute namespace='##other' processContents='lax' />
          &lt;/xs:complexType>
        &lt;/xs:element>
        &lt;xs:element name='DeleteMetadataSupported' minOccurs='0'>
          &lt;xs:complexType>
            &lt;xs:sequence>
              &lt;xs:element name='MetadataExchangeDialect' 
                          minOccurs='0' maxOccurs='unbounded'>
                &lt;xs:complexType>
                  &lt;xs:sequence>
                    &lt;xs:element name='MetadataContent' 
                                minOccurs='0' maxOccurs='unbounded'>
                      &lt;xs:complexType>
                        &lt;xs:sequence>
                          &lt;xs:any namespace='##other' processContents='lax' 
                                  minOccurs='0' maxOccurs='0'/>
                        &lt;/xs:sequence>
                        &lt;xs:attribute name='URI' type='xs:anyURI' 
                                                 use='required' />
                        &lt;xs:anyAttribute namespace="##other" 
                                         processContents='lax'/>
                      &lt;/xs:complexType>
                    &lt;/xs:element>
                    &lt;xs:any namespace='##other' processContents='lax'
                            minOccurs='0' maxOccurs='unbounded'/>
                  &lt;/xs:sequence>
                  &lt;xs:attribute name='URI' type='xs:anyURI' 
                                use='required'/>
                  &lt;xs:anyAttribute namespace='##other' 
                                   processContents='lax'/>
                &lt;/xs:complexType>
              &lt;/xs:element>
              &lt;xs:any namespace='##other' processContents='lax' 
                      minOccurs='0' maxOccurs='unbounded'/>
            &lt;/xs:sequence>
            &lt;xs:anyAttribute namespace='##other' processContents='lax' />
          &lt;/xs:complexType>
        &lt;/xs:element>
      &lt;/xs:sequence>
    &lt;/xs:complexType>
  &lt;/xs:element>

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

  <div1 id="Appendix-B">
   <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/&wsmex.nsprefix;/ws-mex/metadataexchange.wsdl'>http://www.w3.org/&wsmex.nsprefix;/ws-mex/metadataexchange.wsdl</loc></eg>
   </example>

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

   <example>
    <eg>&lt;wsdl:definitions
    targetNamespace='http://www.w3.org/&wsmex.nsprefix;/ws-mex'
    xmlns:tns='http://www.w3.org/&wsmex.nsprefix;/ws-mex'
    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:xs='http://www.w3.org/2001/XMLSchema' >

  &lt;wsdl:types>
    &lt;xs:schema
        targetNamespace='http://www.w3.org/&wsmex.nsprefix;/ws-mex' >
      &lt;xs:include schemaLocation='metadataexchange.xsd' />
    &lt;/xs:schema>
  &lt;/wsdl:types>

  &lt;wsdl:message name='GetWSDLMsg'>
    &lt;wsdl:part name='body' element='tns:GetWSDL'/>
  &lt;/wsdl:message>

  &lt;wsdl:message name='GetWSDLResponseMsg'>
    &lt;wsdl:part name='body' element='tns:GetWSDLResponse'/>
  &lt;/wsdl:message>

  &lt;wsdl:message name='GetMetadataMsg' >
    &lt;wsdl:part name='body' element='tns:GetMetadata' />
  &lt;/wsdl:message>
  &lt;wsdl:message name='GetMetadataResponseMsg' >
    &lt;wsdl:part name='body' element='tns:GetMetadataResponse' />
  &lt;/wsdl:message>

  &lt;wsdl:message name='PutMetadataMsg' >
    &lt;wsdl:part name='body' element='tns:PutMetadata' />
  &lt;/wsdl:message>
  &lt;wsdl:message name='PutMetadataResponseMsg' >
    &lt;wsdl:part name='body' element='tns:PutMetadataResponse' />
  &lt;/wsdl:message>

  &lt;wsdl:message name='DeleteMetadataMsg' >
    &lt;wsdl:part name='body' element='tns:DeleteMetadata' />
  &lt;/wsdl:message>
  &lt;wsdl:message name='DeleteMetadataResponseMsg' >
    &lt;wsdl:part name='body' element='tns:DeleteMetadataResponse' />
  &lt;/wsdl:message>

  &lt;wsdl:portType name='MetadataExchange' >

    &lt;wsdl:operation name='GetWSDL'>
      &lt;wsdl:input
       message='tns:GetWSDLMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetWSDL'/>
      &lt;wsdl:output
       message='tns:GetWSDLResponseMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetWSDLResponse'/>
    &lt;/wsdl:operation>

    &lt;wsdl:operation name='GetMetadata' >
      &lt;wsdl:input
       message='tns:GetMetadataMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetMetadata'/>
      &lt;wsdl:output
       message='tns:GetMetadataResponseMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/GetMetadataResponse'/>
    &lt;/wsdl:operation>

    &lt;wsdl:operation name='PutMetadata' >
      &lt;wsdl:input
       message='tns:PutMetadataMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/PutMetadata'/>
      &lt;wsdl:output
       message='tns:PutMetadataResponseMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/PutMetadataResponse'/>
    &lt;/wsdl:operation>

    &lt;wsdl:operation name='DeleteMetadata' >
      &lt;wsdl:input
       message='tns:DeleteMetadataMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/DeleteMetadata'/>
      &lt;wsdl:output
       message='tns:DeleteMetadataResponseMsg'
       wsam:Action=
        'http://www.w3.org/&wsmex.nsprefix;/ws-mex/DeleteMetadataResponse'/>
    &lt;/wsdl:operation>

  &lt;/wsdl:portType>

&lt;/wsdl:definitions></eg>
   </example>
  </div1>

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

   <table border="1">
    <tbody>
     <tr>
      <th> Data </th>
      <th> Author </th>
      <th> Description </th>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6391">6391</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6519">6519</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6442">6442</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=6639">6639</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6425">6425</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/16 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6587">6587</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/17 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6405">6405</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/17 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6604">6604</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/03/18 </td>
      <td> AM </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6404">6404</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/07 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6728">6728</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/22 </td>
      <td> KW </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6739">6739</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/04/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6787">6787</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/12 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6433">6433</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/21 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6674">6674</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/05/27 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6906">6906</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/07/21 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7122">7122</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/07/21 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6500">6500</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/04 </td>
      <td> DD </td>
      <td> Added resolution of issues
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6719">6719</loc>,
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6720">6720</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7194">7194</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6679">6679</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/18 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7206">7206</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/18 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7195">7195</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/25 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7365">7365</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/08/25 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7270">7270</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6702">6702</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/02 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6694">6694</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/02 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6533">6533</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/09/23 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6570">6570</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/10/02 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7426">7426</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/10/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6406">6406</loc>,
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6721">6721</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/10/13 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7827">7827</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/10/20 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7068">7068</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/10/20 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7207">7207</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7912">7912</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8204">8204</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8168">8168</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8199">8199</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8214">8214</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/06 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8124">8124</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/11/17 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8280">8280</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8291">8291</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8203">8203</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8201">8201</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/08 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8227">8227</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/15 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8200">8200</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/15 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8297">8297</loc>
      </td>
     </tr>
     <tr>
      <td> 2009/12/15 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8202">8202</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/01/12 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8293">8293</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/01/27 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8294">8294</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/01/27 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8292">8292</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/01/27 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8290">8290</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/01/27 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8205">8205</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/01/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=7728">7728</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/02/09 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8160">8160</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/03/09 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6463">6463</loc>,
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8031">8031</loc>,
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8198">8198</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/03/16 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8289">8289</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/03/30 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9031">9031</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/03/30 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9266">9266</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/04/20 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9250">9250</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/05/04 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9087">9087</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/05/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9570">9570</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/05/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9699">9699</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/05/11 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9671">9671</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/05/12 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=9709">9709</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/08/17 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=10339">10339</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/09/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=10768">10768</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/09/28 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=10785">10785</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/11/19 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=8284">8284</loc>
      </td>
     </tr>
     <tr>
      <td> 2010/12/14 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11189">11189</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/01/26 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11625">11625</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/01/26 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11849">11849</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/01/26 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11867">11867</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/02/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11850">11850</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/02/01 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11882">11882</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/02/07 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11899">11899</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/02/15 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11865">11865</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/02/17 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=12113">12113</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/02/17 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=11790">11790</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/03/22 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=12093">12093</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/04/19 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=12457">12457</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/07/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=13148">13148</loc>
      </td>
     </tr>
     <tr>
      <td> 2011/07/05 </td>
      <td> DD </td>
      <td> Added resolution of issue 
       <loc href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=13151">13151</loc>
      </td>
     </tr>
    </tbody>
   </table>
  </div1>

 </back>
</spec>

