<?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" > -->
<!ENTITY % entities SYSTEM "entitiesedcopy.dtd" >
%entities;
<!ENTITY status "Editors copy $Date: 2002/06/13 04:08:57 $">
]>
<spec w3c-doctype="wd" role="editors-copy">
<!-- <spec w3c-doctype="wd"> -->
  <header>
    <title>SOAP Version 1.2 Part 1: Messaging Framework</title>
    <w3c-designation>&w3c-designation-part1;</w3c-designation>
    <w3c-doctype>&status;</w3c-doctype>
    <pubdate>
      <day>&draft.day;</day>
      <month>&draft.month;</month>
      <year>&draft.year;</year>
    </pubdate>
    <publoc><loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="&dated-part1;">&dated-part1;</loc></publoc>
    <prevlocs><loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/TR/2001/WD-soap12-part1-20011002/">http://www.w3.org/TR/2001/WD-soap12-part1-20011002/</loc></prevlocs>
    <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/&shortname-part1;/">http://www.w3.org/TR/&shortname-part1;/</loc></latestloc>
    <authlist>
      <author>
	<name>Martin Gudgin</name>
	<affiliation>DevelopMentor</affiliation>
      </author>
      <author>
	<name>Marc Hadley</name>
	<affiliation>Sun Microsystems</affiliation>
      </author>
      <author>
	<name>Jean-Jacques Moreau</name>
	<affiliation>Canon</affiliation>
      </author>
      <author>
	<name>Henrik Frystyk Nielsen</name>
	<affiliation>Microsoft</affiliation>
      </author>
    </authlist>
    <abstract>
      <p>SOAP Version 1.2 is a lightweight protocol intended for
      exchanging structured information in a decentralized, distributed
      environment. "Part 1: Messaging Framework" defines, using XML technologies,
      an extensible messaging framework containing a message
      construct that can be exchanged over a
      variety of underlying protocols.</p>
    </abstract>

    <status>
     <p><emph>This section describes the status of this document
          at the time of its publication. Other documents may
          supersede this document. The latest status of this document
          series is maintained at the W3C.</emph></p>

      <p>This is the fourth <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" href="http://www.w3.org/Consortium/Process-20010719/tr.html#RecsWD" xlink:show="replace" xlink:actuate="onRequest">W3C Working
          Draft</loc> of the SOAP Version 1.2 specification for review
          by W3C members and other interested parties. It has been
          produced by the <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" href="http://www.w3.org/2000/xp/Group/" xlink:show="replace" xlink:actuate="onRequest">XML Protocol
          Working Group</loc> (WG), which is part of the <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" href="http://www.w3.org/2002/ws/Activity" xlink:show="replace" xlink:actuate="onRequest">Web Services
Activity</loc>.</p>

      <p>Refer to appendix <specref ref="changelog"/> for a detailed list of
      changes since the last publication of this document. A list of
      open issues against this document can be found at
      <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/2000/xp/Group/xmlp-issues">http://www.w3.org/2000/xp/Group/xmlp-issues</loc>.</p>

      <p>Comments on this document should be sent to <loc href="mailto:xmlp-comments@w3.org">xmlp-comments@w3.org</loc>
	(public archive <bibref ref="CommentArchive"/>). It is inappropriate to send discussion email
to this address.</p>

      <p>Discussion of this document takes place on the public <loc href="mailto:xml-dist-app@w3.org">xml-dist-app@w3.org</loc>
          mailing list <bibref ref="DiscussionArchive"/> under the email
          communication rules in the XML Protocol Working Group
          Charter <bibref ref="XMLPCharter"/>.</p>

     <p>This is a public W3C Working Draft. It is a draft
          document and may be updated, replaced, or obsoleted by other
          documents at any time. It is inappropriate to use W3C
          Working Drafts as reference material or to cite them as
          other than "works in progress". A list of all <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" href="http://www.w3.org/TR/" xlink:show="replace" xlink:actuate="onRequest">W3C technical
          reports</loc> can be found at http://www.w3.org/TR/.</p>
    </status>
    <langusage>
      <language id="en">English</language>
    </langusage>
    <revisiondesc>
      <p>Last Modified: $Date: 2002/06/13 04:08:57 $</p>
    </revisiondesc>
  </header>
  <body>


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

      <p>SOAP Version 1.2 (SOAP) is a lightweight protocol intended for
      exchanging structured information in a decentralized, distributed
      environment. It uses XML technologies to define an extensible
      messaging framework providing a message construct that can be
      exchanged over a variety of underlying protocols. The framework
      has been designed to be independent of any particular programming
      model and other implementation specific semantics.</p>

      <p>Two major design goals for SOAP are simplicity and
      extensibility (see XMLP Requirements <bibref ref="xmlp-reqs"/>).
      SOAP attempts to meet these goals by omitting, from the messaging
      framework, features that are often found in distributed systems.
      Such features are left to be defined as extensions by other
      specifications. Such features include but are not limited to
      "reliability", "security", "correlation", "routing", and the
      concept of message exchange patterns (MEPs). While it is
      anticipated that many such features will be defined, it is beyond
      the scope of this specification to do so.</p>

      <p>The SOAP specification consists of three parts. Part 1 of the
      SOAP specification (this document) defines the SOAP messaging
      framework consisting of:</p>
      
      <olist>
	<item>
	  <p>The SOAP processing model defining the rules for
	    processing a SOAP message (see <specref ref="msgexchngmdl"/>).</p>
	</item>

	<item>
	  <p>The SOAP message construct defining the structure of a
	    SOAP message (see <specref ref="soapenv"/>).</p>
	</item>

	<item>
	  <p>The SOAP underlying protocol binding framework describing
	    the rules for defining a binding to an underlying protocol
	    that can be used for exchanging SOAP messages between SOAP
	    nodes (see <specref ref="transpbindframew"/>).</p>
	</item>
      </olist>
      
      <p >Part 0 <bibref ref="SOAP-PART0"/>
      is a non-normative document intended to provide an
      easily understandable tutorial on the features of the SOAP Version
      1.2 specifications.</p>

      <p>Part 2 <bibref ref="SOAP-PART2"/> describes a set of adjuncts
      that can be used in connection with the SOAP messaging framework.</p>
      
      <note><p>In previous versions of this specification the SOAP
	  name was an acronym. This is no longer the case.</p></note>

      <div2 id="notation">
	<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 two namespace prefixes throughout;
          they are listed in <specref ref="tabnsprefixes"/>.
          Note that the choice of any namespace prefix is arbitrary
          and not semantically significant (see <bibref
          ref="XMLInfoSet"/>).</p>
        
        <table border="1" id="tabnsprefixes">
          <caption>Prefixes and Namespaces used in this specification.</caption>
          <tbody>
          <tr>
            <th>Prefix</th>
            <th>Namespace</th>
          </tr>
          <tr>
            <td>enc</td>
            <td><attval>http://www.w3.org/2002/06/soap-encoding</attval></td>
          </tr>
          <tr>
            <td>env</td>
            <td><attval>http://www.w3.org/2002/06/soap-envelope</attval></td>
          </tr>
          </tbody>
        </table>

        <p>Namespace names of the general form <attval>http://example.org/...</attval>
          and <attval>http://example.com/...</attval> represent
          application or context-dependent URIs <bibref ref="RFC2396"/>.</p>

	<p>All parts of this specification
	  are normative, with the exception of examples and sections explicitly
	  marked as "Non-Normative".</p>

      </div2>
      
      
     <div2 id="reltoxml">
      <head>Relation to Other Specifications</head>

	<p >A SOAP message is specified as an XML Information Set <bibref
	ref="XMLInfoSet"/>. While all SOAP message examples in this document
	are shown using XML 1.0 <bibref ref="XML"/> syntax, other
	representations MAY be used to transmit SOAP messages between nodes
	(see <specref ref="transpbindframew"/>).</p>
	  
	<p>Some of the <emph>information
	  items</emph> defined by this document are identified using
	  XML namespace <bibref ref="XMLNS"/> names (see <specref ref="soapenv" />).
	  In particular, this document
	  defines the following namespace names:</p>

      <ulist>

	<item>
          <p>The SOAP envelope has the namespace name <attval><loc
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xlink:type="simple"
          href="http://www.w3.org/2002/06/soap-envelope"
          xlink:show="replace" xlink:actuate="onRequest"
          >http://www.w3.org/2002/06/soap-envelope</loc></attval> (see
          <specref ref="soapenv"/>).</p>
	</item>

	<item>
          <p>The SOAP <el>Misunderstood</el> <emph>element information
          item</emph> has the namespace name <attval><loc
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xlink:type="simple"
          href="http://www.w3.org/2002/06/soap-faults"
          xlink:show="replace" xlink:actuate="onRequest"
          >http://www.w3.org/2002/06/soap-faults</loc></attval> (see <specref
          ref="mufault"/>).</p>
	</item>

	<item>
          <p>The SOAP <el>Upgrade</el> <emph>element information
          item</emph> has the namespace name <attval><loc
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xlink:type="simple"
          href="http://www.w3.org/2002/06/soap-upgrade"
          xlink:show="replace" xlink:actuate="onRequest"
          >http://www.w3.org/2002/06/soap-upgrade</loc></attval> (see <specref
          ref="vmfault"/>).</p>
	</item>

      </ulist>

      <p>Normative XML Schema <bibref ref="XMLSchemaP1"/>, <bibref
        ref="XMLSchemaP2"/> documents for these namespace names can be
        found by dereferencing the namespace names above.</p>
    
 	<p >SOAP does not require that XML Schema processing
 	(assessment or validation) be performed to establish the
 	correctness or 'schema implied' values of element and attribute
 	information items defined by this specification. The values
 	associated with element and attribute information items defined in
 	this specification MUST be carried explicitly in the transmitted
 	SOAP message except where stated otherwise (see <specref
 	ref="soapenv"/>).</p>
 
    <p>SOAP <emph>attribute
      information items</emph> have types described by
      XML Schema: Datatypes <bibref ref="XMLSchemaP2"/>. Unless
      otherwise stated, all lexical forms are supported for each such
      attribute, and lexical forms representing the same value in the
      XML Schema value space are considered equivalent for purposes of
      SOAP processing, e.g. the boolean lexical forms
      <attval>1</attval> and <attval>true</attval> are
      interchangeable. For brevity, text in this specification refers
      only to one lexical form for each value, e.g. &quot;if the value
      of the <att>mustUnderstand</att> <emph>attribute information
      item</emph> is 'true'&quot;.</p>

 	<p>Specifications for the processing of application-defined
 	  data carried in a SOAP message but not defined by this
 	  specification MAY call for additional
 	  validation of the SOAP message in conjunction with
 	  application-level processing. In such cases, the choice of
 	  schema language and/or validation technology is at the
 	  discretion of the application.</p>

	<p>SOAP uses XML Base <bibref ref="XMLBase"/> for determining a
	  base URI for relative URI references used as values in
	  <emph>information items</emph> defined by this specification
	  (see <specref ref="useofuris"/>).</p>
	  
	<p >The media type "application/soap+xml" (IETF
	registration pending <bibref ref="soap-media-type"/>) SHOULD be used
	for XML 1.0 serializations of the SOAP message infoset.</p>
      
    <div3 id="processingreq">
      <head>Processing Requirements</head>
      
      <p>The ability to use SOAP in a particular environment will vary
      depending on the actual constraints, choice of tools, processing model,
      or nature of the messages being exchanged. SOAP has been
      designed to have a relatively small number of dependencies on
      other XML specifications, none of which are perceived as having
      prohibitive processing requirements. Also, limiting use of SOAP
      to small messages instead of arbitrarily-sized messages and
      supporting only a few specific message types instead of
      implementing generalized processing could significantly lower
      processing requirements.</p>
    </div3>
      
    <div3 id="robustnessprinc">
      <head>Robustness Principle</head>

      <p>In some cases, the use of XML technologies allows the
      flexibility for expressing semantically equivalent
      statements in a variety of different ways. In order to obtain robust and
      interoperable implementations it is essential that SOAP implementations
      take into account the Robustness Principle as expressed by
      RFC 1123 <bibref ref="RFC1123"/> and RFC 793 <bibref ref="RFC793"/>: "Be
      liberal in what you accept, and conservative in what you send".</p>

      <p>The robustness principle is applied in several instances within
      this specification. For example, section <specref ref="soaprole"/>
      specifies that
      senders SHOULD NOT send but receiver's MUST accept certain values
      of the role attribute.</p>
      
    </div3>
  </div2>
    
      <div2 id="firstexample">
	<head>Example SOAP Message</head>

        <p>The following example shows a sample notification message
          expressed in SOAP. The message contains two pieces of
          application-defined data not defined by this specification:
          a SOAP header block with a local name of <el>alertcontrol</el>
          and a body element with a local name of <el>alert</el>. In
          general, SOAP header blocks contain information which might be of
          use to intermediaries as well as the ultimate destination of
          the message. In this example an intermediary might prioritize
          the delivery of the message based on the priority and expiration
          information in the SOAP header block. The body contains the
          actual message payload, in this case the alert message.</p>

            <example>
	      <head>SOAP message containing a header block and a body</head>
              <eg xml:space="preserve">&lt;env:Envelope xmlns:env=&quot;http://www.w3.org/2002/06/soap-envelope&quot;&gt;
 &lt;env:Header&gt;
  &lt;n:alertcontrol xmlns:n=&quot;http://example.org/alertcontrol&quot;&gt;
   &lt;n:priority&gt;1&lt;/n:priority&gt;
   &lt;n:expires&gt;2001-06-22T14:00:00-05:00&lt;/n:expires&gt;
  &lt;/n:alertcontrol&gt;
 &lt;/env:Header&gt;
 &lt;env:Body&gt;
  &lt;m:alert xmlns:m=&quot;http://example.org/alert&quot;&gt;
   &lt;m:msg&gt;Pick up Mary at school at 2pm&lt;/m:msg&gt;
  &lt;/m:alert&gt;
 &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg></example>

      </div2>

      <div2 id="terminology">
	<head>SOAP Terminology</head>

	<p>This section describes the terms and concepts introduced in
	Part 1 of the SOAP specification (this document).</p>

	<div3 id="concepts">
	  <head>Protocol Concepts</head>
	  <glist>

	    <gitem>
	      <label>SOAP</label> <def><p>The formal set of
	      conventions governing the format and processing rules of
	      a SOAP message. These conventions include the interactions among
	      SOAP nodes generating and accepting SOAP messages for
	      the purpose of exchanging information along a SOAP
	      message path.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP node</label> <def><p>The embodiment of
	      the processing logic necessary to transmit, receive,
	      process and/or relay a SOAP message, according
	      to the set of conventions defined by this recommendation.
	      A SOAP node is responsible for
	      enforcing the rules that govern the exchange of SOAP
	      messages (see <specref ref="msgexchngmdl"/>). It accesses the services
	      provided by the underlying protocols through one or more SOAP
	      bindings.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP role</label> <def><p>A SOAP node's expected function in
	      processing a message. A SOAP node can act in multiple roles.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP binding</label> <def><p>The formal set of
	      rules for carrying a SOAP message within or on top of
	      another protocol (underlying protocol) for the purpose
	      of exchange (see <specref ref="transpbindframew"/>). Examples of SOAP bindings include carrying
	      a SOAP message within an HTTP entity-body, or over a
	      TCP stream.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP feature</label>
	      <def>
		<p>An abstract piece of functionality typically
		  associated with the exchange of messages between
		  communicating SOAP nodes (see <specref
		  ref="extensibility"/>). Examples of features
		  include "reliability", "security", "correlation",
		  "routing", and the concept of message exchange
		  patterns.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP message exchange pattern (MEP)</label>
	      <def>
		<p>A template for the exchange of SOAP messages
		between SOAP nodes enabled by one or more underlying
		SOAP protocol bindings (see <specref
		ref="transpbindframew"/>). A SOAP
		MEP is an example of a SOAP feature (see <specref
		ref="soapmep"/>).</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP application</label>
	      <def>
		<p>A software entity that produces, consumes or
		  otherwise acts upon SOAP messages in a manner
		  conforming to the SOAP processing model (see
		  <specref ref="msgexchngmdl"/>).</p>
	      </def>
	    </gitem>

	  </glist>

	</div3>

	<div3 id="encapsulation">
	  <head>Data Encapsulation Concepts</head>
	  
	  <glist>

	    <gitem>
	      <label>SOAP message</label> <def><p>
	      The basic unit of communication between SOAP
	      nodes.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP envelope</label> <def><p>The outermost
	      <emph>element information item</emph> of a SOAP message.</p></def>
	    </gitem>

	    <gitem>
	      <label>SOAP header</label> <def><p>A collection of zero
	      or more SOAP header blocks each of which might be targeted
              at any SOAP
	      receiver within the SOAP message path.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP header block (or just header block)</label> <def><p>An
	      <emph>element information item</emph> used to delimit
	      data that logically constitutes a single computational
	      unit within the SOAP header. The type of a SOAP header block is
	      identified by the fully qualified name of the header block
	      <emph>element information item</emph>.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP body</label> <def><p>A collection of zero or
	      more <emph>element information items</emph> targeted at an
	      ultimate SOAP receiver in the SOAP message path (see
	      <specref ref="soapbody"/>).</p> 
	      </def>
	    </gitem>

	    <gitem>
              <label>SOAP fault</label> <def><p>A SOAP
              <emph>element information item</emph>
	      which contains fault information generated by a SOAP
	      node.</p>
	      </def>
	    </gitem>

	  </glist>

	</div3>

	<div3 id="senderreceiverconcepts">
	  <head>Message Sender and Receiver Concepts</head>

	  <glist>

	    <gitem>
	      <label>SOAP sender</label> <def><p>A
	      SOAP node that transmits a SOAP message.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP receiver</label> <def><p>A
	      SOAP node that accepts a SOAP message.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP message path</label> <def><p>The set of SOAP
	      nodes through which a single SOAP
	      message passes. This includes the initial SOAP sender,
	      zero or more SOAP intermediaries, and an ultimate SOAP
	      receiver.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>Initial SOAP sender</label> <def><p>The SOAP
	      sender that originates a SOAP message at the starting
	      point of a SOAP message path.</p>
	      </def>
	    </gitem>

	    <gitem>
	      <label>SOAP intermediary</label> <def><p>A SOAP intermediary
	      is both a SOAP receiver and a SOAP sender and is targetable
	      from within a SOAP message. It processes the SOAP header
	      blocks targetted at it and acts to forward a SOAP message
	      towards an ultimate SOAP receiver.</p></def>
	    </gitem>

	    <gitem>
	      <label>Ultimate SOAP receiver</label> <def><p> The SOAP
              receiver that is a final destination of a SOAP message. It is responsible for
              processing the contents of the SOAP body and any SOAP
              header blocks targeted at it. In some circumstances, a
              SOAP message might not reach an ultimate SOAP receiver, for
              example because of a problem at a
              SOAP intermediary. An
              ultimate SOAP receiver cannot also be a SOAP
              intermediary for the same SOAP message (see <specref
              ref="msgexchngmdl"/>).</p>
	      </def>
	    </gitem>

	  </glist>

	</div3>

      </div2>
    </div1>
    
    <div1 id="msgexchngmdl">
      <head>SOAP Processing Model</head>

      <p >SOAP provides a distributed processing model that assumes a
      SOAP message originates at an initial SOAP sender and is sent to
      an ultimate SOAP receiver via zero or more SOAP intermediaries.
      Note that the SOAP distributed processing model can support many
      MEPs including but not limited to one-way messages,
      request/response interactions, and peer-to-peer conversations (see
      <specref ref="soapmep"/> for a description of the relationship
      between SOAP message exchange patterns and the SOAP extensibility
      model).</p>

      <p >This section defines the SOAP distributed processing
	model. Section <specref ref="transpbindframew"/> defines a
	framework for describing the rules for how SOAP messages can
	be exchanged over a variety of underlying protocols. Section
	<specref ref="extensibility"/> describes how SOAP can be
	extended and how SOAP extensions might interact with the SOAP
	processing model and the SOAP protocol binding framework.</p>

      <div2 id="soapnodes">
	<head>SOAP Nodes</head>

        <p>A SOAP node can be the initial SOAP sender, an ultimate
          SOAP receiver, or a SOAP intermediary. An intermediary is
          both a SOAP sender and a SOAP receiver.</p>

        <p>A SOAP node receiving a SOAP message MUST perform
          processing according to the SOAP processing model as
        described in this section and in
          the remainder of this specification.</p>

		  <p>A SOAP node MUST be identified by a URI.</p>
        
      </div2>

      <div2 id="soaproles">
	<head>SOAP Roles and SOAP Nodes</head>

        <p>In processing a SOAP message, a SOAP node is said to act in
          one or more SOAP roles, each of which is
          identified by a URI known as the SOAP role name. The roles
          assumed by a node MUST be
          invariant during the processing of an individual SOAP
          message. This specification deals only with the
          processing of individual SOAP messages. No statement is made
          regarding the possibility that a given SOAP node 
          might or might not act in varying roles when processing more
          than one SOAP message.</p>

        <p>This specification defines the following SOAP roles:</p>

        <ulist>

          <item>
            <p><attval>http://www.w3.org/2002/06/soap-envelope/role/next</attval>.
            Each SOAP intermediary and the ultimate SOAP receiver MUST act in this role and MAY additionally assume zero or more other SOAP roles.</p>
          </item>

          <item>
            <p><attval>http://www.w3.org/2002/06/soap-envelope/role/none</attval>.
            SOAP nodes MUST NOT act in this role.</p>
          </item>

          <item>
            <p><attval>http://www.w3.org/2002/06/soap-envelope/role/ultimateReceiver</attval>.
            To establish itself as an ultimate SOAP receiver a SOAP node MUST act in this role. SOAP intermediaries MUST NOT act in this role.</p>
          </item>

        </ulist>

        <p>In addition to those described above, other roles MAY
        be defined as necessary to meet the needs of SOAP applications.</p>
        
        <p>While the purpose of a SOAP role name is to identify a
          SOAP node or nodes, there are no routing or message exchange
          semantics associated with the SOAP role name. For example,
          SOAP roles MAY be named with a URI useable to route SOAP
          messages to an appropriate SOAP node. Conversely, it is
          also appropriate to use SOAP roles with names that are
          related more indirectly to message routing
        (e.g. <attval>http://example.org/banking/anyAccountMgr</attval>) or which
          are unrelated to routing (e.g. a URI meant to identify "all
          cache management software"; such a header might be used, for
          example, to carry an indication to any concerned software
          that the containing SOAP message is idempotent, and can
          safely be cached and replayed).</p>

        <p>With the exception of the three SOAP roles defined above,
        this specification does not prescribe the criteria by which
        a given node determines the (possibly empty) set of roles in
        which it acts on a given message. For example,
        implementations can base this determination on factors
        including, but not limited to: hard coded choices in the
        implementation, information provided by the underlying protocol
        binding (e.g. the URI to which the message was physically
        delivered), or configuration information provided by users during
        system installation.
      </p>

      </div2>

      <div2 id="targettingblocks">
	<head>Targeting SOAP Header Blocks</head>

        <p >A SOAP header block MAY carry a <att>role</att>
        <emph>attribute information item</emph> (see <specref
        ref="soaprole"/>) that is used to target the header block at
        SOAP nodes operating in the specified role. This specification refers to the value
        of the SOAP <att>role</att> attribute as the SOAP role for the
        corresponding SOAP header block.</p>

        <p>A SOAP header block is said to be targeted at a SOAP node if the
          SOAP <att>role</att> for the header block 
          is the name of a role in which the SOAP node operates.</p>

        <p>SOAP header blocks targeted at the special role
        <attval>http://www.w3.org/2002/06/soap-envelope/role/none</attval>
        are carried with the message to the ultimate SOAP receiver(s), but are never
        formally processed. Such SOAP header blocks MAY carry data that is required for
        processing of other header blocks.</p>

      </div2>

      <div2 id="muprocessing">
	<head>Understanding SOAP Headers</head>

        <p >It is likely that specifications for a wide variety of header
          functions will be developed over time
          (see <specref ref="extensibility"/>), and that some SOAP
          nodes might include the software necessary to implement one or
          more such extensions. A SOAP header block is said to be
          understood by a SOAP node if the software at that SOAP node
          has been written to fully conform to and implement the
          semantics conveyed by the combination of local name and
          namespace name of the outer-most <emph>element information
          item</emph> of that header block.</p>

          <p>SOAP header blocks MAY carry
          <att>mustUnderstand</att> <emph>attribute
          information items</emph> (see
          <specref ref="soapmu"/>). When the value of such an
          <emph>attribute information item</emph> is 
          <attval>true</attval>,
          the SOAP block is said to be mandatory.</p>
            
          <p>Mandatory SOAP header blocks are presumed to somehow modify
          the semantics of other headers or body elements. Therefore,
          for every mandatory SOAP header block targeted to a node, that
          node MUST either process the header block or not process the
          SOAP message at all, and instead generate a fault (see
          <specref ref="procsoapmsgs"/> and <specref ref="soapfault"/>).
          Tagging SOAP header blocks as mandatory thus assures that such
          modifications will not be silently (and, presumably,
          erroneously) ignored by a SOAP node to which the header block
          is targeted.</p>
           
          <p >The <att>mustUnderstand</att> <emph>attribute information
          item</emph> is not intended as a mechanism for detecting
          errors in routing, misidentification of nodes, failure of a
          node to serve in its intended role(s), etc. Any of these conditions
          can result in a failure to even attempt processing of a
          given SOAP header block from a SOAP envelope. This
          specification therefore does not require any fault to be
          generated based on the presence or value of
          the <att>mustUnderstand</att> <emph>attribute information item</emph>
          on a SOAP header block not targeted at the current
          processing node. In
          particular, it is not an error for an ultimate SOAP
          receiver to receive a message containing a mandatory header
          block that is targeted at a role other than the ones assumed
          by the ultimate SOAP receiver. This is the case, for example,
          when a header block has survived erronously due to a routing or
          targeting error at a preceeding intermediairy.</p>

      </div2>
      
      <div2 id="structinterpbodies">
        <head>Structure and Interpretation of SOAP Bodies</head>
        
        <p>An ultimate SOAP receiver MUST correctly process the immediate
        children of the SOAP body (see <specref ref="soapbody"/>). However, with the
        exception of SOAP faults (see <specref ref="soapfault"/>), Part 1 of
        this specification (this document) mandates no particular
        structure or interpretation of these elements, and provides no
        standard means for specifying the processing to be done.</p>

      </div2>

      <div2 id="procsoapmsgs">
	<head>Processing SOAP Messages</head>

        <p>This section sets out the rules by which SOAP messages are
         processed. Unless otherwise stated, processing MUST be
         semantically equivalent to performing the following steps
         separately, and in the order given. Note however that nothing
         in this specification prevents the use of
         optimistic concurrency, roll back, or other techniques that
         might provide increased flexibility in processing order
         provided all generated SOAP messages, SOAP faults and application-level
         side effects are equivalent to those that would be obtained
         by direct implementation of the following rules in the order
         shown below.</p>
         
        <olist>
	  <item>
            <p>Determine the set of roles in which the node is to act.
            The contents of the SOAP envelope, including any header blocks and
            the body, MAY be inspected in making such determination.</p>
	  </item>
          <item>
            <p>Identify all header blocks targeted at the node that
            are mandatory.</p>
          </item>
	  <item>
             <p >If one or more of the header blocks identified in the
             preceding step are not understood by the node then
             generate a single SOAP fault with the <el>Value</el> of
             <el>Code</el> set to <attval>env:MustUnderstand</attval>
              (see <specref ref="mufault"/>). If
             such a fault is generated, any further processing MUST
             NOT be done. Faults relating to the contents of the body
             MUST NOT be generated in this step.</p>
	  </item>
	  <item>
            <p >Process all header blocks targeted at the node and, in
            the case of an ultimate SOAP receiver, the SOAP body. A SOAP
            node MUST process all SOAP header blocks targeted at it. A
            SOAP node MAY choose to ignore the application level
            processing specified by non-mandatory SOAP header blocks
            targeted at it. </p>
          </item>
          <item>
            <p>In the case of a SOAP intermediary, and where the SOAP
	      message exchange pattern and results of processing
	      (e.g. no fault generated) require that the SOAP message
	      be sent further along the SOAP message path, relay the
	      message as described in section <specref
	      ref="relaysoapmsg"/>.</p>
          </item>
        </olist>

             <p>In all cases
               where a SOAP header block is processed, the SOAP node MUST
               understand the SOAP header block and MUST do such processing
               in a manner fully conformant with the specification for
               that header block. An ultimate SOAP receiver MUST process the
               SOAP body, in a manner consistent with
               <specref ref="structinterpbodies"/>.</p>
               

	       <p>Failure is indicated by the generation of a fault
               (see <specref ref="soapfault"/>). SOAP message
               processing MAY result in the generation of at-most one
               fault. Header-related faults other than those
               related to understanding header blocks (see <specref
               ref="muprocessing"/>) MUST conform to the specification for the
               corresponding SOAP header block.</p>

              <p>SOAP nodes MAY make reference to any information in the
               SOAP envelope when processing a SOAP body or SOAP header
               block. For example,
               a caching function can cache the entire SOAP message,
               if desired.</p>
               
               <p >The processing of one or more SOAP header blocks MAY
               control or determine the order of processing for other
               SOAP header blocks and/or the SOAP body. For example, one
               could create a SOAP header block to force processing of
               other SOAP header blocks in lexical order. In the absence
               of such a controlling SOAP header block, the order of
               header and body processing is at the discretion of the
               SOAP node. Header blocks MAY be processed in arbitrary
               order. Header block processing MAY precede, MAY be
               interleaved with, or MAY follow processing of the body.
               For example, processing of a "begin transaction" header
               block would typically precede body processing,  a
               "logging" function might run concurrently with body
               processing and a "commit transaction" header might be
               honored following completion of all other work.</p>

        
          
        <note> <p >The above rules apply to processing at a single
        node. SOAP extensions can be designed to ensure that
        headers are processed in an appropriate
        order, as the message moves along the message path towards the
        ultimate SOAP receiver. Specifically, such extensions might
        specify that a fault with a <el>Value</el> of <el>Code</el>
        set to <attval>env:Sender</attval> is
        generated if some SOAP header blocks have inadvertently
        survived past some intended point in the message path. Such
        extensions might depend on the presence or value of the
        <att>mustUnderstand</att> <emph>attribute information
        item</emph> in the surviving headers when determining whether
        an error has occurred.</p> </note>

      </div2>

      <div2 id='relaysoapmsg'>
	<head>Relaying SOAP Messages</head>

	<p>As mentioned earlier in this section, it is assumed that a SOAP
	  message originates at an initial SOAP sender and is sent to
	  an ultimate SOAP receiver via zero or more SOAP
	  intermediaries. While SOAP does not itself define any
	  routing or forwarding semantics, it is anticipated that such
	  functionality can be described as one or more features and
	  then expressed as SOAP extensions or as part of the underlying
	  protocol binding (see <specref ref="extensibility"/>
	  and <specref ref="transpbindframew"/>). The purpose of this
	  section is to describe how message forwarding interacts with
	  the SOAP distributed processing model.</p>
	  
      <p>SOAP defines two different types of intermediaries:
        forwarding intermediaries and active intermediaries. These
        two types of intermediary are described below.</p>

	<div3 id='forwardinter'>
	  <head>Forwarding Intermediaries</head>
	  
	  <p>The semantics of one or more SOAP header blocks in a SOAP
	    message, or the SOAP MEP used MAY
	    require that the SOAP message be forwarded to another SOAP
	    node on behalf of the initiator of the inbound SOAP
	    message. In this case, the processing SOAP node acts in
	    the role of a SOAP forwarding intermediary.</p>
	    
	  <p>Forwarding intermediaries MUST process the message according
	    to the SOAP processing model defined in
	    <specref ref="procsoapmsgs"/>. They MUST also remove from the message
	    all SOAP header blocks targeted at themselves, prior to forwarding,
	    regardless of whether these header blocks were processed or ignored.</p>

      <p >In addition, forwarding intermediaries MUST also obey the
        specification for the SOAP forwarding feature being used.
        The specification for such a feature MUST describe the required semantics, including
        the rules describing how the forwarded message is
        constructed. Such rules MAY describe placement of inserted
        or reinserted SOAP header blocks. Inserted SOAP header blocks might be
        indistinguishable from one or more of the header blocks
        removed above. Re-inserting processed SOAP header blocks in this manner effectively leaves them in place, but
        emphasizes the need to process them at each SOAP node
        along the SOAP message path.</p>
	</div3>

	<div3 id='activeinter'>
	  <head>Active Intermediaries</head>

	  <p >In addition to the processing performed by forwarding
	    intermediaries, active intermediaries undertake additional
	    processing that can modify the outbound message in ways
	    <emph>not</emph> described in the inbound message. That is,
	    they can undertake processing not described by SOAP header
	    blocks in the incoming message. The potential set of
	    services provided by an active intermediary includes, but
	    is not limited to: security services, annotation services, and
	    content manipulation services.</p>

	  <p >The results of such active processing
	  could impact the interpretation of messages by downstream nodes. For
	  example, as part of generating an outbound message, an active
	  intermediary might have removed and encrypted some or all of the
	  SOAP header blocks found in the inbound message. It is strongly
	  recommended that features provided by active intermediaries be
	  described in a manner that allows such modifications to be
	  detected by affected SOAP nodes in the message path.</p>
	  
	  <p>One mechanism by which an active intermediary can describe the
	  modifications performed on a message is by inserting header blocks
	  into the outbound SOAP message. These header blocks can inform
	  downstream SOAP nodes acting in roles whose correct operation
	  depends on receiving such notification. In this case, the
	  semantics of such inserted header blocks should also call for
	  either the same or other header blocks to be (re)inserted at
	  subsequent intermediaries as necessary to ensure that the message
	  can be safely processed by nodes yet further downstream. For
	  example, if a message with header blocks removed for encryption
	  passes through a second intermediary (without the original header
	  blocks being decrypted and reconstructed), then indication that
	  the encryption has occurred must be retained in the second relayed
	  message.</p>

	</div3>
      </div2>

      <div2 id="envvermodel">
	<head>SOAP Versioning Model</head>

    <p>The version of a SOAP message is identified by the qualified name
    of the child <emph>element information item</emph> of the <emph>document
    information item</emph>. A SOAP Version 1.2 message has a
    child <emph>element information item</emph> of the <emph>document
    information item</emph> with a local name of
    <el>Envelope</el> and a namespace name of
    <attval>http://www.w3.org/2002/06/soap-envelope</attval> (see
    <specref ref="soapenvelope"/>).</p>
    
    <p>A SOAP node determines whether it
    supports the version of a SOAP message on a per message basis. In
    this context "support" means understanding the semantics of that
    version of a SOAP envelope. The versioning model is directed only
    at the <el>Envelope</el> <emph>element information item</emph>. It
    does NOT address versioning of SOAP header blocks, encodings, protocol bindings,
    or anything else.</p>

	<p>A SOAP node MAY support multiple envelope versions.
	  However, when processing a message, a SOAP node MUST use the
	  semantics defined by the version of that message.</p>

	<p  >If a SOAP node receives a message whose version is not supported
	it MUST generate a fault (see <specref ref="soapfault"/>) with a
	<el>Value</el> of <el>Code</el> set to
	<attval>env:VersionMismatch</attval>. Any other malformation of the
	message construct MUST result in the generation of a fault with a
	<el>Value</el> of <el>Code</el> set to <attval>env:Sender</attval>.</p>

	<p>Appendix <specref ref="version"/> defines a mechanism for
	  transitioning from SOAP/1.1 to SOAP Version 1.2 using the
	  <el>Upgrade</el> <emph>element information item</emph> (see
	  <specref ref="vmfault"/>).</p>
      </div2>
    </div1>

    <div1 id="extensibility">
      <head>SOAP Extensibility Model</head>
          
      <p >SOAP provides a simple messaging framework whose
      core functionality is concerned with providing extensibility. The
      extensibility mechanisms described below can be used to add
      capabilities found in richer messaging environments.</p>	
	
	<div2 id="soapfeature"><head>SOAP Features</head>
	
	<p >For the purpose of
	this specification, the term "feature" is used to identify an
	abstract piece of functionality typically associated with the
	exchange of messages between communicating SOAP
	nodes. Although SOAP poses no constraints on the potential
	scope of such features, example features include "reliability",
	"security", "correlation", and "routing". In addition, the
	communication might require a variety of
	message exchange patterns (MEPs) such as one-way messages,
	request/response interactions, and peer-to-peer
	conversations. MEPs are considered to be a type of feature,
	and unless otherwise stated, references in this specification to the term "feature"
	apply also to MEPs.</p>

      <p>The SOAP extensibility model provides two mechanisms through
	which features can be expressed: the SOAP Processing Model and
	the SOAP Protocol Binding Framework (see <specref
	ref="msgexchngmdl"/> and <specref
	ref="transpbindframew"/>). The former describes the behavior
	of a single SOAP node with respect to the processing of an
	individual message. The latter mediates the act of sending and
	receiving SOAP messages by a SOAP node via an underlying
	protocol.</p>

      <p>The SOAP Processing Model enables SOAP nodes that include the
	mechanisms necessary to implement one or more features to
	express such features within the SOAP envelope as header
	blocks (see <specref ref="muprocessing"/>). Such header blocks
	can be intended for any SOAP node or nodes along a SOAP
	message path (see <specref ref="targettingblocks"/>).
	A feature expressed as SOAP headers is known as a SOAP module,
	and each module is specified according to the rules
	in <specref ref="soapmodules"/>.</p>

      <p>In contrast, a SOAP protocol binding operates between two
	adjacent SOAP nodes along a SOAP message path. There is no
	requirement that the same underlying protocol is used for all
	hops along a SOAP message path. In some cases, underlying
	protocols are equipped, either directly or through extension,
	with mechanisms for providing certain features. The SOAP
	Protocol Binding Framework provides a scheme for describing
	these features and how they relate to SOAP nodes through a
	binding specification (see <specref
	ref="transpbindframew"/>).</p>
      
      <p >Certain features might require end-to-end as opposed
      to hop-to-hop processing semantics. While the SOAP Protocol
      Binding Framework provides for the possibility that such features
      could be expressed outside the SOAP envelope, it does not define a
      specific architecture for the processing or error handling of
      these externally expressed features by a SOAP intermediary. A
      binding specification that expresses such features external to the
      SOAP envelope needs to define its own processing rules to which a
      SOAP node is expected to conform (for example, describing what
      information is passed along with the SOAP message as it leaves the
      intermediary). It is recommended that, where practical, end-to-end
      features be expressed as SOAP header blocks, so that the rules
      defined by the SOAP Processing Model can be employed.</p>


    <div3 id="featurereq"><head>Requirements on Features</head>
      <p>The specification of a feature MUST include the
	following:</p>
      
      <olist>
	<item>
	  <p>The information (state) required at each node
	    to implement the feature.</p>
	</item>
           
	<item>
	  <p>The processing required at each node in order to fulfill the
	  obligations of the feature including any handling of communication
	  failures that might occur in the underlying protocol (see also
	  <specref ref="bindfw"/>).</p>
	</item>
           
	<item>
	  <p>The information to be transmitted from node to node.</p>
	</item>
	  
	<item>
	  <p>In the case of MEPs:</p>
	  
	      <olist>
	       <item><p>Any requirements to generate
	    additional messages (such as responses to requests in a
	    request/response MEP).</p></item>
	       <item><p>Rules for the delivery or other
	    disposition of SOAP faults generated during the operation
	    of the MEP.</p></item>
	      </olist>
	</item>
      </olist>
     
     <p>The request-response MEP specified in SOAP 1.2 Part 2 <bibref
     ref="SOAP-PART2"/> illustrates the specifiction of an MEP feature.</p>

	</div3>
	
	
	</div2>

	
	<div2 id="soapmodules">
	  <head>SOAP Modules</head>

      <p>A SOAP module is a feature which is expressed as SOAP headers.</p>

      <p>A module specification follows the following rules. It:</p>
      
      <olist>
         <item><p>MUST identify itself with a URI. This enables the
         module to be unambiguously referenced in description languages
         or during negotiation.</p></item>

         <item><p>MUST clearly and completely specify the content
         and semantics of the header blocks used to implement
         the behavior in question, including if appropriate
         any modifications to the SOAP Processing model.</p></item>

         <item><p>MAY utilize the property conventions defined
         in Part 2 <bibref ref="SOAP-PART2"/>,
         section <xspecref href="&dated-part2;#soapfeatspec">A Convention for
         Describing Features and Bindings</xspecref>,
         in describing the functionality
         that the module provides. If these conventions
         are followed, the module specification MUST clearly describe
         the relationship between the abstract properties
         and their representations in the SOAP envelope. Note that
         it is possible to write a feature specification purely
         in terms of abstract properties, and then write a separate
         module specification which implements that feature,
         mapping the properties defined in the feature specification
         to SOAP header blocks in the module.</p></item>

         <item><p >MUST clearly specify any known interactions with or
         changes to the interpretation of the SOAP body. Furthermore, it
         MUST clearly specify any known interactions with or changes to
         the interpretation of other SOAP features (whether or not those
         features are themselves modules). For example, we can imagine a
         module which encrypts the body and inserts a header containing
         a checksum and an indication of the encryption mechanism used.
         The specification for such a module would indicate that the
         decryption algorithm on the receiving side is to be run
         <emph>prior</emph> to any other modules which rely on the
         contents of the body.</p></item>
         
      </olist>
      
	</div2>
	
	
	
	<div2 id="soapmep">
	  <head>SOAP Message Exchange Patterns (MEPs)</head>

      <p >An MEP is a template that establishes a pattern for
      the exchange of messages between SOAP nodes.  An MEP MAY be
      supported by one or more underlying protocol binding
      instances.</p>

	  <p >This section is a logical description of the operation
		of a MEP. It is not intended to describe a real implementation
		or to imply that a real implementation needs to be similarly
		structured.</p>

      <p>In general the definition of a message exchange pattern:</p>
        
        <ulist>
           <item><p>Is named by a URI.</p></item>
      
           <item><p>Describes the life cycle of a message
           exchange conforming to the pattern.</p></item>
           
           <item><p>Describes the temporal/causal relationships of 
           multiple messages exchanged in conformance with the pattern.</p></item>
           
           <item><p>Describes the normal and abnormal termination of a
           message exchange conforming to the pattern.</p></item>
           
        </ulist>

       <p>Underlying protocol binding specifications can declare their support
       for one or more named MEPs.</p>

    </div2>
    
    </div1>

    <div1 id="transpbindframew">
      <head>SOAP Protocol Binding Framework</head>

      <p >SOAP enables exchange of SOAP messages using a
      variety of underlying protocols. The formal set of rules for
      carrying a SOAP message within or on top of another protocol
      (underlying protocol) for the purpose of exchange is called a
      binding. The SOAP Protocol Binding Framework provides general
      rules for the specification of protocol bindings; the framework
      also describes the relationship between bindings and SOAP nodes
      that implement those bindings. The HTTP binding in SOAP Part 2
      <bibref ref="SOAP-PART2"/> illustrates the specification of a
      binding. Additional bindings can be created by specifications that
      conform to the binding framework introduced in this chapter.</p>

      <p>A SOAP binding specification:</p>
      <ulist>
        <item><p>Declares the features provided by
        a binding.</p></item>
        
        <item><p >Describes how the services of the underlying protocol
        are used to transmit SOAP envelope Infosets.</p></item>

        <item><p>Describes how the services of the underlying
        protocol are used to honor the contract formed by the
        features supported by that binding.</p></item>
        
        <item><p>Describes the handling of all potential failures that can be
        anticipated within the binding.</p></item>
        
        <item><p>Defines the requirements for building a conformant
        implementation of the binding being specified.</p></item>
      </ulist>

      <p>A binding does not provide a separate processing model and
	does not constitute a SOAP node by itself. Rather a SOAP
	binding is an integral part of a SOAP node (see <specref
	ref="msgexchngmdl"/>). </p>

  <div2 id="bindfwgoals"><head>Goals of the Binding Framework</head>
      
      <p>The goals of the binding framework are:</p>

      <olist>
         <item><p>To set out the requirements and concepts that are
         common to all binding specifications.</p></item>
         
         <item><p>To facilitate homogeneous description in situations where multiple bindings
         support common features, promoting reuse across bindings.</p></item>
         
         <item><p>To facilitate consistency in the specification of optional features.</p></item>
         
      </olist>
      
      <p>Two or more bindings can offer a given optional feature,
      such as reliable delivery, using different means.
      One binding might exploit an underlying
      protocol that directly facilitates the feature (e.g., the protocol
      is reliable), and the other binding might provide the necessary logic
      itself (e.g., reliability is achieved via logging and retransmission).
      In such cases, the feature can be made available
      to applications in a consistent manner, regardless of which
      binding is used.</p>

  </div2>
  
  <div2 id="bindfw"><head>Binding Framework</head>
  
      <p>The creation, transmission, and processing of a SOAP message,
      possibly through one or more intermediaries, is specified in
      terms of a distributed state machine. The state consists of
      information known to a SOAP node at a given point in time,
      including but not limited to the contents of messages being
      assembled for transmission or received for processing. The state
      at each node can be updated either by local processing, or by
      information received from an adjacent node.</p>
      
      <p>Section <specref ref="msgexchngmdl"/> of this specification
      describes the processing that is common to all SOAP nodes when
      receiving a message. The purpose of a binding specification
      is to augment those core SOAP rules with additional
      processing that is particular to the binding, and to specify
      the manner in which the underlying protocol is used to transmit
      information between adjacent nodes in the message path.</p>
      
      <p>The distributed state machine that manages the
      transmission of a given SOAP message through its message path
      is the combination of the core SOAP processing
      (see <specref ref="msgexchngmdl"/>) operating at each node, in
      conjunction with the binding specifications connecting each pair
      of nodes. A binding specification MUST enable one or more 
      MEP.</p>
      
      <p>In cases where multiple features are supported by a binding
      specification the specifications for those features MUST provide
      any information necessary for their successful use in combination;
      this binding framework does not provide any explicit mechanism
      for ensuring such compatibility of multiple features.</p>
      
      <p>The binding framework provides no fixed means of naming or
      typing the information comprising the state at a given node.
      Individual feature and binding specifications are free to adopt
      their own conventions for specifying state. Note, however, that
      consistency across bindings and features is likely to be
      enhanced in situations where multiple feature specifications
      adopt consistent conventions for representing state. For example,
      multiple features might benefit from a consistent specification
      for an authentication credential, a transaction ID, etc. The
      HTTP binding in SOAP Part 2 <bibref ref="SOAP-PART2"/>
      illustrates one such convention.</p>

      <p>As described in <specref ref="soapenv"/>, each SOAP message
      is modeled as an XML Infoset that consists of a <emph>document
      information
      item</emph> with exactly one child: the envelope <emph>element
      information item</emph>.
      Therefore, the minimum responsibility of a binding in transmitting
      a message is to specify the means by which the SOAP XML Infoset
      is transferred to and reconstituted by the binding at the
      receiving SOAP node and to specify the manner in which the
      transmission of the envelope is effected using the facilities
      of the underlying protocol.</p>

      <p>The binding framework does NOT
      require that every binding use the XML 1.0 <bibref ref="XML"/>
      serialization as
      the "on the wire" representation of the Infoset; compressed,
      encrypted, fragmented representations and so on can be used
      if appropriate. A binding, if using XML 1.0
      serialization of the infoset, MAY mandate that a particular
      character encoding or set of encodings be used.</p>

      <p >Bindings MAY provide for streaming when
      processing messages. That is, SOAP nodes MAY begin
      processing a received SOAP message as soon as the
      necessary information is available. SOAP processing
      is specified in terms of <el>Envelope</el> XML infosets (see
      <specref ref='soapenv' />). Although streaming
      SOAP receivers will acquire such Infosets incrementally,
      SOAP processing MUST yield results identical to
      those that would have been achieved if the entire
      SOAP envelope were available prior to the start of
      processing. For example, as provided in <specref
      ref='procsoapmsgs' />, identification of targeted
      header blocks, and checking of all <att>mustUnderstand</att>
      attributes is to be done before successful processing
      can proceed. Depending on the representation used
      for the Infoset, and the order in which it is
      transmitted, this rule might limit the degree to which
      streaming can be achieved.</p>
      
      <note><p>Section <specref ref="soapenv"/> provides that
      the XML Infoset of a SOAP message MUST NOT include a DTD.
      Accordingly, a binding that uses the XML 1.0 serialization MUST NOT
      transmit a DTD; a binding that accepts XML 1.0 serializations
      MUST fault in a binding specific manner if an XML 1.0
      serialization corresponding to a DTD for the SOAP message is
      received.</p></note>
      
      <p>Bindings MAY depend on state that is modeled as being outside
      of the SOAP XML Infoset (e.g. retry counts), and MAY transmit
      such information to adjacent nodes. For example, some bindings
      take a message delivery address (typically a URI) that is not
      within the envelope.</p>
      
  </div2>

  </div1>
    
    <div1 id="soapenv">
      <head>SOAP Message Construct</head>

      <p>A SOAP message is specified as an XML Infoset that consists of a
        <emph>document information item</emph> with exactly one member
        in its [children] property,
        which MUST be the SOAP <el>Envelope</el> <emph>element information
	  item</emph> (see <specref ref="soapenvelope"/>). This <emph>element
        information item</emph> is also the value of the [document
        element] property. The [notations] and [unparsed entities]
        properties are both empty. The [base URI],
        [character encoding scheme] and [version] properties can have
        any legal value. The [standalone] property either has a value
        of <attval>yes</attval> or has no value.</p>
      
      <p>The XML infoset of a SOAP message MUST NOT contain a
        <emph>document type declaration information item</emph>.</p>
      
      <p>A SOAP message SHOULD NOT contain <emph>processing
	  instruction information items</emph>. A SOAP receiver MUST
	ignore <emph>processing instruction information items</emph>
	in SOAP messages that it receives.</p>

	<p><emph>Element information items</emph> defined by this
	specification can have zero or more <emph>character information item</emph>
	children whose character code is amongst the whitespace characters
	as defined by <bibref ref='XML' />. Unless otherwise indicated, such <emph>character
	information items</emph> are considered insignificant. A SOAP
	receiver MUST ignore such insignificant <emph>character information
	items</emph>. A SOAP intermediary MAY ignore such insignificant <emph>character
	information items</emph> when forwarding (see <specref
	ref='relaysoapmsg' />) a message.</p>
	
    <div2 id="soapenvelope">
      <head>SOAP Envelope</head>

      <p>The <el>Envelope</el> <emph>element information item</emph> has:</p>

      <ulist>

	<item><p>A [local name] of <el>Envelope</el>.</p></item>

	<item><p>A [namespace name] of
	<attval>http://www.w3.org/2002/06/soap-envelope</attval>.
	</p></item>

	<item><p>Zero or more namespace qualified <emph>attribute
	information items</emph> amongst its [attributes] property.</p></item>

	<item><p>One or two <emph>element information item</emph>s in its
	[children] property in order as follows:</p>
	
	  <olist>

 	  <item><p>An optional <el>Header</el> <emph>element information
	  item</emph> (see <specref ref="soaphead"/>).</p></item>

	  <item><p>A mandatory <el>Body</el> <emph>element information
	  item</emph> (see <specref ref="soapbody"/>).</p></item>
          
      </olist>
      
    </item>
	
    </ulist>

        <div3 id="soapencattr">
          <head>SOAP encodingStyle Attribute</head>

         <p >The <att>encodingStyle</att> <emph>attribute
          information item</emph> indicates the
          encoding rules used to serialize parts of a SOAP message.</p>

          <p>The <att>encodingStyle</att> <emph>attribute information
          item</emph> has:</p>

          <ulist>

            <item><p>A [local name] of <att>encodingStyle</att>.</p></item>

            <item><p>A [namespace name] of
            <attval>http://www.w3.org/2002/06/soap-envelope</attval>.</p></item>

          </ulist>

          <p >The <att>encodingStyle</att> <emph>attribute information
          item</emph> MAY only appear on:</p>
          
          <olist>
          
            <item><p >A SOAP header block (see <specref
            ref="soapheadblock"/>).</p></item>

            <item><p >A child <emph>element information item</emph> of
            the SOAP <el>Body</el> <emph>element information item</emph> (see <specref
            ref="soapbodyel"/>).</p></item>
            
            <item><p >A child <emph>element information item</emph> of
            the SOAP <el>Detail</el> <emph>element information item</emph> (see <specref
            ref="faultdetailentry"/>).</p></item>
            
            <item><p >Any descendent of 1, 2, and 3 above.</p></item>

          </olist>
          
          <p>The
          scope of the <att>encodingStyle</att> <emph>attribute information
          item</emph> is that of its owner <emph>element information
          item</emph> and that <emph>element information item's</emph>
          descendants, unless a descendant itself carries such an
          <emph>attribute information item</emph>. If no
          <att>encodingStyle</att> <emph>attribute information
          item</emph> is in scope for a particular <emph>element
          information item</emph> or the value of such an
          <emph>attribute information item</emph> is the zero-length URI
          ("") then no claims are made regarding the encoding style of
          that <emph>element information item</emph> and its
          descendants.</p>

          <p>The <att>encodingStyle</att> <emph>attribute information
          item</emph> is of type <emph>anyURI</emph>
          in the namespace named
          <attval>http://www.w3.org/2001/XMLSchema</attval>. Its value identifies a
          set of serialization rules that can be used to
          deserialize the SOAP message.</p>

	  <example>
	    <head>Values for the <att>encodingStyle</att> <emph>attribute information item</emph>.</head>
	    <eg xml:space="preserve">&quot;http://www.w3.org/2002/06/soap-encoding&quot;
&quot;http://example.org/encoding/&quot;
&quot;&quot;</eg></example>

        </div3>

      </div2>

      <div2 id="soaphead"><head>SOAP Header</head>
          
      <p>The SOAP <el>Header</el> <emph>element information item</emph>
      provides a mechanism for extending a SOAP message in a
      decentralized and modular way (see <specref ref="extensibility"/>
      and <specref ref="muprocessing"/>).</p>

      <p>The <el>Header</el> <emph>element information item</emph> has:</p>

	<ulist>

	  <item><p>A [local name] of <el>Header</el>.</p></item>

	  <item><p>A [namespace name] of
            <attval>http://www.w3.org/2002/06/soap-envelope</attval>.</p></item>

	  <item><p>Zero or more namespace qualified <emph>attribute
	    information items</emph> in its [attributes] property.</p></item>

	  <item><p>Zero or more namespace qualified <emph>element
	    information item</emph>s in its [children] property.</p></item>

	</ulist>

        <p>Each child <emph>element information item</emph> of
        the SOAP Header is called a SOAP header block.</p>
        
        
        <div3 id="soapheadblock"><head>SOAP header block</head>

        <p>Each SOAP header block <emph>element information item</emph>:</p>

        <ulist>

          <item><p>MUST have a [namespace name] property which has a
          value, that is, MUST be namespace qualified.</p></item>
          
   		  <item><p>MAY have any number of <emph>character information
   		  item</emph> children. Child <emph>character information
   		  items</emph> whose character code is amongst the whitespace
   		  characters as defined by <bibref ref='XML' /> are
   		  considered significant.</p></item>

          <item><p>MAY have an <att>encodingStyle</att> <emph>attribute
          information item</emph> in its [attributes] property.</p></item>

          <item><p>MAY have
          an <att>role</att> <emph>attribute information
          item</emph> in its [attributes] property.</p></item>

          <item><p>MAY have a <att>mustUnderstand</att>
          <emph>attribute information item</emph> in its [attributes] property.</p></item>

        </ulist>

	  <example>
	    <head>Header with a single header block</head>
	    <eg xml:space="preserve">&lt;env:Header xmlns:env=&quot;http://www.w3.org/2002/06/soap-envelope&quot; &gt;
 &lt;t:Transaction xmlns:t=&quot;http://example.org/2001/06/tx&quot; 
                env:mustUnderstand=&quot;true&quot; &gt;
   5
 &lt;/t:Transaction&gt;
&lt;/env:Header&gt;</eg>
	  </example>

           <p >The SOAP header block attribute information items defined
           later in <specref ref="soaprole"/> and <specref ref="soapmu"/>
           affect the processing of SOAP
           messages by SOAP receivers (see <specref ref="msgexchngmdl"/>). A SOAP
           sender generating a SOAP message SHOULD use these attributes
           only on SOAP header block. A SOAP receiver MUST ignore these
           attribute information items if they appear on descendants
           of a SOAP header block or on a SOAP body child <emph>element
           information item</emph> (or its descendents).</p>
          
        </div3>

        <div3 id="soaprole"><head>SOAP role Attribute</head>
          
          <p>A SOAP role is used to indicate the SOAP node to which a
          particular SOAP header block is targeted
          (see <specref ref="soaproles"/>).</p>

          <p>The <att>role</att> <emph>attribute information
          item</emph> has the following Infoset properties:</p>

	  <ulist>

            <item><p>A [local name] of <att>role</att>.</p></item>

            <item><p>A [namespace name] of
            <attval>http://www.w3.org/2002/06/soap-envelope</attval>.</p></item>

            <item><p>A [specified] property with a value of <attval>true</attval>.</p></item>

          </ulist> 

          <p>The type of the <att>role</att> <emph>attribute
          information item</emph> is <emph>anyURI</emph> in the
          namespace named <attval>http://www.w3.org/2001/XMLSchema</attval>.
          The value of the <att>role</att> <emph>attribute
          information item</emph> is a URI that names a role that a
          SOAP node can assume.</p>
          
          <p>Omitting the SOAP <att>role</att> <emph>attribute information
          item</emph> is equivalent to 
          supplying that attribute with a value of
          <attval>http://www.w3.org/2002/06/soap-envelope/role/ultimateReceiver</attval>.
          An empty value for this attribute is equivalent to omitting the
          attribute completely, i.e. targeting the SOAP header block at an ultimate
          SOAP receiver.</p>
          
          <p>SOAP senders SHOULD NOT generate, but SOAP receivers MUST
          accept the SOAP <att>role</att> <emph>attribute information
          item</emph> with a value of
          <attval>http://www.w3.org/2002/06/soap-envelope/role/ultimateReceiver</attval> (see <specref
          ref="robustnessprinc"/>). If relaying a SOAP message, a SOAP
          intermediary MAY discard the SOAP <att>role</att>
          <emph>attribute information item</emph> for SOAP header blocks
          when the value of the <att>role</att> <emph>attribute information
          item</emph> is
          <attval>http://www.w3.org/2002/06/soap-envelope/role/ultimateReceiver</attval> (see <specref
          ref="relaysoapmsg"/>).</p>

        </div3>

        <div3 id="soapmu"><head>SOAP mustUnderstand Attribute</head>
          
          <p>The SOAP <att>mustUnderstand</att> <emph>attribute information
          item</emph> is used to indicate whether the processing of a
          SOAP header block is mandatory or optional (see <specref
          ref="muprocessing"/>)</p>

          <p>The <att>mustUnderstand</att> <emph>attribute information
          item</emph> has the following Infoset properties:</p>

	  <ulist>

            <item><p>A [local name] of <att>mustUnderstand</att>.</p></item>

            <item><p>A [namespace name] of
            <attval>http://www.w3.org/2002/06/soap-envelope</attval>.</p></item>

            <item><p>A [specified] property with a value of
            <attval>true</attval>.</p></item> 

          </ulist> 

          <p>The type of the <att>mustUnderstand</att> <emph>attribute
          information item</emph> is boolean in the namespace
          <attval>http://www.w3.org/2001/XMLSchema</attval>.</p>
          
          <p>Omitting this <emph>attribute information item</emph> is
          defined as being semantically equivalent to including it
          with a value of <attval>false</attval> or
          <attval>0</attval>.</p>

          <p>SOAP senders SHOULD NOT generate, but SOAP receivers MUST
          accept the SOAP <att>mustUnderstand</att> <emph>attribute information
          item</emph> with a value of <attval>false</attval> or
          <attval>0</attval> (see section <specref
          ref="robustnessprinc"/>). If generating a SOAP
          <att>mustUnderstand</att> <emph>attribute information item</emph>, a
          SOAP sender SHOULD use the canonical representation
          <attval>true</attval> of the attribute value (see <bibref
          ref="XMLSchemaP2"/>). A SOAP receiver MUST accept any valid
          lexical representation of the attribute value.</p>

          <p >If relaying the message, a SOAP intermediary MAY substitute
          <attval>true</attval> for the value <attval>1</attval>, or
          <attval>false</attval> for <attval>0</attval>. The SOAP
          <att>mustUnderstand</att> <emph>attribute information
          item</emph> MAY be omitted if its value would have been
          <attval>false</attval> or <attval>0</attval>.</p>

       </div3> 
      </div2>

      <div2 id="soapbody"><head>SOAP Body</head>

        <p>A SOAP body provides a mechanism for transmitting information
        to an ultimate SOAP receiver (see <specref ref="structinterpbodies"/>).</p>

        <p>The <el>Body</el> <emph>element information item</emph> has:</p>

	<ulist>

	  <item><p>A [local name] of <el>Body</el>.
	  </p></item>

	  <item><p>A [namespace name] of
            <attval>http://www.w3.org/2002/06/soap-envelope</attval>.
            </p></item>

	  <item><p>Zero or more namespace qualified <emph>attribute
	    information items</emph> in its [attributes] property.</p></item>

	  <item><p>Zero or more namespace qualified <emph>element
	    information item</emph>s in its [children] property.</p></item>

	</ulist>

      <div3 id="soapbodyel"><head>SOAP Body child Element</head>

        <p>All child <emph>element information items</emph> of the
        SOAP <el>Body</el> <emph>element information item</emph>:</p>

        <ulist>

          <item><p>MUST have a [namespace name] property which has a
          value, that is, be namespace qualified.</p></item>

          <item><p>MAY
          have an <att>encodingStyle</att> <emph>attribute information
          item</emph> in their [attributes] property.</p></item>
          
          <item><p>MAY have any number of <emph>character information
          item</emph> children. Child <emph>character information
          items</emph> whose character code is amongst the whitespace
          characters as defined by <bibref ref='XML' /> are considered
          significant.</p></item>


        </ulist>

        <p>SOAP defines one particular direct child of the SOAP body,
        the SOAP fault, which is used for reporting errors (see
        <specref ref="soapfault"/>).</p>
       
       </div3>

      </div2>
      
      <div2 id="soapfault"><head>SOAP Fault</head>
        
        <p>A SOAP fault is used to carry error information within a SOAP
        message.</p>

        <p>The <el>Fault</el> <emph>element information item</emph> has:</p>

        <ulist>

          <item><p>A [local name] of <el>Fault</el>.</p></item>

          <item><p>A [namespace name] of
          <attval>http://www.w3.org/2002/06/soap-envelope</attval>.</p></item>

          <item><p>Two or more child <emph>element
          information item</emph>s in its [children] property in order
          as follows:</p> 

          <olist>

            <item><p>A mandatory <el>Code</el> <emph>element
            information item</emph> (see <specref
            ref="faultcodeelement"/>).</p></item>

            <item><p>A mandatory <el>Reason</el> <emph>element
            information item</emph> (see <specref
            ref="faultstringelement"/>).</p></item>

            <item><p>An optional <el>Node</el> <emph>element
            information item</emph> (see <specref
            ref="faultactorelement"/>).</p></item>

            <item><p>An optional <el>Role</el> <emph>element
            information item</emph> (see <specref
            ref="faultroleelement"/>).</p></item>

            <item><p>An optional <el>Detail</el> <emph>element
            information item</emph> (see <specref
            ref="faultdetailelement"/>).</p></item>

          </olist>
          </item>

        </ulist>
        
        <p>To be recognized as carrying SOAP error information, a SOAP
        message MUST contain a single SOAP <el>Fault</el> <emph>element
        information item</emph> as the only child of the SOAP <el>Body</el>.</p>
        
        <p>When generating a fault, SOAP senders MUST NOT include
        additional <emph>element information items</emph> in the SOAP
        <el>Body</el>. A message whose <el>Body</el> contains a
        <el>Fault</el> plus additional <emph>element information
        items</emph> has no SOAP-defined semantics.</p>
        
        <p>A SOAP <el>Fault</el> <emph>element information item</emph>
        MAY appear within a SOAP header block, or as a descendant of a
        child <emph>element information item</emph> of the SOAP
        <el>Body</el>; in such cases, the element has no
        SOAP-defined semantics.</p>

        <div3 id="faultcodeelement"><head>SOAP Code Element</head>

        <p>The <el>Code</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Code</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
          <item><p>One or two child <emph>element information
          item</emph>s in its [children] property, in order, as follows:</p>
          <olist>
            <item><p>A mandatory <el>Value</el> <emph>element
            information item</emph> as described below (see <specref
            ref='faultvalueelement' />) </p></item>
	    <item><p>An optional
            <el>Subcode</el> <emph>element information
            item</emph> as described below (see <specref ref='faultsubcodeelement' />).</p></item>
          </olist>
          </item>
        </ulist>

		<div4 id='faultvalueelement'>
		  <head>SOAP Value element (with Code parent)</head>
		  <p>The <el>Value</el> <emph>element information item</emph>
		  has;</p>
		  
		  <ulist>
          <item><p>A [local name] of <el>Value</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
		  </ulist>

		  <p>
		  The type of the <el>Value</el> <emph>element information
		  item</emph> is <emph>faultCodeEnum</emph> in the
		  <attval>http://www.w3.org/2002/06/soap-envelope</attval>
		  namespace. SOAP defines a small set of SOAP fault codes
		  covering high level SOAP faults (see <specref
		  ref="faultcodes"/>).
		  </p>
		</div4>

        <div4 id="faultsubcodeelement"><head>SOAP Subcode element</head>
        
        <p>The <el>Subcode</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Subcode</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
          <item><p>One or two child <emph>element information
          item</emph>s in its [children] property, in order, as follows:</p>
          <olist>
            <item><p>A mandatory <el>Value</el> <emph>element
            information item</emph> as described below (see <specref
            ref='faultsubvalueelem'/>). </p></item>

            <item><p>An optional
            <el>Subcode</el> <emph>element information
            item</emph> (see <specref ref='faultsubcodeelement'/>).</p></item>
          </olist>
          </item>
        </ulist>


        
        </div4>

		<div4 id='faultsubvalueelem'>
          <head>SOAP Value element (with Subcode parent)</head>

        <p>The <el>Value</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Value</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
		</ulist>

		<p>
		  The type of the <el>Value</el> <emph>element information
		  item</emph> is QName in the
            <attval>http://www.w3.org/2001/XMLSchema</attval>
            namespace. The value of this element is an application
            defined subcategory of the value of the <el>Value</el>
            child <emph>element information item</emph> of the
            <el>Subcode</el> element information item's parent <emph>element information
            item</emph> (see <specref ref="faultcodes"/>).</p>
	    </div4>
        

        </div3>

        <div3 id="faultstringelement"><head>SOAP Reason Element</head>

        <p>The <el>Reason</el> <emph>element information item</emph>
        is intended to provide a human readable explanation of the fault.</p>
        
        <p>The <el>Reason</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Reason</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
          <item><p>An optional <emph>attribute information item</emph>
          with a [local name] of <el>lang</el> and
          [namespace name] of <attval>http://www.w3.org/XML/1998/namespace</attval>
          (see <bibref ref="XML"/>, <xspecref href='http://www.w3.org/TR/REC-xml.html#sec-lang-tag'>Language Identification</xspecref>).</p></item>
          <item><p>Any number of <emph>character information
		  item</emph> children. Child <emph>character information items</emph> whose
        character code is amongst the whitespace characters as defined
        by <bibref ref='XML' /> are considered significant.</p></item>

        </ulist>
        
        <p>This <emph>element information item</emph> is similar to the
        'Reason-Phrase' defined by HTTP <bibref ref="RFC2616"/> and
        SHOULD provide information explaining the nature
        of the fault. It is not intended for algorithmic processing.</p>

        <p>The type of the <el>Reason</el> <emph>element
        information item</emph> is <emph>faultreason</emph> in the
        <attval>http://www.w3.org/2002/06/soap-envelope</attval>
        namespace. </p>

        </div3>

        <div3 id="faultactorelement"><head>SOAP Node Element</head>
	
        <p>The <el>Node</el> <emph>element information item</emph>
	is intended to provide information about which SOAP node on the
	SOAP message path caused the fault to happen (see <specref
	ref="msgexchngmdl"/>).</p>

        <p>The <el>Node</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Node</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
        </ulist>
	
	<p>As described in section <specref ref="soapnodes"/>,
	each SOAP node is identified by a URI.
	The value of the <el>Node</el>
	<emph>element information item</emph> is the URI that
	identifies the SOAP node that generated the fault.
	SOAP nodes that do not act as the
	ultimate SOAP receiver MUST include this <emph>element
	information item</emph> An ultimate SOAP receiver MAY include
	this <emph>element information item</emph> to indicate
	explicitly that it generated the fault.</p>

	<p>The type of the <el>Node</el> <emph>element
	information item</emph> is <emph>anyURI</emph> in the
	<attval>http://www.w3.org/2001/XMLSchema</attval> namespace.</p>

        </div3>

        <div3 id="faultroleelement"><head>SOAP Role Element</head>
	
        <p>The <el>Role</el> <emph>element information item</emph>
        identifies the role the node was operating in at the point the
        fault occurred.</p>

        <p>The <el>Role</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Role</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
        </ulist>

	<p>The type of the <el>Role</el> <emph>element
	information item</emph> is <emph>anyURI</emph> in the
	<attval>http://www.w3.org/2001/XMLSchema</attval> namespace.</p>

        </div3>

        <div3 id="faultdetailelement"><head>SOAP Detail Element</head>

        <p>The <el>Detail</el> <emph>element information item</emph>
        is intended for carrying application specific error
        information related to the SOAP <el>Body</el>.</p>

        <p>The <el>Detail</el> <emph>element information item</emph>
        has:</p>

        <ulist>
          <item><p>A [local name] of <el>Detail</el>.</p></item>
          <item><p>A [namespace name] of <el>http://www.w3.org/2002/06/soap-envelope</el>.</p></item>
          <item><p>Zero or more <emph>attribute information
            item</emph>s in its [attributes] property.</p></item>
          <item><p>Zero or more child <emph>element information
            item</emph>s in its [children] property.</p></item>
        </ulist>
        
        <p>The <el>Detail</el> <emph>element information item</emph> MUST be
        present when the contents of the SOAP Body could not be
        processed successfully. It MUST NOT be used to carry error
        information about any SOAP header blocks. Detailed error
        information for SOAP header blocks MUST be carried within the
        SOAP header blocks themselves.</p>

        <p>The absence of the <el>Detail</el> <emph>element
        information item</emph> indicates that a SOAP <el>Fault</el>
        is not related to the processing of the SOAP <el>Body</el>.
        Presence of the <el>Detail</el> <emph>element information item</emph>
        is a signal that the SOAP <el>Body</el>
        was at least partially processed by an ultimate SOAP receiver
        before the fault occurred.</p>

        <p>All child <emph>element information items</emph> of
        the <el>Detail</el> <emph>element information item</emph> are
        called detail entries (see <specref ref='faultdetailentry' />).</p>
        
        
        <div4 id="faultdetailentry"><head>SOAP detail entry</head>

        <p>Each detail entry:</p>

        <ulist>
          <item><p>MAY be namespace qualified.</p></item>
		  <item><p>MAY have any number of <emph>element information
		  item</emph> children</p></item>
		  <item><p>MAY have any number of <emph>character information
		  item</emph> children. Child <emph>character information items</emph> whose
        character code is amongst the whitespace characters as defined
        by <bibref ref='XML' /> are considered significant.</p></item>
          <item><p>MAY have an <att>encodingStyle</att> <emph>attribute
            information item</emph>.</p></item>
		  <item><p>MAY have any number of other <emph>attribute
		  information items</emph> from any namespace</p></item>
        </ulist>

        <p>If present, the SOAP <att>encodingStyle</att> <emph>attribute information
        item</emph> indicates the encoding style used for
        the detail entry (see <specref ref="soapencattr"/>).</p>
        
        </div4>
        

        </div3>

        <div3 id="faultcodes"><head>SOAP Fault Codes</head>

          <p>SOAP fault codes are intended for use by software to provide
          an algorithmic mechanism for identifying the fault.</p>
          
          <p >The values of the <el>Value</el> child <emph>element
          information item</emph> of the <el>Code</el> <emph>element
          information item</emph> are restricted to those in <specref
          ref="tabsoapfaultcodes"/>. Additional fault subcodes MAY be
          created for use by applications or features. Such subcodes
          are carried in the <el>Value</el> child <emph>element
          information item</emph> of the <el>Subcode</el> <emph>element
          information item</emph>.</p>
          
          <p>SOAP fault code (see <specref ref="faultcodeelement"/>)
          values are XML qualified names (see XML Namespaces <bibref
          ref="XMLNS"/>) in the namespace
          name <attval>http://www.w3.org/2002/06/soap-envelope</attval>.
          </p>

	  <table border="1" id="tabsoapfaultcodes">
	    <caption>SOAP Fault Codes</caption>
	    <tbody>
              <tr>
                <th>Local Name</th>
                <th>Meaning</th>
              </tr>
              <tr>
                <td>VersionMismatch</td>

                <td>The faulting node found an invalid
                <emph>element information item</emph> instead of the
                expected <el>Envelope</el> <emph>element information
                item</emph>. The namespace, local name or both did not
                match the <el>Envelope</el> <emph>element
                information item</emph> required by this recommendation (see <specref
                ref="envvermodel"/> and <specref ref="vmfault"/>)</td>
              </tr>
              <tr>
                <td>MustUnderstand</td>
                
                <td>An immediate child <emph>element information
                item</emph> of the SOAP <el>Header</el> <emph>element
                information item</emph> that was either not understood
                or not obeyed by the faulting node contained a SOAP
                <att>mustUnderstand</att> <emph>attribute information
                item</emph> with a value of <attval>true</attval> (see
                <specref ref="soapmu"/> and <specref ref="mufault"/>)</td>
              </tr>
	      <tr>
		<td>DataEncodingUnknown</td>

                <td>A header or body targeted at the faulting
                SOAP node is scoped (see <specref ref="soapencattr"/>) with a data encoding that the
                faulting node does not support.</td>
	      </tr>
              <tr>
                <td>Sender</td>

                <td>The message was
                incorrectly formed or did not contain the appropriate
                information in order to succeed. For example, the
                message could lack the proper authentication or
                payment information. It is generally an indication
                that the message is not to be resent without change
                (see also <specref ref="soapfault"/> for a description
                of the SOAP fault <el>detail</el> sub-element).
                </td>
              </tr>
              <tr>
                <td>Receiver</td>

                <td>The message could
                not be processed for reasons attributable to
                the processing of the message rather than
                to the contents of the message itself. For example, processing
                could include communicating with an upstream SOAP
                node, which did not respond. The message could succeed if resent
                at a later point in time (see also <specref
                ref="soapfault"/> for a description of the SOAP fault
                <el>detail</el> sub-element).</td>
              </tr>
	    </tbody>
	  </table>

        </div3>

	<div3 id="vmfault">
	  <head>VersionMismatch Faults</head>

          <p >When a SOAP node generates a fault with a
          <el>Value</el> of <el>Code</el> set to
          <attval>env:VersionMismatch</attval>, it SHOULD provide an
          <el>Upgrade</el> header block in the generated fault message.
          The <el>Upgrade</el> header block, as described below, 
          details the XML qualified names (per XML Schema: Datatypes
          <bibref ref="XMLSchemaP2"/>) of the supported SOAP envelopes
          that the SOAP node supports (see <specref
          ref="envvermodel"/>).</p>
	  
	  <p>The <el>Upgrade</el> header block consists of an
	    <el>Upgrade</el> <emph>element information item</emph>
	    containing an ordered list of qualified names of SOAP
	    envelopes that the SOAP node supports in the order most to
	    least preferred.</p>

	  <p>The <el>Upgrade</el> <emph>element information
	      item</emph> has:</p>

	  <ulist>
	    <item>
	      <p>A [local name] of <el>Upgrade</el>.</p>
	    </item>
	    <item>
	      <p>A [namespace name] of
		<attval>http://www.w3.org/2002/06/soap-upgrade</attval>.</p>
	    </item>
	    <item>
	      <p>One or more <el>envelope</el> <emph>element
		  information item</emph>s in its [children] property as described below:</p>
	    </item>
	  </ulist>

	  <p>The <el>envelope</el> <emph>element information
	      item</emph> has:</p>

	  <ulist>
	    <item>
	      <p>A [local name] of <el>envelope</el>.</p>
	    </item>
	    <item>
	      <p>A [namespace name] which has no value.</p>
	    </item>
	    <item>
	      <p>An unqualified <emph>attribute information item</emph> with a
		local name of <el>qname</el> whose type is QName in
		the <attval>http://www.w3.org/2001/XMLSchema</attval> namespace.</p>
	    </item>
	  </ulist>

	  <p>The following example illustrates the case of a SOAP node that supports both
	  SOAP Version 1.2 and SOAP/1.1 but which prefers SOAP Version
	  1.2 (see appendix <specref ref="version"/> for a mechanism
	  for transitioning from SOAP/1.1 to SOAP Version 1.2). This
	  is indicated by including an <el>Upgrade</el> header block
	  with two <el>envelope</el> <emph>element information
	  items</emph>, the first containing the local name and
	  namespace name of the SOAP Version 1.2 <el>Envelope</el>
	  <emph>element information item</emph>, the latter the local
	  name and namespace name of the SOAP/1.1 <el>Envelope</el>
	  element.</p>

	  <example>
	    <head>Version mismatch fault generated by a SOAP node. The
	      message includes a SOAP <el>Upgrade</el> header block
	      indicating support for both SOAP Version 1.2 and
	      SOAP/1.1 but with a preference for SOAP Version
	      1.2.</head>
	    <eg xml:space="preserve">&lt;?xml version=&quot;1.0&quot; ?&gt;
&lt;env:Envelope xmlns:env=&quot;http://www.w3.org/2002/06/soap-envelope&quot;&gt;
 &lt;env:Header&gt;
  &lt;V:Upgrade xmlns:V=&quot;http://www.w3.org/2002/06/soap-upgrade&quot;&gt;
   &lt;envelope qname=&quot;ns1:Envelope&quot; 
             xmlns:ns1=&quot;http://www.w3.org/2002/06/soap-envelope&quot;/&gt;
   &lt;envelope qname=&quot;ns2:Envelope&quot; 
             xmlns:ns2=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;/&gt;
  &lt;/V:Upgrade&gt;
 &lt;/env:Header&gt;
 &lt;env:Body&gt;
  &lt;env:Fault&gt;
   &lt;env:Code&gt;&lt;env:Value&gt;env:VersionMismatch&lt;/env:Value&gt;&lt;/env:Code&gt;
    &lt;env:Reason&gt;Version Mismatch&lt;/env:Reason&gt;
   &lt;/env:Fault&gt;
 &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
	  </example>

</div3>

        <div3 id="mufault"><head>SOAP mustUnderstand Faults</head>

          <p >When a SOAP node generates a fault with a <el>Value</el> of
          <el>Code</el> set to <attval>env:MustUnderstand</attval> for,
          it SHOULD provide <el>Misunderstood</el> header blocks in the generated fault message.
          The <el>Misunderstood</el> header blocks, as described below,
          detail the XML qualified names (per XML Schema: Datatypes
          <bibref ref="XMLSchemaP2"/>) of the particular header block(s)
          which were not understood.</p>
	  
	  <p>A SOAP node MAY generate a SOAP fault for any one or more
	  SOAP header blocks that were not understood in a SOAP message.
	  It is NOT a requirement that the fault contain the
	  qualified names of ALL such header blocks.</p>

          <p>Each such header block <emph>element information
          item</emph> has:</p>

          <ulist>
            <item><p>A [local name] of <el>Misunderstood</el>.</p></item>

            <item><p>A [namespace name] of
            <attval>http://www.w3.org/2002/06/soap-faults</attval>.</p></item>

            <item><p>A <att>qname</att> <emph>attribute information
            item</emph> in its [attributes] property as described below.</p></item>

          </ulist>

          <p>The <att>qname</att> <emph>attribute information item</emph>
          has the following Infoset properties:</p>

          <ulist>
            <item><p>A [local name] of <att>qname</att>.</p></item>
            <item><p>A [namespace name] which has no value.</p></item>
            <item><p>A [specified] property with a value of <attval>true</attval>.</p></item>
          </ulist>

          <p>The type of the <att>qname</att> <emph>attribute information
          item</emph> is QName in the
          <attval>http://www.w3.org/2001/XMLSchema</attval> namespace. Its
          value is the XML qualified name of a header block which the faulting node
          failed to understand.</p>

          <p>Consider the following message:</p>

	  <example>
	    <head>SOAP envelope that will cause a fault if
            <el>Extension1</el> or <el>Extension2</el> are not understood</head>
<eg xml:space="preserve">&lt;?xml version=&quot;1.0&quot; ?&gt;
&lt;env:Envelope xmlns:env='http://www.w3.org/2002/06/soap-envelope'&gt;
  &lt;env:Header&gt;
    &lt;abc:Extension1 xmlns:abc='http://example.org/2001/06/ext'
       env:mustUnderstand='true'/&gt;
    &lt;def:Extension2 xmlns:def='http://example.com/stuff'
       env:mustUnderstand='true' /&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    . . .
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
	  </example>

          <p>The message in the above example will result in the fault message shown
          in the example below if the receiver of the initial message does not
          understand the two header elements <el>abc:Extension1</el>
          and <el>def:Extension2</el>.</p>

          <example>
	    <head>SOAP fault generated as a result of not
            understanding <el>Extension1</el> and
            <el>Extension2</el></head>
            <eg xml:space="preserve">&lt;?xml version=&quot;1.0&quot; ?&gt;
&lt;env:Envelope xmlns:env='http://www.w3.org/2002/06/soap-envelope'
              xmlns:f='http://www.w3.org/2002/06/soap-faults' &gt;
 &lt;env:Header&gt;
  &lt;f:Misunderstood qname='abc:Extension1'
                   xmlns:abc='http://example.org/2001/06/ext' /&gt;
  &lt;f:Misunderstood qname='def:Extension2'
                   xmlns:def='http://example.com/stuff' /&gt;
 &lt;/env:Header&gt;
 &lt;env:Body&gt;
  &lt;env:Fault&gt;
   &lt;env:Code&gt;&lt;env:Value&gt;env:MustUnderstand&lt;/env:Value&gt;&lt;/env:Code&gt;
   &lt;env:Reason&gt;One or more mandatory 
                headers not understood&lt;/env:Reason&gt;
  &lt;/env:Fault&gt;
 &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
          </example>

          <note><p >When serializing the <att>qname</att> <emph>attribute
          information item</emph> there needs to be be an in-scope namespace
          declaration for the namespace name of the misunderstood
          header and the value of the <emph>attribute information
          item</emph> uses the prefix of such a namespace
          declaration. The prefix used need not be the same as the
          one used in the message that was misunderstood.</p></note>

        </div3>
      </div2>
    </div1>

  <div1 id="useofuris">
    <head>Use of URIs in SOAP</head>
    
    <p>SOAP uses URIs for some identifiers including, but not
    limited to, values of the <att>encodingStyle</att>
    (see <specref ref="soapencattr"/>) and <att>role</att>
    (see <specref ref="soaprole"/>) <emph>attribute information items</emph>.
    To SOAP, a URI is simply a formatted string that identifies a web
    resource via its name, location, or any other characteristics.</p>

    <p>Although this section only applies to URIs directly used by
    <emph>information items</emph> defined by this specification, it
    is RECOMMENDED but NOT REQUIRED that application-defined data
    carried within a SOAP envelope use the same mechanisms and
    guidelines defined here for handling URIs.</p>

    <p>URIs used as values in <emph>information items</emph> identified by the
    <attval>http://www.w3.org/2002/06/soap-envelope</attval> and
    <attval>http://www.w3.org/2002/06/soap-encoding</attval> XML
    namespaces can be either relative or absolute.</p>

    <p>SOAP does not define a base URI but relies on the mechanisms
    defined in XML Base <bibref ref="XMLBase"/> and RFC 2396 <bibref ref="RFC2396"/>
    for establishing a base URI
    against which relative URIs can be made absolute.</p>

    <p>The underlying protocol binding MAY define a base URI which
    can act as the base URI for the SOAP envelope
    (see <specref ref="transpbindframew"/> and Part 2
    <bibref ref="SOAP-PART2"/> section <xspecref href="&dated-part2;#soapinhttp">HTTP
    binding</xspecref>).</p>

    <p>SOAP does not define any equivalence rules for URIs in general
    as these are defined by the individual URI schemes and by RFC
    2396 <bibref ref="RFC2396"/>.
    However, because of inconsistencies with respect to URI equivalence
    rules in many current URI parsers, it is RECOMMENDED that SOAP senders
    do NOT rely on any special equivalence rules in SOAP receivers in order
    to determine equivalence between URI values used in a SOAP message.</p>
    
    <p>The use of IP addresses in URIs SHOULD be avoided whenever
    possible (see RFC 1900 <bibref ref="RFC1900"/>). However, when
    used, the literal format for
    IPv6 addresses in URI's as described by RFC 2732 <bibref ref="RFC2732"/> SHOULD be supported.</p>
    
    <p>SOAP does not place any a priori limit on the length of a URI.
    Any SOAP node MUST be able to handle the length of any URI that it
    publishes and both SOAP senders and SOAP receivers SHOULD be able to
    deal with URIs of at least 2048 characters in length.</p>
    
  </div1>

    <div1 id="secconsiderations">
      <head>Security Considerations</head>
 	    
      <p >The SOAP Messaging Framework does not directly
      provide any mechanisms for dealing with access control,
      confidentiality, integrity and non-repudiation. Such mechanisms
      can be provided as SOAP extensions using the SOAP
      extensibility model (see <specref ref="extensibility"/>). This section describes
      the security considerations that designers and implementors need
      to take into consideration when designing and using such
      mechanisms.</p>

      <p >SOAP implementors need to anticipate rogue SOAP
      applications sending intentionally malicious data to a SOAP node
      (see <specref ref="msgexchngmdl"/>). It is strongly
      recommended that a SOAP node receiving a SOAP message is capable
      of evaluating to what level it can trust the sender of that SOAP
      message and its contents.</p>
      
      <div2 id='secsoapnodes'><head>SOAP Nodes</head>

	<p>SOAP can carry application-defined data as SOAP header
	  blocks or as SOAP body contents. Processing a SOAP header
	  block might include dealing with side effects such as state
	  changes, logging of information, or the generation of
	  additional messages. It is strongly recommended that, for any deployment scenario, only
	  carefully specified header blocks with well understood security implications
	  of any side effects be processed by a SOAP node.</p>

	<p >Similarly, processing a SOAP body might imply the
	occurrence of side affects that could, if not properly understood,
	have severe consequences for the receiving SOAP node. It is strongly
	recommended that only well-defined body contents with known security
	implications be processed.</p>
	
	<p >Security considerations, however, are not just limited
	to recognizing the immediate child elements of the SOAP header and
	the SOAP body. Implementors need to pay special attention to the
	security implications of all data carried within a SOAP message that
	can cause the remote execution of any actions in the receiver's
	environment. This includes not only data expressed in XML infoset
	but data that might be encoded as binary data or carried as
	parameters, for example URI query strings. Before accepting data of
	any type, an application ought to be aware of the particular security
	implications associated with that data within the context it is
	being used.</p>

	<p >SOAP implementors need to be careful to ensure that if
	processing of the various parts of a SOAP message is provided
	through modular software architecture, that each module is aware of
	the overall security context. For example, a SOAP body ought
	not to be processed without knowing the context in which it was
	received.</p></div2>
      
      <div2 id='secsoapinter'><head>SOAP Intermediaries</head>

	<p>SOAP inherently provides a distributed processing model
	  that might involve a SOAP message passing through multiple SOAP nodes
	  (see <specref ref="msgexchngmdl"/>). SOAP intermediaries are by
	  definition men-in-the-middle, and represent an opportunity for
	  man-in-the-middle attacks. Security breaches on systems that run SOAP
	  intermediaries can result in serious security and privacy problems. A
	  compromised SOAP intermediary, or an intermediary implemented or
	  configured without regard to security and privacy considerations,
	  might be used in the commission of a wide range of potential
	  attacks.</p>
	
	<p>In analyzing the security implications of potential SOAP related
	  security problems, it is important to realize that the scope of
	  security mechanisms provided by the underlying protocol might not be the
	  same scope as the whole message path of the SOAP message. There is no
	  requirement in SOAP that all hops between participating SOAP nodes use
	  the same underlying protocol and even if this were the case, the very
	  use of SOAP intermediaries is likely to reach beyond the scope of
	  transport-level security.</p></div2>
	  
	<div2 id="secundprotbind"><head>Underlying Protocol Bindings</head>
	
	<p >The effects on security of not implementing a MUST or
	  SHOULD, or doing something the specification says MUST NOT or SHOULD
	  NOT be done can be very subtle. Binding specification authors ought to
	  describe, in detail, the security implications of not following
	  recommendations or requirements as most implementors will not have
	  had the benefit of the experience and discussion that produced the
	  specification (see <specref ref="transpbindframew"/>).</p>
	
	<p >In addition, a binding specification might not address or provide
	  countermeasures for all aspects of the inherent security risks.
	  The binding specification authors ought to identify any such risks
	  as might remain and indicate where further countermeasures would
	  be needed above and beyond those provided for in the binding
	  specification.</p>

	<p >Authors of binding specifications need to be aware that SOAP extension modules
	  expressed as SOAP header blocks could affect the underlying protocol
	  in unforeseen ways.
	  A SOAP message carried over a particular protocol binding might
	  result in seemingly conflicting features.
	  An example of this is a SOAP message carried over HTTP,
	  using the HTTP basic authentication mechanism in combination with a SOAP
	  based authentication mechanism. It is strongly recommended that a binding
	  specification describes any such interactions between the
	  extensions and the underlying protocols.</p>
	
	<div3 id='secbindappspecprot'><head>Binding to Application-Specific Protocols</head>

	  <p>Some underlying protocols could be designed for a particular purpose
	    or application profile. SOAP bindings to such protocols MAY use the
	    same endpoint identification (e.g., TCP port number) as the
	    underlying protocol, in order to reuse the existing infrastructure
	    associated that protocol.</p>

	  <p>However, the use of well-known ports by SOAP might incur additional,
	    unintended handling by intermediaries and underlying
	    implementations. For example, HTTP is commonly thought of as a "Web
	    browsing" protocol, and network administrators might place certain
	    restrictions upon its use, or could interpose services such as
	    filtering, content modification, routing, etc. Often, these
	    services are interposed using port number as a heuristic.</p>

	  <p>As a result, binding definitions for underlying protocols
	    with well-known default ports or application profiles
	    SHOULD document potential interactions with
	    commonly deployed infrastructure at those default ports or
	    in conformance with default application profiles. Binding
	    definitions SHOULD also illustrate the use of the binding
	    on a non-default port as a means of avoiding unintended
	    interaction with such services.</p>
	  
	  </div3>
      </div2>
    </div1>
  
  <div1 id="refs">
      <head>References</head>

      <div2 id="normrefs">
	<head>Normative References</head>

        <blist>

    	<bibl key="1" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="&dated-part2;" id="SOAP-PART2">W3C Working Draft "SOAP Version 1.2 Part 2:
	  Adjuncts", Martin Gudgin, Marc Hadley, Jean-Jacques Moreau,
	  Henrik Frystyk Nielsen, &draft.day; &draft.month; &draft.year;</bibl>

	<bibl key="2" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC2616" href="http://www.ietf.org/rfc/rfc2616.txt">IETF "RFC 2616:
 	  Hypertext Transfer Protocol -- HTTP/1.1", R. Fielding,
 	  J. Gettys, J. C. Mogul, H. Frystyk Nielsen, T. Berners-Lee, January
 	  1997.</bibl>

	<bibl key="3" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC2119" href="http://www.ietf.org/rfc/rfc2119.txt">IETF "RFC 2119:
	  Key words for use in RFCs to Indicate Requirement Levels",
	  S. Bradner, March 1997.</bibl>

	<bibl key="4" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="XMLSchemaP1" href="http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/">W3C
          Recommendation "XML Schema Part 1: Structures", Henry
          S. Thompson, David Beech, Murray Maloney, Noah Mendelsohn, 2
          May 2001.</bibl>

	<bibl key="5" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="XMLSchemaP2" href="http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/">W3C
	  Recommendation "XML Schema Part 2: Datatypes", Paul
	  V. Biron, Ashok Malhotra, 2 May 2001.</bibl>

	<bibl key="6" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC2396" href="http://www.ietf.org/rfc/rfc2396.txt">IETF "RFC 2396:
	  Uniform Resource Identifiers (URI): Generic Syntax",
	  T. Berners-Lee, R. Fielding, L. Masinter, August
	  1998.</bibl>

	<bibl key="7" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/TR/1999/REC-xml-names-19990114/" id="XMLNS">W3C Recommendation "Namespaces in XML", Tim Bray,
 	  Dave Hollander, Andrew Layman, 14 January 1999.</bibl>

	<bibl key="8" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/TR/2000/REC-xml-20001006" id="XML">W3C Recommendation "Extensible Markup Language
	  (XML) 1.0 (Second Edition)", Tim Bray, Jean Paoli,
	  C. M. Sperberg-McQueen, Eve Maler, 6 October 2000.</bibl>

	<bibl key="9" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/TR/2000/REC-xlink-20010627/" id="XLINK">W3C Recommendation "XML Linking Language
	  (XLink) Version 1.0", Steve DeRose, Eve Maler, David
	  Orchard, 27 June 2001.</bibl>

 	<bibl key="10" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="XMLInfoSet" href="http://www.w3.org/TR/2001/REC-xml-infoset-20011024/">W3C
	    Recommendation "XML Information Set", John
	    Cowan, Richard Tobin, 24 October 2001.</bibl>

 	<bibl key="11" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="XMLBase" href="http://www.w3.org/TR/2001/REC-xmlbase-20010627/">W3C
	    Recommendation "XML Base", Johnathan Marsh, 27 June 2001.</bibl>

	<bibl key="12" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC2732" href="http://www.ietf.org/rfc/rfc2732.txt">IETF "RFC 2732:
	  Format for Literal IPv6 Addresses in URL's",
	  R. Hinden, B. Carpenter, L. Masinter, December 1999.</bibl>
	  
    <bibl key="13" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.ietf.org/internet-drafts/draft-baker-soap-media-reg-00.txt" id="soap-media-type">IETF "INTERNET DRAFT: The 'application/soap+xml' media 
       type", M. Baker, M. Nottingham, 
       January 14, 2002. (Work in progress).</bibl>


        </blist>

      </div2>

      <div2 id="nonnormrefs">
	<head>Informative References</head>

	<blist>

    	<bibl key="14" xmlns:xlink="http://www.w3.org/1999/xlink"
    	xlink:type="simple" xlink:show="replace"
    	xlink:actuate="onRequest" href="&dated-part0;"
    	id="SOAP-PART0">W3C Working Draft "SOAP Version 1.2 Part 0:
    	Primer", Nilo Mitra, &draft.day; &draft.month;
    	&draft.year;</bibl>

      <bibl key="15" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://lists.w3.org/Archives/Public/xmlp-comments/" id="CommentArchive">XML Protocol Comments Archive</bibl>

	  <bibl key="16" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://lists.w3.org/Archives/Public/xml-dist-app/" id="DiscussionArchive">XML Protocol Discussion
	    Archive</bibl>

	  <bibl key="17" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://www.w3.org/2000/09/XML-Protocol-Charter" id="XMLPCharter">XML Protocol Charter</bibl>

	  <bibl key="18" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="&dated-reqs;" id="xmlp-reqs">W3C Working Draft "XML Protocol
	    (XMLP) Requirements", Vidur Apparao, Alex Ceponkus, Paul Cotton, David
	    Ezell, David Fallside, Martin Gudgin, Oisin Hurley, John Ibbotson,
	    R. Alexander Milowski, Kevin Mitchell, Jean-Jacques Moreau, Eric
	    Newcomer, Henrik Frystyk Nielsen, Mark Nottingham, Waqar Sadiq, Stuart
	    Williams, Amr Yassin, &reqs.day; &reqs.month; &reqs.year;. <emph>This
	      is work in progress.</emph></bibl>

          <bibl key="19" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="soap11" href="http://www.w3.org/TR/SOAP/">W3C Note "Simple Object
	  Access Protocol (SOAP) 1.1", Don Box, David Ehnebuske, Gopal
	  Kakivaya, Andrew Layman, Noah Mendelsohn, Henrik Nielsen,
	  Satish Thatte, Dave Winer, 8 May 2000.</bibl>

	<bibl key="20" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC1900" href="http://www.ietf.org/rfc/rfc1900.txt">IETF "RFC 1900:
	  Renumbering Needs Work",
	  B. Carpenter, Y. Rekhter, February 1996.</bibl>

	<bibl key="21" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC1123" href="http://www.ietf.org/rfc/rfc1123.txt">IETF "RFC 1123:
	  Requirements for Internet Hosts -- Application and Support",
	  R. Braden, October 1989.</bibl>

	<bibl key="22" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" id="RFC793" href="http://www.ietf.org/rfc/rfc793.txt">IETF "RFC 793:
	  Transmission Control Protocol",
	  DARPA, September 1981.</bibl>

	</blist>

      </div2>

    </div1>

  </body>

  <back>
    <div1 id="version">
      <head>Version Transition From SOAP/1.1 to SOAP Version 1.2</head>

      <p>The rules for dealing with the possible SOAP/1.1 and SOAP
	Version 1.2 interactions are as follows:</p>

       <olist>
         <item>
	  <p>A SOAP/1.1 node receiving a SOAP Version 1.2 message will
	    according to SOAP/1.1 generate a version mismatch SOAP
	    fault based on a SOAP/1.1 message construct. That is, the
	    envelope will have a local name of <el>Envelope</el> and a
	    namespace name of
	    <attval>http://schemas.xmlsoap.org/soap/envelope/</attval>.</p>
	</item>
	<item>
	  <p>A SOAP Version 1.2 node receiving a SOAP/1.1 message
	    either:</p>
	  <ulist>
	    <item>
	      <p>MAY process the message as a SOAP/1.1 message (if
		supported), or</p>
	    </item>
	    <item>
	      <p>MUST generate a version mismatch SOAP fault based on a
		SOAP/1.1 message construct following SOAP/1.1
		semantics. The SOAP fault SHOULD include an
		<el>Upgrade</el> header block as defined in this
		specification (see <specref ref="vmfault"/>)
		indicating support for SOAP Version 1.2. This allows a
		receiving SOAP/1.1 node to correctly interpret the
		SOAP fault generated by the SOAP Version 1.2 node.</p>
	    </item>
	  </ulist>
	</item>
       </olist>

      <p>The example below shows a version mismatch SOAP fault generated
	by a SOAP Version 1.2 node as a result of receiving a SOAP/1.1
	message. The fault message is a SOAP/1.1 message with an
	<el>Upgrade</el> header block indicating support for SOAP
	Version 1.2.</p>
	  
      <example>
	<head>SOAP Version 1.2 node generating a SOAP/1.1
	  version mismatch fault message including an <el>Upgrade</el>
	  header block indicating support for SOAP Version 1.2.</head>
	<eg xml:space="preserve">&lt;?xml version=&quot;1.0&quot; ?&gt;
&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
 &lt;env:Header&gt;
  &lt;V:Upgrade xmlns:V=&quot;http://www.w3.org/2002/06/soap-upgrade&quot;&gt;
   &lt;envelope qname=&quot;ns1:Envelope&quot; 
             xmlns:ns1=&quot;http://www.w3.org/2002/06/soap-envelope&quot;/&gt;
   &lt;/V:Upgrade&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
   &lt;env:Fault&gt;
    &lt;faultcode&gt;env:VersionMismatch&lt;/faultcode&gt;
    &lt;faultstring&gt;Version Mismatch&lt;/faultstring&gt;
   &lt;/env:Fault&gt;
 &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
      </example>

      <note>
	<p>Note that existing SOAP/1.1 nodes are not likely to
	  indicate which envelope versions they support using the
	  <el>Upgrade</el> <emph>element information item</emph>. If nothing is
	  indicated then this means that SOAP/1.1 is the only supported
	  envelope.</p>
      </note>

    </div1>

    <inform-div1 id="acks">
      <head>Acknowledgements</head>

      <p>This specification is the work of the W3C XML Protocol Working Group.</p>

      <p>Members of the Working Group are (at the time of writing, and by
      alphabetical order): 
Yasser al Safadi (Philips Research),
Vidur Apparao (Netscape),
Don Box (DevelopMentor),
Charles Campbell (Informix Software),
Michael Champion (Software AG),
Dave Cleary (webMethods),
Ugo Corda (Xerox),
Paul Cotton (Microsoft Corporation),
Ron Daniel (Interwoven),
Glen Daniels (Allaire),
Doug Davis (IBM),
Ray Denenberg (Library of Congress),
Paul Denning (MITRE Corporation),
Frank DeRose (TIBCO Software, Inc.),
Colleen Evans (Progress Software),
James Falek (TIBCO Software, Inc.),
David Fallside (IBM),
Chris Ferris (Sun Microsystems),
Daniela Florescu (Propel),
Dietmar Gaertner (Software AG),
Rich Greenfield (Library of Congress),
Martin Gudgin (DevelopMentor),
Hugo Haas (W3C),
Marc Hadley (Sun Microsystems),
Mark Hale (Interwoven),
Randy Hall (Intel),
Gerd Hoelzing (SAP AG),
Oisin Hurley (IONA Technologies),
Yin-Leng Husband (Compaq),
John Ibbotson (IBM),
Ryuji Inoue (Matsushita Electric Industrial Co., Ltd.),
Scott Isaacson (Novell, Inc.),
Kazunori Iwasa (Fujitsu Software Corporation),
Murali Janakiraman (Rogue Wave),
Mario Jeckle (Daimler-Chrysler Research and Technology), 
Eric Jenkins (Engenia Software),
Mark Jones (AT&amp;T),
Anish Karmarkar (Oracle),
Jeffrey Kay (Engenia Software),
Richard Koo (Vitria Technology Inc.),
Jacek Kopecky (IDOOX s.r.o.),
Yves Lafon (W3C),
Tony Lee (Vitria Technology Inc.),
Michah Lerner (AT&amp;T),
Henry Lowe (OMG),
Richard Martin (Active Data Exchange),
Noah Mendelsohn (Lotus Development),
Jeff Mischkinsky (Oracle),
Nilo Mitra (Ericsson Research Canada),
Jean-Jacques Moreau (Canon),
Highland Mary Mountain (Intel),
Masahiko Narita (Fujitsu Software Corporation),
Mark Needleman (Data Research Associates),
Eric Newcomer (IONA Technologies),
Henrik Frystyk Nielsen (Microsoft Corporation),
Mark Nottingham (Akamai Technologies),
David Orchard (BEA Systems),
Kevin Perkins (Compaq),
Jags Ramnaryan (BEA Systems),
Andreas Riegg (Daimler-Chrysler Research and Technology),
Herve Ruellan (Canon),
Marwan Sabbouh (MITRE Corporation),
Shane Sesta (Active Data Exchange),
Miroslav Simek (IDOOX s.r.o.),
Simeon Simeonov (Allaire),
Nick Smilonich (Unisys),
Soumitro Tagore (Informix Software),
Lynne Thompson (Unisys),
Patrick Thompson (Rogue Wave),
Asir Vedamuthu (webMethods)
Ray Whitmer (Netscape),
Volker Wiechers (SAP AG),
Stuart Williams (Hewlett-Packard),
Amr Yassin (Philips Research)
and Jin Yu (Martsoft Corp.).</p>

      <p>Previous members were: 
Eric Fedok (Active Data Exchange), 
Susan Yee (Active Data Exchange), 
Dan Frantz (BEA Systems), 
Alex Ceponkus (Bowstreet), 
James Tauber (Bowstreet), 
Rekha Nagarajan (Calico Commerce), 
Mary Holstege (Calico Commerce), 
Krishna Sankar (Cisco Systems), 
David Burdett (Commerce One), 
Murray Maloney (Commerce One), 
Jay Kasi (Commerce One), 
Yan Xu (DataChannel), 
Brian Eisenberg (DataChannel), 
Mike Dierken (DataChannel), 
Michael Freeman (Engenia Software), 
Bjoern Heckel (Epicentric), 
Dean Moses (Epicentric), 
Julian Kumar (Epicentric), 
Miles Chaston (Epicentric), 
Alan Kropp (Epicentric), 
Scott Golubock (Epicentric), 
Michael Freeman (Engenia Software),
Jim Hughes (Fujitsu Limited), 
Dick Brooks (Group 8760), 
David Ezell (Hewlett Packard), 
Fransisco Cubera (IBM), 
David Orchard (Jamcracker), 
Alex Milowski (Lexica), 
Steve Hole (MessagingDirect Ltd.), 
John-Paul Sicotte (MessagingDirect Ltd.), 
Vilhelm Rosenqvist (NCR), 
Lew Shannon (NCR), 
Art Nevarez (Novell, Inc.), 
David Clay (Oracle), 
Jim Trezzo (Oracle), 
David Cleary (Progress Software), 
Andrew Eisenberg (Progress Software), 
Peter Lecuyer (Progress Software), 
Ed Mooney (Sun Microsystems), 
Mark Baker (Sun Microsystems), 
Anne Thomas Manes (Sun Microsystems), 
George Scott (Tradia Inc.), 
Erin Hoffmann (Tradia Inc.), 
Conleth O'Connell (Vignette), 
Waqar Sadiq (Vitria Technology Inc.), 
Randy Waldrop (WebMethods), 
Bill Anderson (Xerox), 
Tom Breuel (Xerox), 
Matthew MacKenzie (XMLGlobal Technologies), 
David Webber (XMLGlobal Technologies), 
John Evdemon (XMLSolutions)
and Kevin Mitchell (XMLSolutions).</p>

<p>The people who have contributed to discussions on
<loc href="mailto:xml-dist-app@w3.org">xml-dist-app@w3.org</loc>
are also gratefully acknowledged.</p>

    </inform-div1>

    <inform-div1 id="changelog">
      <head>Part 1 Change Log</head>

      <div2 id="soapspecchanges">
	<head>SOAP Specification Changes</head>

<table border="1">
  <tbody>
    <tr>
      <th>Date</th>
      <th>Author</th>
      <th>Description</th>
    </tr>
	    <tr>
	      <td>20020612</td>
	      <td>HFN</td>
	      <td>Removing change log :)</td>
	    </tr>
	    <tr>
	      <td>20020612</td>
	      <td>HFN</td>
	      <td>Removed diff markup</td>
	    </tr>
	    <tr>
	      <td>20020612</td>
	      <td>HFN</td>
	      <td>Updated namespace to "http://www.w3.org/2002/06/..."</td>
	    </tr>
	    <tr>
	      <td>20020605</td>
	      <td>MJH</td>
	      <td>Added 'only' to description of where encodingStyle can appear.</td>
	    </tr>
	    <tr>
	      <td>20020604</td>
	      <td>MJG</td>
	      <td>Fixed bug in description of [standalone] property</td>
	    </tr>
	    <tr>
	      <td>20020530</td>
	      <td>MJH</td>
	      <td>Put in changes resulting from review by Noah Mendelsohn.</td>
	    </tr>
	    <tr>
	      <td>20020529</td>
	      <td>MJH</td>
	      <td>Put in changes resulting from review by Stuart Williams.</td>
	    </tr>
	    <tr>
	      <td>20020527</td>
	      <td>MJH</td>
	      <td>Removed confusing use of 'optional'.</td>
	    </tr>
	    <tr>
	      <td>20020527</td>
	      <td>MJH</td>
	      <td>Added reference to SOAP part 0.</td>
	    </tr>
	    <tr>
	      <td>20020517</td>
	      <td>JJM</td>
	      <td>Fixed some typos.</td>
	    </tr>
	    <tr>
	      <td>20020517</td>
	      <td>MJH</td>
	      <td>Qualified all instances of block with header.</td>
	    </tr>
	    <tr>
	      <td>20020517</td>
	      <td>MJH</td>
	      <td>Removed lower-case 'may's.</td>
	    </tr>
	    <tr>
	      <td>20020517</td>
	      <td>MJH</td>
	      <td>Removed lower-case 'should's.</td>
	    </tr>
	    <tr>
	      <td>20020517</td>
	      <td>MJH</td>
	      <td>Removed lower-case 'must's.</td>
	    </tr>
	    <tr>
	      <td>20020516</td>
	      <td>MJH</td>
	      <td>Added pointer to media type draft to intro.</td>
	    </tr>
	    <tr>
	      <td>20020509</td>
	      <td>MJH</td>
	      <td>Added issue 194 resolution - encodingStyle.</td>
	    </tr>
	    <tr>
	      <td>20020509</td>
	      <td>MJG</td>
	      <td>Changed fault construct in example 7 back to SOAP 1.1 format</td>
	    </tr>
	    <tr>
	      <td>20020506</td>
	      <td>JJM</td>
	      <td>Removed double-spaces.</td>
	    </tr>
	    <tr>
	      <td>20020506</td>
	      <td>JJM</td>
	      <td>Fixed typos.</td>
	    </tr>
	    <tr>
	      <td>20020503</td>
	      <td>MJH</td>
	      <td>Added table cross references.</td>
	    </tr>
	    <tr>
	      <td>20020503</td>
	      <td>JJM</td>
	      <td>Added back streaming stuff, after CVS hick-up.</td>
	    </tr>
	    <tr>
	      <td>20020502</td>
	      <td>MJH</td>
	      <td>Decapitalised node and messaging framework in common with part 2.</td>
	    </tr>
	    <tr>
	      <td>20020502</td>
	      <td>JJM</td>
	      <td>Readability edits for the Abstract.</td>
	    </tr>
	    <tr>
	      <td>20020502</td>
	      <td>JJM</td>
	      <td>Added back "This is the case, for example,
          when a block has survived erronously due to a routing or
          targeting error at a preceeding intermediairy." due
          to popular demand.</td>
	    </tr>
	    <tr>
	      <td>20020502</td>
	      <td>JJM</td>
	      <td>Incorporated the readability comments on appendix A.</td>
	    </tr>
	    <tr>
	      <td>20020502</td>
	      <td>JJM</td>
	      <td>Incorporated the readability comments on section 7 and 6.</td>
	    </tr>
	    <tr>
	      <td>20020430</td>
	      <td>JJM</td>
	      <td>Incorporated the readability comments on section 5 and 6.</td>
	    </tr>
	    <tr>
	      <td>20020430</td>
	      <td>JJM</td>
	      <td>Incorporated the readability comments on section 1, 2, 3 and 4.</td>
	    </tr>
	    <tr>
	      <td>20020426</td>
	      <td>JJM</td>
	      <td>Updated member list.</td>
	    </tr>
	    <tr>
	      <td>20020426</td>
	      <td>MJH</td>
	      <td>Removed SOAPAction mentions.</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>MJH</td>
	      <td>Added issue 192 resolution.</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>MJG</td>
	      <td>Qualified children of fault, changed local names.</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>MJG</td>
	      <td>Added xspecref to xml:lang</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>JJM</td>
	      <td>Added resolution to issue #201.</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>JJM</td>
	      <td>Added resolution to issue #199.</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>JJM</td>
	      <td>Added resolution to issue #202.</td>
	    </tr>
	    <tr>
	      <td>20020425</td>
	      <td>JJM</td>
	      <td>Added resolution to issue #203.</td>
	    </tr>
	    <tr>
	      <td>20020412</td>
	      <td>HFN</td>
	      <td>Added reference from section <specref ref="procsoapmsgs"/> to <specref ref="relaysoapmsg"/></td>
	    </tr>
	    <tr>
	      <td>20020411</td>
	      <td>MJH</td>
	      <td>Removed pt2 TOC from intro and cleaned up abstract.</td>
	    </tr>
	    <tr>
	      <td>20020410</td>
	      <td>MJG</td>
	      <td>Added ids to several divs.</td>
	    </tr>
	    <tr>
	      <td>20020410</td>
	      <td>MJH</td>
	      <td>Made intro and abstract consistent with pt 2.</td>
	    </tr>
	    <tr>
	      <td>20020409</td>
	      <td>MJH</td>
	      <td>Added issue 187 resolution.</td>
	    </tr>
	    <tr>
	      <td>20020409</td>
	      <td>JJM</td>
	      <td>Implemented Noah's comment on the resolution of issue #190 (MAY, but need not).</td>
	    </tr>
	    <tr>
	      <td>20020408</td>
	      <td>JJM</td>
	      <td>Fixed an incorrect reference to SOAP MEP.</td>
	    </tr>
	    <tr>
	      <td>20020408</td>
	      <td>JJM</td>
	      <td>Wordsmithing from Chris on a paragraph from Noah amended by JJM.</td>
	    </tr>
	    <tr>
	      <td>20020408</td>
	      <td>MJG</td>
	      <td>Upgraded section 5.4.1.2.1 to section 5.4.1.3 (
	      formatting problem)</td>
	    </tr>
	    <tr>
	      <td>20020408</td>
	      <td>JJM</td>
	      <td>Downgraded part of section 3 to section 3.1.</td>
	    </tr>
	    <tr>
	      <td>20020405</td>
	      <td>MJH</td>
	      <td>Incorporated most of Noah's most significant comments.</td>
	    </tr>
	    <tr>
	      <td>20020405</td>
	      <td>MJG</td>
	      <td>Updated description of faultcode entries (5.4.1) to
	      state that the element children must appear in order (now
	      matches 5.4.1.2</td>
	    </tr>
	    <tr>
	      <td>20020405</td>
	      <td>MJG</td>
	      <td>Updated description of detail entries (5.4.5.1) to state that element 