<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.1//EN" "http://www.w3.org/XML/1998/06/xmlspec-v21.dtd" [
	<!ENTITY % entities SYSTEM "entitiesedcopy.dtd">
<!--
	<!ENTITY % entities SYSTEM "entitiestrcopy.dtd">
-->
	%entities;
	<!ENTITY status "Editors' copy $Date: 2002/07/16 21:46:02 $">
]>
<?xml-stylesheet type="text/xsl" href="http://www.w3.org/2002/ws/arch/2/xmlspec.xsl"?>
<spec w3c-doctype="wd" role="editors-copy">
	<!-- <spec w3c-doctype="wd"> -->
	<header>
		<title>Web Services Architecture Usage Scenarios</title>
		<w3c-designation>&w3c-designation-scenarios;</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-scenarios;">&dated-scenarios;</loc>
			(<loc
			xmlns:xlink="http://www.w3.org/1999/xlink"
			xlink:type="simple" xlink:show="replace"
			xlink:actuate="onRequest"
			href="&dated-scenarios;.xml">XML version</loc>
      and
			<loc
			xmlns:xlink="http://www.w3.org/1999/xlink"
			xlink:type="simple" xlink:show="replace"
			xlink:actuate="onRequest"
			href="&dated-scenarios;.html">HTML version</loc>)
		</publoc>
		<prevlocs>
			<loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="&previous-scenarios;">&previous-scenarios;</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-scenarios;/">
	http://www.w3.org/TR/&shortname-scenarios;/</loc>
		</latestloc>
		<authlist>
			<author>
				<name>Hugo Haas</name>
				<affiliation>W3C</affiliation>
			</author>
			<author>
				<name>David Orchard</name>
				<affiliation>BEA Systems</affiliation>
			</author>
		</authlist>
		<abstract>
      <p>This document describes the Web Service Architecture Usage
      Scenarios.</p>
      <p>It is a collection of usage scenarios and use cases which
      illustrate the use of Web services, and which are
      used to generate requirements for the Web services architecture,
      as well as to evaluate existing technologies.</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 a public draft of a document that the Web Services Architecture Working Group intends to eventually publish as a Working Draft. </p>
      <p>This version is an early snapshot of the document. The
	next version that the Working Group will publish will be more complete
	and polished.</p>
			<p>For a detailed list of changes since the
	last publication of this document, refer to <specref
      ref="changelog"/>. A <loc
      xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
      href="http://www.w3.org/2002/ws/arch/2/issues/wsa-issues.html"
      xlink:show="replace" xlink:actuate="onRequest">list of open
      issues against this document</loc>
  is maintained by the Working Group.</p>
			<p>Comments on this document should be sent to <loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" href="mailto:www-wsa-comments@w3.org" xlink:show="replace" xlink:actuate="onRequest">www-wsa-comments@w3.org</loc>
   	(<loc xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" href="http://lists.w3.org/Archives/Public/www-wsa-comments/" xlink:show="replace" xlink:actuate="onRequest">public
archive</loc>). It is inappropriate to send discussion emails to this address.</p>
      <p>Discussion of this document takes place on the public <loc
      xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
      href="mailto:www-ws-arch@w3.org" xlink:show="replace"
      xlink:actuate="onRequest">www-ws-arch@w3.org</loc> mailing list
      (<loc xmlns:xlink="http://www.w3.org/1999/xlink"
      xlink:type="simple"
      href="http://lists.w3.org/Archives/Public/www-ws-arch/"
      xlink:show="replace" xlink:actuate="onRequest">public
      archives</loc>) per the email communication rules in the Web
      Services Architecture  <loc
      xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
      href="http://www.w3.org/2002/01/ws-arch-charter"
      xlink:show="replace" xlink:actuate="onRequest">Working Group
      Charter</loc>.
			</p>
		</status>
		<langusage>
			<language id="en">English</language>
		</langusage>
		<revisiondesc>
			<p>Last Modified: $Date: 2002/07/16 21:46:02 $</p>
		</revisiondesc>
	</header>
	<body>
		<div1 id="intro">
			<head>Introduction</head>
      <p>This document specifies a variety of Web services usage
      scenarios and use cases.</p>
      <p>The following convention has been adopted for numbering the
      usage scenarios: 
			<olist>
					<item>
	    <p>S0**: Message exchange patterns, i.e. RPC, asynchrony,
	    security, reliability, conversations.</p>
					</item>
					<item>
	    <p>S2**: Event based message exchange patterns.</p>
					</item>
					<item>
	    <p>S3**: System and other messages.</p>
					</item>
					<item>
	    <p>S5**: Service description above and beyond those in
	    less than 5** numbers.</p>
					</item>
					<item>
	    <p>S6**: Discovery.</p>
					</item>
				</olist>
			</p>
		</div1>
		<div1 id="description">
			<head>Usage Scenarios</head>
			<div2 id="S001">
				<head>S001 Fire-and-forget to single receiver</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A sender wishes to send an unacknowledged message to a single receiver 
          (e.g. send a stock price update every 15 minutes).
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig1" source="soap-usage-fig1.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 1 Fire-and-forget to single receiver"/>
					<p>
          A fire-and-forget feature in scenario S1 requires a mechanism to send a 
          message to a single SOAP Receiver and is illustrated in Figure 1. The SOAP 
          Sender does not require any status information that the message has been 
          sent to or received by the recipient. The underlying transport protocol 
          may implement a response mechanism, but status on whether the message was 
          successfully sent or otherwise is not returned to the sending SOAP Processor. 
          </p>
					<example>
						<head>Fire-and-forget SOAP message</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:Body&gt;        
    &lt;r:StockPriceUpdate xmlns:r=&quot;http://example.org/2001/06/quotes&quot;&gt;
      &lt;r:Symbol&gt;BigCo&lt;/r:Symbol&gt;
      &lt;r:Price&gt;34.5&lt;/r:Price&gt;
    &lt;/r:StockPriceUpdate&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
					</example>
				</div3>
			</div2>
			<div2 id="S002">
				<head>S002 Fire-and-forget to multiple receivers</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A sender wishes to send unacknowledged messages to a set of receivers 
          (e.g. send a stock price update every 15 minutes).
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig2" source="soap-usage-fig2.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 2 Fire-and-forget to multiple receivers "/>
					<p>
          Scenario S2 extends S1 to implement a fire-and-forget feature to multiple 
          SOAP Receivers and is illustrated in Figure 2. This requires a mechanism 
          to deliver the same message to multiple SOAP Receivers. The delivery of 
          the messages could be implemented using multicast distribution technology 
          if the underlying transport layer supports this. An alternative 
          implementation may use repeated applications of scenario S1 with a 
          distribution list of intended recipients.
          </p>
				</div3>
			</div2>
			<div2 id="S003">
				<head>S003 Request/Response</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          Two parties wish to conduct electronic business by the exchange of business 
          documents. The sending party packages one or more documents into a request 
          message, which is then sent to the receiving party. The receiving party then 
          processes the message contents and responds to the sending party. Examples of 
          the sending party's documents may be purchase order requests, manufacturing 
          information and patient healthcare information. Examples of the receiving 
          party's responses may include order confirmations, change control information 
          and contractual acknowledgements.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          Scenario S3 requires a request/response message feature. A request 
          containing some business document is sent by a SOAP Sender to a SOAP Receiver 
          where some business application is invoked. The business application 
          processes the request and generates a response, which is returned to the 
          SOAP Sender that originated the request. Two alternative solutions are 
          described which depend upon the characteristics of the underlying transport 
          layer. In either case, the SOAP Sender is informed of the status (successful 
          or otherwise) of the request message delivery.
          </p>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig3" source="soap-usage-fig3.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 3 Request/Response using underlying transport"/>
					<p>
          If the underlying transport protocol supports the correlation of a request 
          and its matching response directly, then the solution illustrated in Figure 3 
          may be appropriate. An example of such an underlying transport protocol would 
          be a synchronous HTTP POST. This implementation would make use of the 
          transport binding proposed in other XML Protocol WG documents. The business 
          document sent as a request by the SOAP Sender would be inserted as the 
          payload of the request message. Following the receipt of the request, the 
          processing application would generate a document which would be returned 
          as the payload of the response message with appropriate status codes. If for 
          whatever reason, the request message was not received or processed by the 
          intended business application, suitable status messages would be generated 
          by the underlying transport layer and reported to the SOAP Sender.
          </p>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig4" source="soap-usage-fig4.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 4 Request/Response using SOAP headers"/>
					<p>
          If the underlying transport protocol does not support a request/response 
          model, then the configuration shown in Figure 4 may be appropriate. Examples 
          of such an underlying protocol may include unidirectional queuing middleware. 
          In this case, message identification and correlation is provided by SOAP 
          Headers. In the request SOAP message, a Message Identifier Handler is 
          responsible for generating a unique message identifier and inserting it into 
          a SOAP Header. This forms part of the SOAP request message and is sent from 
          SOAP Application 1 to the receiving SOAP Application 2. The request message 
          is processed by a business application and a response message is assembled. 
          This includes a SOAP Header built by a Message Correlation Handler which 
          links the response message to its associated request.
          </p>
					<example>
						<head>SOAP request message containing a message identifier</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:MessageId&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
      ........
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
					</example>
					<example>
						<head>SOAP response message containing correlation to original request</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-567b-2891-b623-9dke28yod7m9&lt;/n:MessageId&gt;
      &lt;n:ResponseTo&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:ResponseTo&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
      ........
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
					</example>
				</div3>
			</div2>
			<div2 id="S004">
				<head>S004 Remote Procedure Call (RPC)</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          The sender invokes the service by passing parameters that are serialized 
          into a message for transmission to the receiving server.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          Scenario S4 differs from scenario S3 in that the request message consists of 
          a set of serialized parameters used to invoke some remote procedure which 
          responds with a set of results. This is a different programming model to the 
          document exchange one illustrated by scenario S3. Scenario S4 requires a 
          request/response mechanism as in S3, with the parameter and result 
          serialization needed for the RPC programming model form the SOAP Body 
          element. 
          </p>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig5" source="soap-usage-fig5.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 5 RPC using underlying transport"/>
					<p>
          Figure 5 illustrates an RPC invocation over an underlying transport protocol 
          such as HTTP that supports request/response. In this case, no additional 
          headers are needed to correlate the request and response messages. Example 
          request and response SOAP messages are:
          </p>
					<example>
						<head>SOAP RPC request message</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:Body&gt;
    &lt;r:GetLastTradePrice env:encodingStyle=&quot;http://www.w3.org/2002/06/soap-encoding&quot;
                            xmlns:r=&quot;http://example.org/2001/06/quotes&quot;&gt;
      &lt;r:Symbol&gt;DEF&lt;/r:Symbol&gt;
    &lt;/r:GetLastTradePrice&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<example>
						<head>SOAP RPC response message</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:Body&gt;
    &lt;r:GetLastTradePriceResponse env:encodingStyle=&quot;http://www.w3.org/2002/06/soap-encoding&quot;
                            xmlns:r=&quot;http://example.org/2001/06/quotes&quot;
                            xmlns:rpc=&quot;http://www.w3.org/2002/06/soap-rpc&quot;&gt;
      &lt;rpc:Result&gt;34.5&lt;/rpc:Result&gt;
    &lt;/r:GetLastTradePriceResponse&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig6" source="soap-usage-fig6.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 6 RPC using SOAP headers"/>
					<p>
          In Figure 6, the underlying transport protocol does not support 
          request/response directly. The RPC request and response elements again form 
          the Body of the SOAP messages. Correlation of the request and response is 
          provided by the Message Identifier and Message Correlation handlers as 
          described in scenario S3.
          </p>
					<example>
						<head>SOAP RPC request message with message identification</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:MessageId&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    &lt;r:GetLastTradePrice env:encodingStyle=&quot;http://www.w3.org/2002/06/soap-encoding&quot;
                            xmlns:r=&quot;http://example.org/2001/06/quotes&quot;&gt;
      &lt;r:Symbol&gt;DEF&lt;/r:Symbol&gt;
    &lt;/r:GetLastTradePrice&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<example>
						<head>SOAP RPC response message containing correlation to original request</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-567b-2891-b623-9dke28yod7m9&lt;/n:MessageId&gt;
      &lt;n:ResponseTo&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:ResponseTo&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;        
    &lt;r:GetLastTradePriceResponse env:encodingStyle=&quot;http://www.w3.org/2002/06/soap-encoding&quot;
                                    xmlns:r=&quot;http://example.org/2001/06/quotes&quot;
                                    xmlns:rpc=&quot;http://www.w3.org/2002/06/soap-rpc&quot;&gt;
      &lt;rpc:Result&gt;34.5&lt;/rpc:Result&gt;
    &lt;/r:GetLastTradePriceResponse&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
			</div2>
			<div2 id="S006">
				<head>S006 Multiple Faults </head>
				<div3>
					<head>Scenario Definition</head>
					<p>Declaration of a method that raises multiple faults</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>A web service interface method can fail due to several reasons. The faults raised by the method may be semantically different from each other and further more, some of the faults may be standard faults defined for a group of web services. For example, in an accounting system, there may be a general "creation fault" defined for indicating the failure such as out of resources or PO already exists. The creation of PO could also fail because the data provided to initialize the PO is invalid. The web service method "createPO" might then fail because of any of the reasons described above and may want to raise separate faults depending on the reason for failure.
</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S007">
				<head>S007 Multiple asynchronous responses</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          An application requests some information from a server, which is returned at a 
          later time in multiple responses. This can be because the requested information 
          was not available all at once (e.g., distributed web searches).
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig16" source="soap-usage-fig16.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 16 Multiple asynchronous responses"/>
					<p>
          Scenario S20 is an extension of scenario DS17 - asynchronous messaging. 
          Instead of a single response message, more than one can be sent by the 
          receiving application to the originator. A simple architecture would be 
          the same as DS17 with multiple responses received by the originating 
          application and correlated to the original request by a Message Correlation 
          Handler. Figure 15 illustrates an extension to this using a Sequence Handler. 
          The Sequence Handler ensures that a unique sequence number is added to each 
          response message. If the responding application knows in advance that there 
          will be a fixed number of multiple responses, then the Sequence Handler may 
          use an N of M format to indicate how many response messages are to be expected.
          </p>
					<example>
						<head>SOAP request message containing a message identifier</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:MessageId&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    ........        
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<example>
						<head>First SOAP response message containing sequencing and correlation to original request</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;!-- MessageId will be unique for each response message --&gt;
      &lt;!-- ResponseTo will be constant for each response message in the sequence--&gt;
      &lt;n:MessageId&gt;uuid:09233523-567b-2891-b623-9dke28yod7m9&lt;/n:MessageId&gt;
      &lt;n:ResponseTo&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:ResponseTo&gt;
    &lt;/n:MsgHeader&gt;
    &lt;s:Sequence xmlns:s=&quot;http://example.org/sequence&quot;&gt;
      &lt;s:SequenceNumber&gt;1&lt;/s:SequenceNumber&gt;
      &lt;s:TotalInSequence&gt;5&lt;/s:TotalInSequence&gt;
    &lt;/s:Sequence&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    ........        
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<example>
						<head>Final SOAP response message containing sequencing and correlation to original request</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;!-- MessageId will be unique for each response message --&gt;
      &lt;!-- ResponseTo will be constant for each response message in the sequence--&gt;
      &lt;n:MessageId&gt;uuid:40195729-sj20-pso3-1092-p20dj28rk104&lt;/n:MessageId&gt;
      &lt;n:ResponseTo&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:ResponseTo&gt;
    &lt;/n:MsgHeader&gt;
    &lt;s:Sequence xmlns:s=&quot;http://example.org/sequence&quot;&gt;
      &lt;s:SequenceNumber&gt;5&lt;/s:SequenceNumber&gt;
      &lt;s:TotalInSequence&gt;5&lt;/s:TotalInSequence&gt;
    &lt;/s:Sequence&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    ........        
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
			</div2>
			<div2 id="S010">
				<head>S010 Request with acknowledgement</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A sender wishes to reliably exchange data with a receiver. It wishes to be 
          notified of the status of the data delivery to the receiver. The status may 
          take the form of:
          </p>
					<olist>
						<item>
							<p>The data has been successfully delivered to the receiver, or</p>
						</item>
						<item>
							<p>Some failure has occurred which prevents the successful delivery to the receiver.</p>
						</item>
					</olist>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig7" source="soap-usage-fig7.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 7 Request with acknowledgement"/>
					<p>
          Figure 7 illustrates a request/response scenario with the SOAP Sender 
          requesting status information from the matching SOAP Receiver. This status 
          may provide delivery information to the sender in addition to other business 
          related responses that the receiving application may generate. Figure 7 
          assumes that the underlying transport protocol supports the request/response 
          exchange model. A Status Handler is registered with the SOAP Sender and 
          configured to request the status information. A matching handler on the SOAP 
          Receiver generates the requested status information and places it in the 
          response message which is then returned to the originating SOAP Sender.
          </p>
					<p>
          In the example SOAP messages below, a StatusRequest header element includes 
          an identifier for the message being sent. The inclusion of the StatusRequest 
          header results in the receiving SOAP processor including a StatusResponse 
          Header in the response. This includes information about the delivered message 
          including an enumerated status and timestamp.
          </p>
					<example>
						<head>SOAP request message with status request header</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;n:StatusRequest xmlns:n=&quot;http://example.org/status&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:MessageId&gt;
    &lt;/n:StatusRequest&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    -----
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<example>
						<head>SOAP response message containing delivery status for request</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;n:StatusResponse xmlns:n=&quot;http://example.org/status&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-567b-2891-b623-9dke28yod7m9&lt;/n:MessageId&gt;
      &lt;n:MessageStatus&gt;DELIVERED&lt;/n:MessageStatus&gt;
      &lt;n:Timestamp&gt;2001-03-09T12:22:30Z&lt;/n:Timestamp&gt;
    &lt;/n:StatusResponse&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;        
    -----
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>A Sender shall be able to determine from a receiver message whether a
message has been reliably delivered, as specified by the receiver.</p>
								</item>
								<item>
									<p>A sender and receiver shall be able to engage in message exchange patterns
that exhibit best-effort, at least once, at most once, ordered qualities of
service.  </p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p>specifying quality of service of the sender/receiver software,
particularly the durability of the message on a particular side.  Justification: QoS would be a static definition, not part of a reliability ACK Protocol.  It seems in appropriate to specify a software quality in a wire-protocol.</p>
								</item>
								<item>
									<p>Sender over-riding receiver default QoS (i.e. TCP's ack before enqueue)
</p>
								</item>
								<item>
									<p>Specifying time to live of messages in message itself.  This is more of a WSD definition.  It would complicate the protocol somewhat, i.e. what happens if the TTL is too high, or higher than a WSD definition.  the 80/20 point seems lower than this</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>ebXML Messaging Service, Proprietary Messaging Systems, Java Messaging Service</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>High priority, medium effort.  Justification: specs like ebXML MS, JMS, etc. have reliability specified in under 30 pages.
						</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S030">
				<head>S030 Third party intermediary</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A blind auction marketplace serves as a broker between buyers and suppliers. 
          Buyers submit their requirements to the marketplace hub, which broadcasts 
          this information to multiple suppliers. Suppliers respond to the marketplace 
          hub where the information is logged and ultimately delivered to the buyer.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig9" source="soap-usage-fig9.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 9 Marketplace intermediary"/>
					<p>
          Figure 9 illustrates an infrastructure where SOAP based messaging is used to 
          support a third party marketplace acting as an intermediary between buyers and 
          sellers. The market place business model involves the recruitment of multiple 
          suppliers for goods and services. Buyers may then connect to the marketplace 
          and take advantage of the services they provide. The marketplace acts as a 
          channel for the commercial transactions between a buyer and its chosen seller. 
          A marketplace can exist to serve both B2B and B2C transactions.
          </p>
					<p>
          In scenario S7, the marketplace acts as a blind intermediary. A buyer connects 
          to the marketplace and places an order for items or services it requires. The 
          buyer may be as simple as a browser or as complex as a procurement application. 
          Once the marketplace has received the buyer's order, it contacts an appropriate
          set of sellers who then provide competitive bids against the order. The 
          marketplace can then select the most attractive bid and connect the winning 
          seller to the buyer. A purchasing process is then initiated with the 
          marketplace acting as an intermediary in the transaction.
          </p>
					<p>
          From a SOAP messaging point of view, the scenario illustrated in Figure 9 
          consists of a set of request/response messages between the buyer and the 
          marketplace resulting in the buyer's order being registered. Once received, 
          the marketplace then contacts its set of selected sellers again by a set 
          of request/response messages. Design decisions made during the implementation 
          of the marketplace software will determine whether supplier messages are sent 
          from a single SOAP Sender to multiple SOAP Receivers, one at each of the 
          seller's sites. Alternatively, a SOAP Sender could be instantiated for each 
          supplier and a physical 1:1 relationship established. Prior agreements on 
          message qualities such as reliability, security and structure would be put in 
          place between the marketplace and its sellers. These qualities would define 
          what additional SOAP Handlers were needed for the message exchange patterns 
          between the marketplace and sellers.
          </p>
				</div3>
			</div2>
			<div2 id="S031">
				<head>S031 Communication via multiple intermediaries</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          An intermediary forwards a message to the ultimate receiver on behalf of an 
          initial sender. The initial sender wishes to enforce the non-repudiation 
          property of the route. Any intermediate message service handler that appends 
          a routing message must log the routing header information. Signed routing 
          headers and the message readers must be logged at the message handler which 
          passes the message to the ultimate receiver to provide the evidence of 
          non-repudiation.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig12" source="soap-usage-fig12.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 12 Routing and logging through intermediaries"/>
					<p>
          Scenario S11 requires an audit chain to be created between a SOAP Sender that 
          originates the message and the ultimate SOAP Receiver including any SOAP 
          Intermediaries that the message passes through. Figure 12 illustrates a 
          possible implementation of this scenario. Each SOAP Node on the message 
          path has access to a persistent store (typically a database) that can be 
          used to store an audit record for each message. A Routing Logging Handler 
          on each SOAP Node has the responsibility of logging each message in the 
          persistent store. A further responsibility of the handler is to sign the 
          message routing header before passing the message on to the next SOAP Node 
          in the path. Support for certificates and other artifacts required for signing 
          a message are not shown.
          </p>
				</div3>
			</div2>
			<div2 id="S032">
				<head>S032 Caching</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          Some applications may wish to make caching possible for latency, bandwidth 
          use or other gains in efficiency. To enable this, it should be possible to 
          assign cacheability in a variety of circumstances. For example, "read" 
          caching might be used to store messages at intermediaries for reuse in the 
          response phase of the request/response message exchange pattern. Such caching 
          might be on the scope of an entire message, a SOAP module, or scoped to 
          individual SOAP module elements.
          </p>
					<p>
          Similarly, &quot;write&quot; caching may be useful in situations when a 
          request message in a request/response message exchange pattern (as well as 
          similar messages in other message exchange patterns) does not need to be 
          immediately forwarded or responded to. Such cacheability might be scoped by 
          different methods, as outlined above.
          </p>
					<p>
          Cacheability scoped by different elements might be associated by an attribute 
          to the target element, through use of XML Query or XPath to describe the 
          target elements in a header, or implied by the document schema, for example.
          </p>
					<p>
          Cacheability mechanisms applied to messages, bodies or elements might include 
          time-to-live (delta time), expiry (absolute time), entity validation, temporal 
          validation, subscription to invalidation services, and object update/purge.
          </p>
					<p>
          Finally, some applications may be capable of describing the dependencies and 
          relationships between message elements. For example, a response element may 
          be applicable to a wide range of requests; it would be beneficial to describe 
          this element's relationship with request elements, so that it may satisfy a 
          wide range of requests in an economical fashion. Similarly, the presence of a 
          particular element may be a trigger for a cacheability mechanism to be applied 
          to another element, such as validation or invalidation.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          Caching is frequently used as an optimization in distributed systems. It can 
          be used to avoid re-doing computations or complex database access when the 
          results remain valid for an extended period of time. In this case, subsequent 
          requests for the same information can be served with the cached version rather 
          than repeat the processing with the associated overheads. Another use of 
          caching is in the transmission of data where copies may be held at leaf 
          servers for local service provision rather than repeatedly access a central 
          information repository. This has the combined effect of providing faster 
          access to the information, reducing network bandwidth requirements and 
          reducing the workload on a central server. Caching may be provided as part 
          of an underlying transport infrastructure but in the case of this scenario, 
          it is assumed that the caching is independent of any underlying transport.
          </p>
					<p>
          An example of this kind of scenario is the caching of the response to a 
          request in situations where a subsequent request can be safely answered 
          with the same result. This example coincides with scenario S809 (Caching 
          with expiry) where a catalog is updated at 8am each morning. Once the catalog 
          has been updated, all price queries against it are valid until 8am the 
          following day. If a price query request is repeated against the same item, 
          then a cached response can be returned to the SOAP Sender otherwise the 
          request is forwarded to the catalog server and its response is cached. All 
          entries in the cache are purged at the time of the updated catalog being 
          available. Figure 18 illustrates a possible architecture.
          </p>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig18" source="soap-usage-fig18.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 18 Result Caching"/>
					<p>
          SOAP Application 1 initiates a request for catalog price information 
          illustrated in the following example.
          </p>
					<example>
						<head>SOAP request message for catalog price information</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:Body&gt;
    &lt;c:CatalogPriceRequest xmlns:c=&quot;http://example.org/2001/06/catalog&quot;&gt;
      &lt;c:PartNumber&gt;ABC-1234&lt;/c:PartNumber&gt;
    &lt;/c:CatalogPriceRequest&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          The caching intermediary SOAP Application 2 is unable to fulfill the request 
          from its local store so it forward the request which ultimately arrives at 
          the catalog server SOAP Application 3. The catalog server process the request 
          and assembles a response message containing the requested price information. 
          An additional SOAP Header is placed in the response to control any caches that 
          may exist in the return path. The CacheControl Header contains a CacheKey 
          which allows matching of future requests to the cached response together with 
          an Expires element that sets the time the local copy must be purged. This 
          response is returned via the caching intermediary.
          </p>
					<example>
						<head>SOAP response with caching header received by intermediary</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;ca:CacheControl xmlns:ca=&quot;http://example.org/2001/06/cache&quot;&gt;
      &lt;ca:CacheKey&gt;ABC-1234&lt;/ca:CacheKey&gt;
      &lt;ca:Expires&gt;2001-03-09T08:00:00Z&lt;/ca:Expires&gt;
    &lt;/ca:CacheControl&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    &lt;c:CatalogPriceResponse xmlns:c=&quot;http://example.org/2001/06/catalog&quot;&gt;
      &lt;c:PartNumber&gt;ABC-1234&lt;/c:PartNumber&gt;
      &lt;c:PartPrice c:currency=&quot;USD&quot;&gt;120.37&lt;/c:PartPrice&gt;
    &lt;/c:CatalogPriceResponse&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          At the caching intermediary, the CacheControl header information is used to 
          make a local copy of the response message, keyed by the CacheKey. The copy 
          will be purged at the time specified by the Expires element. The CacheControl 
          header element is removed by the intermediary and  the catalog price 
          information is returned to the original sender. The request/response path for 
          this message is the complete roundtrip between the original SOAP Sender and 
          SOAP Receiver and is shown by <emph>Message Path 1</emph> in Figure 18.
          </p>
					<example>
						<head>SOAP response with received by original Sender</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:Body&gt;
    &lt;c:CatalogPriceResponse xmlns:c=&quot;http://example.org/2001/06/catalog&quot;&gt;
      &lt;c:PartNumber&gt;ABC-1234&lt;/c:PartNumber&gt;
      &lt;c:PartPrice c:currency=&quot;USD&quot;&gt;120.37&lt;/c:PartPrice&gt;
    &lt;/c:CatalogPriceResponse&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          Since there is now a local copy of the price information for item ABC-1234 
          in the intermediary cache, subsequent requests for price information can be 
          fulfilled by the intermediary. This is the shorter request/response path 
          <emph>Message Path 2</emph>.
          </p>
				</div3>
			</div2>
			<div2 id="S035">
				<head>S035 Routing</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A developer wishes to force an explicit message path through certain 
          intermediaries - for instance, he might use an anonymizing intermediary 
          to make a call to a specified remote service without allowing the target 
          service to track the identity/IP of the caller. In this case, the 
          intermediary is responsible for calling the target service and returning 
          the results to the caller, using its own authentication credentials if 
          any are required by the target service.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          This scenario has been addressed in detail by the WS-Routing <bibref ref="WSRP"/> 
          (formerly SOAP-RP) specification.
          </p>
				</div3>
			</div2>
			<div2 id="S036">
				<head>S036 Tracking</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A service provider wishes to track incoming messages to see exactly which processing 
          intermediaries have touched it by the time it arrives at its destination. It 
          therefore requires a tracking extension to be included by all clients, and by 
          any processing intermediaries along the message paths from the clients to the server.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig19" source="soap-usage-fig19.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 19 Message Tracking"/>
					<p>
          Scenario S805 describes a routing requirement which is addressed in detail by the 
          WS-Routing <bibref ref="WSRP"/> (formerly SOAP-RP) specification. This describes how a message 
          may be rerouted through some messaging infrastructure. Once the message has arrived 
          at its ultimate receiver, the route the message has taken may be required for 
          auditing purposes. A track of the message path may be created by adding a tracking 
          header to the message in addition to any routing information.
          </p>
					<p>
          This is illustrated in the following example. A routing header has been added to 
          the message in accordance with WS-Routing <bibref ref="WSRP"/>. A TrackingHeader is used to 
          maintain a list of Intermediary names and associated Timestamp elements. As the 
          message passes through each intermediary, a Tracking Handler appends a Via element 
          to the TrackingHeader. The Via element contains the name of the intermediary 
          together with the date/time the message arrived or was forwarded by the intermediary. 
          The list of Via elements therefore forms the audit trail for the message.
          </p>
					<example>
						<head>SOAP request with routing and tracking headers</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;t:TrackingHeader xmlns:t=&quot;http://example.org/2001/06/tracking&quot;&gt;
      &lt;t:Via&gt;
        &lt;t:Intermediary&gt;soap://A.example.com/some/endpoint&lt;/t:Intermediary&gt;
        &lt;t:Timestamp&gt;2001-03-09T08:00:00Z&lt;/t:Timestamp&gt;
      &lt;/t:Via&gt;
      &lt;t:Via&gt;
        &lt;t:Intermediary&gt;soap://B.example.com&lt;/t:Intermediary&gt;
        &lt;t:Timestamp&gt;2001-03-09T08:01:00Z&lt;/t:Timestamp&gt;
      &lt;/t:Via&gt;
      &lt;t:Via&gt;
        &lt;t:Intermediary&gt;soap://C.example.com&lt;/t:Intermediary&gt;
        &lt;t:Timestamp&gt;2001-03-09T08:02:00Z&lt;/t:Timestamp&gt;
      &lt;/t:Via&gt;
      &lt;t:Via&gt;
        &lt;t:Intermediary&gt;soap://D.example.com/some/endpoint&lt;/t:Intermediary&gt;
        &lt;t:Timestamp&gt;2001-03-09T08:03:00Z&lt;/t:Timestamp&gt;
      &lt;/t:Via&gt;
      &lt;/t:TrackingHeader&gt;
      &lt;wsrp:path xmlns:wsrp=&quot;http://schemas.xmlsoap.org/rp&quot;&gt;
        &lt;wsrp:action&gt;http://www.im.org/chat&lt;/wsrp:action&gt;
        &lt;wsrp:to&gt;soap://D.example.com/some/endpoint&lt;/wsrp:to&gt;
        &lt;wsrp:fwd&gt;
          &lt;wsrp:via&gt;soap://B.example.com&lt;/wsrp:via&gt;
          &lt;wsrp:via&gt;soap://C.example.com&lt;/wsrp:via&gt;
        &lt;/wsrp:fwd&gt;
        &lt;wsrp:from&gt;soap://A.example.com/some/endpoint&lt;/wsrp:from&gt;
        &lt;wsrp:id&gt;uuid:84b9f5d0-33fb-4a81-b02b-5b760641c1d6&lt;/wsrp:id&gt;
      &lt;/wsrp:path&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    .....
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
			</div2>
			<div2 id="S037">
				<head>S037 Caching with expiration</head>
				<div3>
					<head>Scenario Definition</head>
					<p>BizCo updates their online price catalog every morning at 8AM. 
          Therefore, when remote clients access their SOAP inventory service, 
          clients and intermediaries may cache the results of any price queries 
          until 8AM the next day.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>See description for DS24.
          </p>
				</div3>
			</div2>
			<div2 id="S040">
				<head>S040 Conversational message exchange</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          Two partners are engaged in a long-running process, which involves multiple 
          message exchanges. Examples of such processes may be complex supply chain 
          management, dynamic manufacturing scheduling or information retrieval. There 
          may be multiple instances of the same process in progress between the same 
          two partners.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig10" source="soap-usage-fig10.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 10 Conversational message exchange"/>
					<p>
          Interactions between business partners are usually more complex than a 
          single request/response message exchange. A long running set of message 
          exchanges may, for example be used to implement a business interaction such 
          as procurement of goods or services. In this case there are advantages in 
          grouping individual messages into a longer running set of exchanges. Such an 
          exchange of messages is known as a conversation. Conversations may continue 
          between a pair of trading partners for a long time. Completion of a 
          conversation instance may take days, weeks or months.   In a procurement process, an example conversation 
          may be:
          </p>
					<olist>
						<item>
							<p>A buyer request a quotation for some goods, the seller responds with the quote.</p>
						</item>
						<item>
							<p>The buyer places a purchase order which the seller accepts.</p>
						</item>
						<item>
							<p>The seller informs the buyer of delivery dates, the buyer accepts.</p>
						</item>
						<item>
							<p>The buyer acknowledges delivery of the goods, the seller acknowledges.</p>
						</item>
						<item>
							<p>The buyer provides payment, the seller issue a receipt.</p>
						</item>
					</olist>
					<p>  
          All of the example message exchanges are related an instance of any agreement 
          between the two partners. For a message to be valid as part of the agreed 
          rules, each partner has to check whether the current message is valid within 
          the scope of the TPA.
          </p>
					<p>
          Figure 10 illustrates how this scenario could be implemented. Each partner's 
          SOAP processor has access to a database which is configured by the agreement agreed 
          between the two partners. A Conversation State Handler in the SOAP Sender 
          configures its SOAP Block with information that identifies a message with 
          conversation instance it is part of. A matching handler in the SOAP Receiver 
          uses the sender's information to test whether the received message is 
          acceptable within the rules of the agreement. It does this by checking with its own 
          rules database where the state information on each of the conversation 
          instances currently active is stored. If a message violates the rules of the 
          agreement, then the application can raise a fault condition.
          </p>
					<p>
          Note that Figure 10 does not include handlers for other message headers to 
          support reliability or security which may be required under the agreement.
          </p>
					<p>
          In the following request and response examples, a ConversationState Header 
          is used to identify which agreement governs the exchange between the two 
          trading partners (AgreementId). To support multiple concurrent conversations 
          under the same agreement, a ConversationId element is included. The values of 
          AgreementId and ConversationId will remain constant for the lifetime of a 
          particular conversational exchange and will appear in both request and 
          response messages. 
          </p>
					<example>
						<head>SOAP request message as part of a conversational exchange</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;n:ConversationState xmlns:n=&quot;http://example.org/conversation&quot;&gt;
      &lt;n:AgreementId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:AgreementId&gt;
      &lt;n:ConversationId&gt;uuid:02957815-38fh-39gp-0dj2-dm20fusy1n5j&lt;/n:ConversationId&gt;
    &lt;/n:ConversationState&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    -----
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<example>
						<head>SOAP response message as part of a conversational exchange</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;n:ConversationState xmlns:n=&quot;http://example.org/conversation&quot;&gt;
      &lt;n:AgreementId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:AgreementId&gt;
      &lt;n:ConversationId&gt;uuid:02957815-38fh-39gp-0dj2-dm20fusy1n5j&lt;/n:ConversationId&gt;
    &lt;/n:ConversationState&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    -----
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>A Sender shall be able to specify information in a message for it's internal use.  The sender shall send the same information for subsequent messages in a given conversation.
The receiver is required to echo this information for messages in a given conversation.  An example of this is a client-side conversation ID.
</p>
								</item>
								<item>
									<p>A Receiver shall be able to specify information in a message for it's internal use.  The receiver shall send the same information for subsequent messages in a given conversation.
The sender is required to echo this information for messages in a given conversation.  An example of this is a server-side conversation ID.
</p>
								</item>
								<item>
									<p>A Sender and a Receiver shall have a specification of sequences of allowable messages.   This is sometimes called choreography, orchestration, or workflow.  An example of this is Robin Milner's pi calculus.</p>
								</item>
								<item>
									<p>A Sender and a receiver shall have a specification of the static characteristics of the interchange.  The agreement might be specified in some or all of the messages exchanged.</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p>starting/stopping conversations at the protocol level.  This is an application feature.
</p>
								</item>
								<item>
									<p> timing out conversations at the protocol level.  This is an application feature.</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>Sequencing aka choreography: WSCL, WSFL, XLang</p>
						<p>Conversations: ebXML Message Service</p>
						<p>Static characteristics: ebXML CPP/CPA, WSEL?</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>Messages containing information for sender/receiver: High priority, low effort</p>
						<p>Sequencing of messages: High priority, High effort</p>
						<p>Static characteristics: Medium priority, small to large effort</p>
					</div4>
				</div3>
			</div2>

			<div2 id="S061">
				<head>S061 Request with encrypted payload</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A sender wishes to exchange data with a receiver and has agreed to encrypt 
          the all of or a portion of the payload. The sending and receiving applications agree on the encryption 
          methodology. Data is encrypted by the originating application and sent to 
          the receiver via SOAP. The data reaches the receiving application untouched, 
          and may then be decrypted in the agreed-upon manner.  This
	    scenario is applicable to the Travel Reservation Use Case
          (see <specref ref="ta"/>).
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig8" source="soap-usage-fig8.gif" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 8 Request with encrypted payload"/>
					<p>
          Scenario S061 describes two applications that wish to share encrypted data as an 
          opaque body in a SOAP message. It places no requirements on the SOAP messaging 
          layer.  Figure 8 illustrates this scenario. 
          </p>
					<example>
						<head>Plaintext SOAP message</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:Body&gt;
    &lt;m:PurchaseTicket xmln:m=&quot;some-URI&quot;&gt;
      &lt;m:PNR&gt;ABCDEFGH&lt;/m:PNR&gt;
      &lt;m:CreditCard&gt;4500123456789abc&lt;/m:CreditCard&gt;
    &lt;/m:PurchaseTicket&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          The following is the encrypted version of the above plain SOAP message. The 
          body entry &lt;m:PurchaseTicket&gt; is encrypted using a symmetric key 
          identified by the key name &quot;Symmetric Key&quot; and replaced by the 
          &lt;xenc:EncryptedData&gt; element with an id &quot;encrypted-body-entry&quot;. 
          A &lt;sec:Encryption&gt; header entry for this encrypted data is added 
          to the SOAP header. Note that the &lt;sec:EncryptedDataList&gt; element 
          in the header entry has a reference to the &lt;xenc:EncryptedData&gt; element. 
          The symmetric key used for encryption is stored in the &lt;xenc:EncryptedKey&gt; 
          element in the header entry in an encrypted form, that is, it is encrypted by 
          John Smith's RSA public key. 
          </p>
					<example>
						<head>Encrypted SOAP message</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;sec:Encryption xmlns:sec=&quot;http://schemas.xmlsoap.org/soap/security/2000-12&quot;
                       env:actor=&quot;some-URI&quot;
                       env:mustUnderstand=&quot;true&quot;&gt;
      &lt;sec:EncryptedDataList&gt;
        &lt;sec:EncryptedDataReference URI=&quot;#encrypted-body-entry&quot;/&gt;
      &lt;/sec:EncryptedDataList&gt;
      &lt;xenc:EncryptedKey xmlns:xenc=&quot;http://www.w3.org/2001/04/xmlenc#&quot;
                            Id=&quot;EK&quot;
                            CarriedKeyName=&quot;Symmetric Key&quot;
                            Recipient=&quot;John Smith&quot;&gt;
        &lt;xenc:EncryptionMethod Algorithm=&quot;http://www.w3.org/2001/04/xmlenc#rsa-1_5&quot;/&gt;
        &lt;ds:KeyInfo xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;
          &lt;ds:KeyName&gt;John Smith's RSA Key&lt;/ds:KeyName&gt;
        &lt;/ds:KeyInfo&gt;
        &lt;xenc:CipherData&gt;
          &lt;xenc:CipherValue&gt;ENCRYPTED 3DES KEY......&lt;/xenc:CipherValue&gt;
        &lt;/xenc:CipherData&gt;        
        &lt;xenc:ReferenceList&gt;
          &lt;xenc:DataReference URI=&quot;#encrypted-body-entry&quot;/&gt;
        &lt;/xenc:ReferenceList&gt;
      &lt;/xenc:EncryptedKey&gt;
    &lt;/sec:Encryption&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    &lt;xenc:EncryptedData xmlns:xenc=&quot;http://www.w3.org/2001/04/xmlenc#&quot;
                           Id=&quot;encrypted-body-entry&quot;
                           Type=&quot;http://www.w3.org/2001/04/xmlenc#Element&quot;&gt;
    &lt;xenc:EncryptionMethod Algorithm=&quot;http://www.w3.org/2001/04/xmlenc#tripledes-cbc&quot;/&gt;
      &lt;ds:KeyInfo xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;
        &lt;ds:RetrievalMethod URI=&quot;#EK&quot; Type=&quot;http://www.w3.org/2001/04/xmlenc#EncryptedKey&quot;/&gt;
        &lt;ds:KeyName&gt;Symmetric Key&lt;/ds:KeyName&gt;
      &lt;/ds:KeyInfo&gt;
      &lt;xenc:CipherData&gt;
        &lt;xenc:CipherValue&gt;ENCRYPTED BODY ENTRY......&lt;/xenc:CipherValue&gt;
      &lt;/xenc:CipherData&gt;        
    &lt;/xenc:EncryptedData&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Encrypt portions of the payload</p>
								</item>
								<item>
									<p>Point to Point</p>
								</item>
								<item>
									<p>Specification of c14n algorithm used.  Perhaps in spec, or in WSD?</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p>Intermediaries.  Justification: While intermediaries will be very important, a first version of security would be greatly successful without</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>SOAP-Security, WS-Security</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>High, Medium effort.  Justification: XEnc Exists, emerging specifications are able to use Xenc in fairly small amounts of specese.
						</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S062">
				<head>S062 Message header and payload encryption</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          Two trading partners engaged in a message exchange may agree to 
          cryptographically sign and verify one or more message header, such as a routing 
          header or a conversation header, and/ or the payload. The sender or originating application may 
          perform the signing of the payload. The sending message handler signs the 
          message header. A routing header may be appended to the message header. 
          The routing header may also be signed by a message service
          handler.  This scenario is applicable to the Travel
	    Reservation Use Case (see <specref ref="ta"/>) for the communications to the credit card service, where the message is not being sent over a secure channel, such as SMTP.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig11" source="soap-usage-fig11.gif" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 11 Header and payload encryption"/>
					<p>
          In scenario S061, two applications communicated using encrypted payloads. 
          These opaque payloads had no impact on the SOAP processing layer. In this 
          scenario, the action of signing and/or encrypting the headers or payload 
          is the responsibility of the SOAP processing layer. Figure 11 illustrates 
          how the encryption agreements are accessible to a Message Signing Handler 
          on the SOAP Sender and a matching Message Verification Handler on the SOAP 
          Receiver. An additional Message Routing Header may also be part of the SOAP 
          message. This header may also be signed and verified if needed by the security 
          requirements of the message exchange.
          </p>
          		</div3>
          		</div2>
          <div2 id="S0621">
				<head>S0621 Attachment encryption</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          Two trading partners engaged in a message exchange may agree to 
          cryptographically sign and verify an attachment, that is content that is not directly part of the SOAP envelope.
           The sender or originating application may 
          perform the encryption of the attachment.  This scenario is
	    applicable for the Travel Reservation Use Case (see
          <specref ref="ta"/>) for the communications to the credit card service, where a image of a signature is attached to the message.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          In scenario S061, two applications communicated using encrypted payloads. 
          These opaque payloads had no impact on the SOAP processing layer. In this 
          scenario, the action of encrypting the attachment
          is the responsibility of the SOAP processing layer.   This scenario is similar to S062.
          </p>
				</div3>
			</div2>


			<div2 id="S063">
				<head>S063 Authentication </head>
				<div3>
					<head>Scenario Definition</head>
					<p>A web service client presents credentials or tokens to a web service.</p>
				</div3>
				<div3>
					<head>Description</head>
					<p/>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Shall support Username/password credential</p>
								</item>
								<item>
									<p>Shall support binary credentials, such as X.509 certificates</p>
								</item>
								<item>
									<p>Shall support authentication across trust domains.</p>
								</item>
								<item>
									<p>Shall define a trust model.</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>HTTP Authentication, WS-Security</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>High priority, low effort.  There are numerous specifications available that provide this functionality, and they are fairly straightforward.  </p>
					</div4>
				</div3>
			</div2>
			<div2 id="S064">
				<head>S064 Message Integrity</head>
				<div3>
					<head>Scenario Definition</head>
					<p>A sender and receiver may wish to be able to determine if a message has been modified in transit, and point-to-point encryption is not appropriate, perhaps because of intermediaries or system architecture choices.</p>
				</div3>
				<div3>
					<head>Description</head>
					<p/>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Sign arbitrary portions of a document</p>
								</item>
								<item>
									<p>Shall use Digital Signatures</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>SOAP Security, WS-Security</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>High priority, low effort: There are numerous specifications available that provide this functionality, and they are fairly straightforward.  </p>
					</div4>
				</div3>
			</div2>
      <div2 id="S065">
	<head>S065 Authentication of data</head>
	<div3>
	  <head>Scenario Definition</head>
	  <p>Part of a request sent to a Web service need to be
	  authenticated, e.g. to guarantee that a payment
	  authorization for a purchase was issued by a well-known and
	  trusted bank.</p>
	</div3>
	<div3>
	  <head>Description</head>
	  <p>A request is sent from a user to a Web service. This
	  request contains some payment authorization issued by a
	  payment service.</p>
	  <p>Before processing the request, the service verifies that
	  the payment authorization information has been issued by a
	  valid payment organization (bank, credit card company,
	  ...).</p>
	  <p>Variant of this scenario: the user sends the request to
	  the Web service via the payment organization, with a payment
	  authorization request. The payment organization processes
	  the payment authorization request, includes payment
	  authorization information with a signature guaranteeing its
	  authenticity. It then forwards it to the Web service; the
	  request contains at this point the original request from the
	  user along with the signed payment authorization.</p>
	</div3>
	<div3>
	  <head>WS-Arch WG Specific</head>
	  <div4>
	    <head>Requirements</head>
	    <p>
	      <olist>
		<item>
		  <p>The security framework must support authentication
		  of data.</p>
		</item>
		<item>
		  <p>It must be possible to sign part of messages.</p>
		</item>
	      </olist>
	    </p>
	  </div4>
	  <div4>
	    <head>Non-requirements</head>
	  </div4>
	  <div4>
	    <head>Candidate Technologies</head>
	    <p>XML-Signature, WS-Security</p>
	  </div4>
	  <div4>
	    <head>Priority, Effort</head>
	  </div4>
	</div3>
      </div2>
			<div2 id="S070">
				<head>S070 Asynchronous messaging</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A sender sends a message asynchronously to a receiver expecting some response 
          at a later time. The sender tags the request with an identifier allowing the 
          response to be correlated with the originating request. The sender may also 
          tag the message with an identifier for another service (other than the 
          originating sender) which will be the recipient of the response.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig13" source="soap-usage-fig13.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 13 Asynchronous messaging"/>
					<p>
          Scenario DS17 is the same as the basic request/response pattern described in 
          scenario S3. The difference is that the request and response messages are 
          separated in time and implemented as two unidirectional messages. The sending 
          SOAP Application does not block and wait for the response to return. The 
          sending SOAP Application is notified when a response is received by its SOAP 
          Receiver. It then uses the correlation information within the received message 
          to match the response to a message it sent some time earlier.
          </p>
					<p>
          Figure 11 illustrates a possible implementation. In the request SOAP message, 
          a Message Identifier Handler is responsible for generating a unique message 
          identifier and inserting it into a SOAP Header. This forms part of the SOAP 
          request message and is sent from SOAP Application 1 to the receiving SOAP 
          Application 2. The request message is processed by a business application 
          and a response message is assembled. This includes a SOAP Header built by 
          a Message Correlation Handler which links the response message to its 
          associated request.
          </p>
					<example>
						<head>SOAP asynchronous request message containing a message identifier</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:MessageId&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
      ........
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
					</example>
					<example>
						<head>SOAP asynchronous response message containing correlation to original request</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;n:MsgHeader xmlns:n=&quot;http://example.org/requestresponse&quot;&gt;
      &lt;n:MessageId&gt;uuid:09233523-567b-2891-b623-9dke28yod7m9&lt;/n:MessageId&gt;
      &lt;n:ResponseTo&gt;uuid:09233523-345b-4351-b623-5dsf35sgs5d6&lt;/n:ResponseTo&gt;
    &lt;/n:MsgHeader&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
      ........
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;</eg>
					</example>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>. A sender shall be able to specify a URI for a receiver to send subsequent
messages to, aka callback.
<olist>
											<item>
												<p>This address can be contained in a message (dynamic)
</p>
											</item>
											<item>
												<p>This address can be defined at an interface (static)
</p>
											</item>
											<item>
												<p>This address can be specified in a 3rd party</p>
											</item>
										</olist>
									</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>Static: ebXML CPP/CPA</p>
						<p>Third Party: ebXML Registry, UDDI</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>High.  Low effort for simple callback URL.
						</p>
					</div4>
				</div3>
			</div2>
			<div2 id="s071">
				<head>S071 Asynch/Synchronous specificity </head>
				<div3>
					<head>Scenario Definition</head>
					<p>Capture the synchronicity of the operations</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>			To negotiate proper communication sequence WS provider has to be able to describe if certain operations can be handled asynchronously, must be handled asynchronously or synchronously and what is the expected execution time. This would allow process orchestration system to properly adjust the flow and not run into unexpected blocking.</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S080">
				<head>S080 Transaction</head>
				<div3>
					<head>Scenario Definition</head>
					<p>Transaction contexts are shared between to systems</p>
				</div3>
				<div3>
					<head>Description</head>
					<p/>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p>Two-phase commit</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>OASIS BTP</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>Medium priority, high effort.  Rationale: Transactions are typically quite complicated.</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S090">
				<head>S090 Sending non-XML data</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A digital camera wishes to transmit image data over a wireless link using 
          SOAP to a remote server. The binary image data (non-XML) accompanies the 
          message. The digital camera represents a situation in which connections from 
          the receiver to the sender may not be permitted due to device limitations or 
          firewalls.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig14" source="soap-usage-fig14.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 14 Sending non-XML data"/>
					<p>
          Support for non-XML data has been described elsewhere. The SOAP with 
          Attachments <bibref ref="SOAPAttach"/> note to the W3C has been adopted by the ebXML 
          Message Services specification <bibref ref="EBXML"/> as the basis for defining a message 
          structure which can support non-XML data. Supporting non-XML data requires 
          additional packaging of the message which can be provided by a MIME multipart 
          structure and impacts the binding of a message to its underlying transport 
          protocol. Figure 14 illustrates a unidirectional SOAP message path. A Message 
          Manifest Handler is implemented which creates a set of references to the 
          different parts of a multipart MIME package. Each part is referenced by its 
          content identifier.
          </p>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig15" source="soap-usage-fig15.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 15 Using MIME packaging for non-XML data"/>
					<p>
          Figure 15 illustrates how different parts of a message are packaged using MIME 
          multipart. The outermost MIME envelope packages a set of individual MIME parts. 
          The first MIME part contains a SOAP message which includes the Manifest Header 
          block created by the Message Manifest Handler. The second and subsequent MIME 
          parts contain payload(s) which may be XML documents or any other MIME content 
          type such as image, audio or video data. The SOAP manifest header can contain 
          elements that reference the separate MIME parts using their content identifiers. 
          This may be achieved using XLink references as shown in the following example. 
          The XLink role attribute may be used to further qualify the type of data 
          contained within the payload.
          </p>
					<example>
						<head>SOAP message containing a manifest for non-XML data</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;n:Manifest xmlns:n=&quot;http://example.org/manifest&quot;&gt;
      &lt;n:Reference n:id=&quot;image01&quot; 
                      xlink:href=&quot;cid:payload-1&quot;
                      xlink:role=&quot;http://example.org/image&quot;&gt;
        &lt;n:Description&gt;My first holiday photograph&lt;/n:Description&gt;
      &lt;/n:Reference&gt;
      &lt;n:Reference n:id=&quot;image02&quot;
                      xlink:href=&quot;cid:payload-2&quot;
                      xlink:role=&quot;http://example.org/image&quot;&gt;
        &lt;n:Description&gt;My second holiday photograph&lt;/n:Description&gt;
      &lt;/n:Reference&gt;
    &lt;/n:Manifest&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    ........        
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Messages can contain binary data</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>SOAP with Attachments, DIME</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>High, medium.  Probably biggest requirement issue is MIME based or not, so this probably won't be easy to resolve quickly.</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S091">
				<head>S091 Incremental parsing/processing of SOAP messages</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          An SOAP sender generates a lengthy SOAP message that is incrementally 
          transmitted and received by a SOAP receiver. The SOAP receiver employs a 
          SOAP handler that can incrementally process the body as it is received 
          (e.g., employing a SAX-style XML parser on the body as it arrives). Note 
          that the entire message need not be present at one time at any point in its 
          existence.
          </p>
					<p>
          This would be particularly helpful for memory-limited processors. It is also 
          very efficient for services which are consistent with incremental, real-time 
          transformations of the data, direct archiving of received data, etc. It would 
          also be useful in scenarios in which voluminous body data can be directly 
          transduced into application data structures or events by a SOAP (module) 
          processor. In particular, there is no need for the explicit construction of a 
          DOM model of the data. Support for various data models might still be possible 
          even with incremental processing if the models are incrementally constructible.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          Scenario S21 requires the incremental parsing and processing of a SOAP message 
          by a receiver. This is a general scenario with memory-limited processor 
          requirements forming a subset of the scenario. If the SOAP Body contains a 
          large amount of data, then it may be processed incrementally by a SAX parser 
          if the data is chunked as in the following example. The SAX parser will have a 
          handler triggered by the BodyDataChunk element.
          </p>
					<example>
						<head>Final SOAP response message containing sequencing and correlation to original request</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;!--Set of headers processed before Body --&gt;
  &lt;/env:Header&gt;
  &lt;env:Body&gt;
    &lt;b:BodyDataChunk xmlns:s=&quot;http://example.org/2001/06/chunking&quot;&gt;
      &lt;b:DataLength&gt;1024&lt;/b:DataLength&gt;
      &lt;b:Data&gt;kfkk34jkhfSomeBase64EncodedDatajdsgkjgjajgo34093589uvsjv.....jhfjhf350giqhf&lt;/b:Data&gt;
    &lt;/b:BodyDataChunk&gt;
 
    &lt;!-- More BodyDataChunk elements --&gt;
 
    &lt;b:BodyDataChunk xmlns:s=&quot;http://example.org/2001/06/chunking&quot;&gt;
      &lt;b:DataLength&gt;1024&lt;/b:DataLength&gt;
      &lt;b:Data&gt;oqjrj45cmoLastLotOfBase64EncodedData12r9vnhofjhckzlmxjws.....skfjk23ogkkjhq&lt;/b:Data&gt;
    &lt;/b:BodyDataChunk&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          If a SOAP request is being streamed and processed incrementally, then the 
          matching response message may be streamed to the original sender. In this 
          case, the design of the receiving application is critical with respect to 
          timing and error handling.
          </p>
					<olist>
						<item>
							<p>If errors are generated by the SOAP request Headers, then a SOAP Fault is 
            inserted in the response and processing of the request message is terminated.</p>
						</item>
						<item>
							<p>The SOAP receiving application may treat each BodyDataChunk element as 
            atomic. A positive or negative acknowledgement is streamed to the SOAP 
            response depending on whether the BodyDataChunk element was successfully 
            processed or not. The SOAP response message is terminated once the end of 
            the SOAP request is reached.</p>
						</item>
						<item>
							<p>Alternatively, the SOAP receiving application may process each BodyDataChunk 
            until either the end of the SOAP request is received or a fault occurs. In 
            the case of a fault, a SOAP Body fault element is streamed to the SOAP 
            response and processing of the SOAP request is terminated.</p>
						</item>
					</olist>
				</div3>
			</div2>
			<div2 id="S092">
				<head>S092 Streaming Response </head>
				<div3>
					<head>Scenario Definition</head>
					<p>Specifying streaming with input or output</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>A webcam is plugged in to a network. A user sends through the network an HTTP request to get the video. The webcam answers to this request by streaming the video to the user. The user sends another request to stop the streaming. I think WSDL should provide a way to express that it will use streaming at some point. Streaming might be used at two levels: - at the protocol level : the service may transmit the result by streaming - at the datatype level : the service may indicate that it will receive/send streaming as input/output..</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p/>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>

			<div2 id="S200">
				<head>S200 Event notification</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          An application subscribes to notifications of certain named events from an 
          event source. When such events occur, notifications are sent back to the 
          originating application (first party notification) or to another application 
          (third party notification). For example, an application can subscribe to 
          notification of various aspects of a printer's status (e.g., running out of 
          paper, ink etc.). The notifications of such events could be delivered to a 
          management application.
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" id="fig17" source="soap-usage-fig17.png" xlink:show="embed" xlink:actuate="onLoad" alt="Figure 17 Publish and subscribe"/>
					<p>
          Scenario S23 describes event notification using a publish subscribe mechanism. 
          An implementation of this scenario uses an example of the request/response 
          scenario S3 to register a subscription and fire-and-forget to multiple 
          receivers scenario S2 for the notification. Figure 17 illustrates how a 
          request/response message pattern can be used with a Subscription Request 
          Handler to register an interest (or subscription) in some set of events. 
          The registration is made with some subscription service. The success or 
          otherwise of the registration is returned to the subscribing application 
          using a Subscription Ack Handler which provides an acknowledgement to the 
          subscribing application. 
          </p>
					<p>
          Delivery of an event notification to a set of subscribers may be implemented 
          using the fire-and-forget to multiple receivers scenario S2. The subscription 
          service provides the list of valid applications that have registered an 
          interested in a particular event. This list may then be converted into a 
          group address or distribution list to support the implementation of the 
          fire-and-forget scenario.
          </p>
					<p>
          A subscription request may include a list of events within the SOAP Body as 
          in the following example.In this example, a subscription is registered with 
          a stock price notification service. The subscribing application will be 
          informed of company BigCo's stock price, volume traded and time whenever 
          the price is greater than 100.
          </p>
					<example>
						<head>SOAP event subscription request message</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:Body&gt;
    &lt;s:StockNotificationSubscription xmlns:s=&quot;http://example.org/2001/06/subscribe&quot;&gt;
      &lt;s:Notify&gt;PRICE&lt;/s:Notify&gt;
      &lt;s:Notify&gt;VOLUME&lt;/s:Notfy&gt;
      &lt;s:Notify&gt;TIMESTAMP&lt;/s:Notfy&gt;
      &lt;s:When&gt;
        &lt;s:Company&gt;BigCo&lt;/s:Company&gt;
        &lt;s:Price range=&quot;GreaterThan&quot;&gt;100&lt;/s:Price&gt;
      &lt;/s:When&gt;
    &lt;/s:StockNotificationSubscription&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          An acknowledgement may include an identifier to the subscription as in the 
          following example:
          </p>
					<example>
						<head>SOAP event subscription acknowledgement response</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:Body&gt;
    &lt;s:StockNotificationSubscriptionAck xmlns:s=&quot;http://example.org/2001/06/subscribe&quot;&gt;
      &lt;s:SubscriptionId&gt; uuid:40195729-sj20-pso3-1092-p20dj28rk104&lt;/s:SubscriptionId&gt;
    &lt;/s:StockNotificationSubscriptionAck&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
					<p>
          The identification may be used in subsequent notifications to the application 
          as a result of the subscription:
          </p>
					<example>
						<head>SOAP event notification</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:Body&gt;
    &lt;n:StockNotification xmlns:n=&quot;http://example.org/2001/06/notification&quot;&gt;
      &lt;n:SubscriptionId&gt; uuid:40195729-sj20-pso3-1092-p20dj28rk104&lt;/n:SubscriptionId&gt;
      &lt;n:Company&gt;BigCo&lt;/n:Company&gt;
      &lt;n:Price&gt;100.56&lt;/n:Price&gt;
      &lt;n:Volume&gt;102345&lt;/n:Volume&gt;
      &lt;n:Timestamp&gt;2001-03-09T12:22:30Z&lt;/n:Timestamp&gt;
    &lt;/n:StockNotification&gt;
  &lt;/env:Body&gt;
&lt;/env:Envelope&gt;
</eg>
					</example>
				</div3>
			</div2>
			<div2 id="S201">
				<head>S201 Event Management Model</head>
				<div3>
					<head>Scenario Definition</head>
					<p>Capture event management model for web services</p>
				</div3>
				<div3>
					<head>Description</head>
					<p/>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S300">
				<head>S300 System Messages</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
         A sender or other party sends messages to a receiver inquiring about the status of the service or message or to control the execution of the message
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>A sender wishes to determine if a service is available.  It sends a synchronous message querying the status of the service.  Later, the sender sends an asynchronous message to the service.  The sender then wishes to determine or control the status of the asynchronous message.  It sends a synchronous message querying the status of the asynch message.
</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Shall be possible to "ping" availability of service</p>
								</item>
								<item>
									<p>Shall be possible to query message status</p>
								</item>
								<item>
									<p>Shall be possible to control message</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>ebXML Ping, Status messages</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>Medium to Low.  Effort is from simple (like Ping) to complex.
						</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S500">
				<head>S500 Service Metadata </head>
				<div3>
					<head>Scenario Definition</head>
					<p>Service providers can provide custom data</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>A WS provider can decorate various elements of the service description with custom attributes. These attributes may be application specific and would be described by the WS provider in an additional documentation. Such custom attributes may be defined in a specific schema. WS provider may include such extra information as owner e-mail, link to SLA, security and session requirements for a particular message, etc.</p>
					<p>
          A conversation between two trading partners may also be defined by shared 
          configuration information such as an ebXML Collaboration Profile Agreement (CPA). 
          A conversation agreement includes information such as expected response times, business process 
          actions that each party undertakes to complete, security information and 
          message content structures.
          </p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Information inline in the WSDL</p>
								</item>
								<item>
									<p>Information external to the WSDL</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>Inline information already done.  External information: Low priority, low to high effort
						</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S501">
				<head>S501 Service Level attributes</head>
				<div3>
					<head>Scenario Definition</head>
					<p>Declaration of service level attributes</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>Two web services, implementing the interface for "looking up for insurance providers", from different sources are offered in a registry. One of the two services actually performs extensive data validation on the data provided, for example making sure that the zip codes in the address provided are valid", while the other web service assumes that the data provided is valid and searches for insurance providers has already been validated and uses it to perform its search without any further validation. The interface was developed by an industry consortium that agreed to reflect the data validation capability of the services as a service-level attribute. Some intelligent registries may then actually allow search criteria that can be predicated on these service-level attributes or alternatively, the client application may check the value of the service level attribute itself at runtime to find out its value. The service-level attribute may be mapped to accessor methods which can be invoked either by the intelligent registry as part of executing the search query or by the client application itself.</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S502">
				<head>S502 Operation Level attributes </head>
				<div3>
					<head>Scenario Definition</head>
					<p>Declaration of operational level attributes
</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>In an advanced architecture where distributed transactions are supported, a web service may want to declare some of its operations as transactional as opposed to the entire interface being transactional. A web service offering various financial related web services may be able to verify a buyer's credit in a non-transactional manner but may require the client application to start a transaction before invoking the operation to prepare an invoice. The target web service may have a declarator on the method specification that indicates that the operation for invoicing requires transaction
					</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S503">
				<head>S503 Namespaces with data and interfaces  </head>
				<div3>
					<head>Scenario Definition</head>
					<p>To maintain namespaces through service providers and clients
</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>. It has to be required that namespaces are not getting lost between service provider and the client. It should be part of WSDL compliance.

					</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S504">
				<head>S504 Versioning</head>
				<div3>
					<head>Scenario Definition</head>
					<p>Specifying interface versioning</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>A WS provider can describe versions of interfaces implemented by a service. WS client can bind to the necessary interface version. This way there is no ambiguity when WS provider changes service interfaces and client has created a static proxy that uses previous version of interfaces.

WS provider can deprecate and remove interfaces as desired, and the client would know that. Client would send a SOAP request that would not be accepted (as namespaces do not match), as opposed to client trying to send a SOAP request that could be accepted, but improperly executed.


					</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S505">
				<head>S505 Classification system for operations</head>
				<div3>
					<head>Scenario Definition</head>
					<p/>
				</div3>
				<div3>
					<head>Description</head>
					<p>Imagine a component framework in which components and their operations (building finally the component's functionality) should be described with WSDL. In the framework the components are using operations from each other dynamically: in the program code there is no "hard-wired" function call but instead a "semantic description/reference" of what kind of operation to use, which will be dissolved just in time before execution. With this "semantic description" a search for suitable operations could be started in a (logical) centralized registry (maybe with UDDI). The registry contains (WSDL) information of all currently available components/operations within the framework. Result of the search query are the concrete binding parameters (protocol, URL, operation signature, etc.) of the matching operations. Finding a suitable match _automatically_ (without manual/human interaction) will be done by searching in the registered WSDL files for the specified "semantic description". One half of this "semantic description" are the parameters defined with complex XML schema types. The other one should be the determination of the operation (i.e. its functionality). But only considering the operation name has the same drawbacks as comparing parameters only by their name (or even simple types like integer, string, etc.): only operations with exactly the same name as chosen from the operation's programmer are returned. So with introducing a kind of "type system" for operations (or maybe a classification) would bring the benefit that the result set of the above mentioned query could return operations with different names, but which are implementing the same functionality/behavior. With this it would also be possible to exchange one component (respectively their operation/s) with another independently developed one, which has the same functionality but with (maybe only slightly) different operation name(s) - and this without further manual interaction.


					</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			
			<div2 id="S510">
				<head>S510 Quality of service</head>
				<div3>
					<head>Scenario Definition</head>
					<p>
          A SOAP sender (not necessarily the initial SOAP sender) wants the SOAP 
          message to be handled with specific quality of service as it traverses 
          the SOAP message path to include multiple SOAP Processing intermediaries. 
          Information in the SOAP message is used to select appropriate QoS 
          mechanisms (e.g., RSVP, Diffserv, MPLS, etc.). Selection of QoS may be 
          constrained by QoS policies, Service Level Agreements (SLAs), Service 
          Level Specifications (SLS).
          </p>
				</div3>
				<div3>
					<head>Description</head>
					<p>
          A SOAP header block is one possible approach to implementing this scenario. The 
          SOAP 1.2 specification does not define this hypothetical SOAP Quality Of Service 
          (QoS) block. An initial SOAP sender sends a SOAP message containing a QoS header 
          block through one or more SOAP intermediaries to an ultimate SOAP receiver. The 
          intermediary is targeted by the initial SOAP sender from within the SOAP message 
          by inserting a role attribute within the QoS Block to be used at the SOAP 
          intermediary as described in the SOAP processing model (Part 1, section 2.5). 
          The SOAP specifications do not state how the role attribute is to be used by 
          the SOAP sender. Potentially, it can be used in the context of the SOAP binding 
          framework to provide a hint for message routing. However, message routing is not within the scope of the SOAP 1.2 
          specifications. The SOAP intermediary must examine the SOAP QoS Block, and 
          determine how to invoke the QoS capabilities exposed via the SOAP binding. If 
          the SOAP QoS Block is marked mustUnderstand, then the intermediary is expected 
          to be QoS-aware. If it is not QoS-aware, then a SOAP fault is generated, as this 
          mandatory header cannot be processed. If it is QoS-aware, but cannot honor the 
          specific QoS parameters carried in the QoS Block, then any fault or other 
          response to the sender or elsewhere (e.g., log file) is not defined in the SOAP 
          specifications. The specification of the QoS extension, when defined, would need 
          to describe error handling, negotiations, or other processing under all 
          circumstances.
          </p>
					<p>
          If the intermediary is QoS-aware, then presumably the information in the QoS 
          Block is used when forwarding the SOAP message further along on its message path 
          toward the ultimate SOAP receiver. In addition to the use of SOAP Blocks to 
          extend the functionality of SOAP, this scenario may also require extensions to 
          the HTTP binding, or a completely new binding. The Binding Framework allows for 
          additional properties, outside the SOAP envelope, that may be required to invoke 
          the lower layer QoS mechanisms. Additional properties (within the Binding 
          Framework) may be required. For sake of discussion, lets assume that the SOAP 
          node will send the SOAP message using HTTP, but traffic classification of this 
          HTTP flow would be done using diffserv so particular per-hop behaviors can be 
          used within the network en-route to the next SOAP node. Traffic classification 
          for diffserv can be done by the SOAP node sending the SOAP message, or by network 
          devices (assuming they know how to recognize the particular HTTP flow). If 
          traffic classification is handled by a network device, perhaps communications 
          would be needed between the SOAP node and the network device, for example, to 
          provide the network device with the TCP/IP port numbers and IP addresses of the 
          HTTP connection. This would presume some way to obtain this port and address 
          information, which probably involves an API or properties that are beyond the 
          scope of the SOAP 1.2 specifications.
          </p>
					<p>
          For example, to state that a separate spec can define properties in accordance 
          with the binding framework to extend the capability of the HTTP binding (or any 
          other binding). In the case of SOAP RPC, a QoS extension at the ultimate SOAP 
          receiver may attempt to insert a QoS Block in RPC response. The RPC response 
          may succeed, but perhaps the desired QoS cannot be delivered on the return 
          message path. It is not clear if a SOAP fault should be generated. Likewise, if 
          a SOAP Intermediary on the return message path cannot honor the QoS Block 
          (assumed to be marked mustUnderstand), is it permissible to convert the SOAP RPC 
          response to a SOAP fault? A SOAP extension in the initial SOAP sender is needed 
          to insert this SOAP QoS Block. The sender may need to use properties as defined 
          by the SOAP binding framework to communicate QoS parameters to be used by the 
          underlying network. Since a SOAP binding must define the rules for how the data 
          is exchanged using the underlying protocol, a custom or supplemental binding may 
          be required to support this QoS usage scenario. The HTTP binding described in the 
          SOAP 1.2 specification does not explicitly support QoS properties. The SOAP 1.2 
          specification does not preclude extensions to this HTTP binding, which would 
          provide the capability to define either QoS properties or a requirement to 
          examine the SOAP envelope (i.e., SOAP QoS Block) to determine the QoS used for 
          transmission. Alternatively, a completely new binding can be specified that 
          includes QoS explicitly, rather than as an extension to an existing binding
          </p>
				</div3>
			</div2>
			<div2 id="S600">
				<head>S600 Address based Discovery </head>
				<div3>
					<head>Scenario Definition</head>
					<p>Given a particular service address, a sender wishes to determine the description of the service</p>
				</div3>
				<div3>
					<head>Description</head>
					<p>A Sender has the URL for a service.  It sends a message to a the service requesting the WSD definition that is appropriate.  This could be designed using standardized SOAP messages with particular parameters, or other designs</p>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>A sender and receiver shall be able to exchange WSD descriptions given just a URI for the receivers service.</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>WS-Inspection,</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
			<div2 id="S601">
				<head>S601 Registry based discovery</head>
				<div3>
					<head>Scenario Definition</head>
					<p>People or Software use a registry to discover web services and the interface specifications.</p>
				</div3>
				<div3>
					<head>Description</head>
					<p/>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p>Service Providers can publish WSD of service(s)</p>
								</item>
								<item>
									<p>Service consumers can discover WSD of service(s)</p>
								</item>
								<item>
									<p>Service consumers can invoke Services based upon discovered service description</p>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p>UDDI, ebXML Registry</p>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p>Medium Priority, High effort.  Justification: UDDI, ebXML Registry/Response are very significant efforts</p>
					</div4>
				</div3>
			</div2>
			<div2 id="S">
				<head>S Template </head>
				<div3>
					<head>Scenario Definition</head>
					<p/>
				</div3>
				<div3>
					<head>Description</head>
					<p/>
				</div3>
				<div3>
					<head>WS-Arch WG Specific</head>
					<div4>
						<head>Requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Non-requirements</head>
						<p>
							<olist>
								<item>
									<p/>
								</item>
							</olist>
						</p>
					</div4>
					<div4>
						<head>Candidate Technologies</head>
						<p/>
					</div4>
					<div4>
						<head>Priority, Effort</head>
						<p/>
					</div4>
				</div3>
			</div2>
		</div1>
    <div1 id="uc">
      <head>Use cases</head>
      <p>This section contains use cases giving more context to
      some of the individual usages scenarios listed in <specref
      ref="description"/>.</p>
      <ednote>
	<name>HH</name>
	<date>2002-06-19</date>
	<edtext>This section contains Roger's and Hugo's use
	cases. The format is different from the previous section. When
	security usage scenarios are added, we should probably add
	  links to entries in <specref ref="description"/>.</edtext>
      </ednote>
      <div2 id="ta">
	<head>Travel agent use case</head>
      <div3 id="Descriptio">
         <head>Description</head>
         <p>A company (travel agent) wants to offer to people the ability to book
complete vacation packages: plane/train/bus tickets, hotels, car rental,
excursions, etc.</p>
         <p>Service providers (airlines, bus companies, hotel chains, etc) are
providing Web services to query their offerings and perform reservations.</p>
         <p>Credit card companies are also providing services to guarantee payments
made by consumers.</p>
         <p>Due to the loosely coupled-nature of Web services, the travel agent
doesn't need to have a priori agreements with service providers or credit
card companies. This allows the travel agent to have access to more services,
offering more options to its customers, the credit card companies to offer
their services broadly and therefore make their customers happy, and the
service providers can offer their services broadly and easily and therefore
generating more business for themselves.</p>
      </div3>
      <div3 id="Scope">
         <head>Scope</head>
         <p>For this version of the usage scenario, we will limit ourselves to booking
of vacation packages. We will assume that cancellation is not possible once a
package has been purchased.</p>
      </div3>
      <div3 id="Stakeholde">
         <head>Stakeholders / Interests</head>
         <p>The travel agent provides a system to provide the user with options for
his/her vacation and earns money by charging fees for each package bought.</p>
         <p>Service providers (hotels, airlines) sell their services
         by making them available widely using Web services.</p>
         <p>Credit card companies enable customers to use their credit cards in a very
large number of cases by making payment Web services available and make profit with each money transaction.</p>
         <p>The consumer books a vacation easily by choosing among a large variety of
offers.</p>
         <p>Only the user in the scenario is a human being. The travel agent service,
airline, hotel and payment services that the travel agent service is
interacting with, are machines.</p>
      </div3>
      <div3 id="Actors">
         <head>Actors &amp; Goals</head>
         <p>The goal of the consumer is to get the best combination of services and prices suiting his/her needs.</p>
         <p>The travel agent tries to customer satisfaction and sell packages.</p>
         <p>The service providers are aiming at selling as many
         products as possible.</p>
         <p>The credit card companies guarantee and do the payments of
         the purchased products.</p>
      </div3>
      <div3 id="Cases">
         <head>Usage scenarios</head>
         <p>The following usage scenarios describe how a user would make a reservation for a
vacation package (flight and hotel room).</p>
	  <ednote>
	    <name>HH</name>
	    <date>2002-07-16</date>
	    <edtext>The diagrams should be available in-line in the
	    document, and should be available in PNG as well as
	    SVG.</edtext>
	  </ednote>
         <p>Here is a list of diagrams giving an overview of
    the scenario, with the introduction of a new hotel service:</p>
         <ulist>
      
            <item>
               <p>
                  <loc href="http://www.w3.org/2002/Talks/www2002-hh-0508-wsa/ta.svg">Overview</loc>.</p>
            </item>
      
            <item>
               <p>
                  <loc href="http://www.w3.org/2002/Talks/www2002-hh-0508-wsa/exa1.svg">Composing a vacation package</loc>.</p>
            </item>
      
            <item>
               <p>
                  <loc href="http://www.w3.org/2002/Talks/www2002-hh-0508-wsa/exa2.svg">Booking a chosen vacation package</loc>.</p>
            </item>
      
            <item>
               <p>
                  <loc href="http://www.w3.org/2002/Talks/www2002-hh-0508-wsa/exa3.svg">Introducing a new hotel Web service</loc>.</p>
            </item>
      
            <item>
               <p>
                  <loc href="http://www.w3.org/2002/Talks/www2002-hh-0508-wsa/exa4.svg">Booking the new cheaper option chosen</loc>.</p>
            </item>
    
         </ulist>
         <p>An assumption for this usage scenario is that all the services are using
common concepts (e.g. flight, economy class, room, etc). For the travel agent
service to understand the airline services and to be able to send meaningful
information to them, a travel industry ontology needs to exist and be used by
the Web services taking part in this scenario. An ontology is a formal
description of a set of concepts and their relationships to each other. By
associating a name with each concept, an ontology defines a standard
vocabulary that can be used to communicate those concepts.</p>
         <p>It has to be noted that some additional technology is needed for this
usage scenario:</p>
         <ulist>
  
            <item>
               <p>context maintenance.</p>
            </item>
  
            <item>
               <p>reliability: in order to make money, each step needs to happen.</p>
            </item>
  
            <item>
               <p>trust mechanisms for the services to do business with each other.</p>
            </item>
  
            <item>
               <p>description of orchestration of services: if a reservation of a flight
    involves interacting with a couple of Web services, the airline would
    document in a machine readable way how to interact with the two single
    services in order to get the desired result, including how to handle
    errors in the process fails before the operation is completed.</p>
            </item>
  
            <item>
               <p>...</p>
            </item>

         </ulist>
         <p>Note that this usage scenario could be different in the following ways:</p>
         <ulist>
  
            <item>
               <p>the user could have bought some travel agent software; the travel agent
    service could reside locally on his/her computer.</p>
            </item>
  
            <item>
               <p>the user could write tools to interact directly with the airline and
    hotel services.</p>
            </item>

         </ulist>
         <div4 id="L109">
            <head>1. User requests availabilities about some travel dates</head>
            <div5 id="Goal">
               <head>Goal / Context</head>
               <p>The user gets the location of a travel agent service via an unspecified
way (search engine, URI in an email, service directory, etc).</p>
               <p>The user provides a destination and some dates to the travel agent
service. The travel agent service inquires airlines about deals and presents
them to the user.</p>
            </div5>
            <div5 id="Scenario">
               <head>Scenario / Steps</head>
               <olist>
  
                  <item>
                     <p>The user is presented with a form to fill in order to provide the
    travel agent service with details about dates of his/her travel and the
    destination.</p>
                  </item>
  
                  <item>
                     <p>The user submits the information to the service in order to get a list
    of flights corresponding to his/her schedule.</p>
                  </item>
  
                  <item>
                     <p>The travel agent service finds a list of airlines.</p>
                  </item>
  
                  <item>
                     <p>For each airline found: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to
        communicate with the service found.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service requests a list of flights accommodating
        the user.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The travel agent service presents the results of the queries to the
    user letting him choose the best option.</p>
                  </item>

               </olist>
            </div5>
            <div5 id="Extensions">
               <head>Extensions</head>
               <p>If no flight can be found, the user should be presented with an error.</p>
            </div5>
            <div5 id="Technologi">
               <head>Technologies / Requirements</head>
               <p>Discovery technology: used by the travel agent service to find the
airlines services.</p>
               <p>Description language: used by the airlines to describe their query
services to the travel agent service.</p>
               <p>Response to queries: XML documents that the travel agent service processes
and merge together.</p>
               <p>Ontologies: the data coming from different airline services and expressed
with different XML vocabularies needs some semantics to be merged in a
meaningful way.</p>
            </div5>
         </div4>
         <div4 id="L156">
            <head>2. User chooses flight and looks for hotels</head>
            <div5 id="Goal1">
               <head>Goal / Context</head>
               <p>The user has been presented with options for flights to go to his/her
destination. The user chooses a preferred flight. The service puts the seats
on hold, and goes on with proposing lodging options to the user.</p>
            </div5>
            <div5 id="Scenario1">
               <head>Scenario / Steps</head>
               <olist>
  
                  <item>
                     <p>The user communicates his/her choice for the flight.</p>
                  </item>
  
                  <item>
                     <p>The travel agent service requests the chosen airline to put the flight
    on hold: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to put a
        seat on hold to the airline service.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service sends the request accordingly.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The airline returns a confirmation number with an expiry date.</p>
                  </item>
  
                  <item>
                     <p>The travel agent service finds a list of airlines.</p>
                  </item>
  
                  <item>
                     <p>For each hotel found: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to
        communicate with the service found.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service requests accommodation options for the
        period.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The travel agent service looks for payment services available, and
    builds a list of options for the user.</p>
                  </item>
  
                  <item>
                     <p>The travel agent service presents the results of the queries to the
    user letting him choose the best option, along with the payment options
    offered.</p>
                  </item>

               </olist>
            </div5>
            <div5 id="Extensions1">
               <head>Extensions</head>
               <p>If the seats chosen are not available anymore, the travel agent service
presents the user with an error message and the user is presented with an
updated list of available flights to choose from.</p>
            </div5>
            <div5 id="Technologi1">
               <head>Technologies / Requirements</head>
               <p>Description language: used by the airlines to describe their services to
put tickets on hold to the travel agent service, by the hotels to describe
their query services to the travel agent service.</p>
               <p>Discovery technology: used by the travel agent service to find the hotels
services.</p>
               <p>Ontologies: the data coming from different accommodation services and
expressed with different XML vocabularies needs some semantics to be merged
in a meaningful way.</p>
            </div5>
         </div4>
         <div4 id="L212">
            <head>3. User books hotel room and flight</head>
            <div5 id="Goal2">
               <head>Goal / Context</head>
               <p>The user has been presented with options for hotels to go to his/her
destination and a means of payment. The user chooses a hotel option. The
travel agent service contacts a payment service for payment authorization. The service
books the hotel and confirms the flight, using the payment authorization from
the payment service (i.e. a credit card company).</p>
            </div5>
            <div5 id="Scenario2">
               <head>Scenario / Steps</head>
               <olist>
  
                  <item>
                     <p>The user communicates his/her accommodation choice to the travel agent
    service.</p>
                  </item>
  
                  <item>
                     <p>The travel agent service contacts the payment service that the user chose
    to confirm payment: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to guarantee
        payment of the total amount.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service send the request accordingly.</p>
                           </item>
      
                           <item>
                              <p>The response indicates success with an authorization number, signed
        by the payment authority.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The travel agent service books the hotel room: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to book a
        room to the chosen hotel service.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service sends a request in order to find out how
        to cancel the reservation should a problem occur later in the
      process.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service sends the
        request accordingly, along with a payment authorization
			  number from the payment service.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The travel agent service confirms the flight reservation: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to buy a
        ticket on hold to the airline service.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service sends a request in order to find out how
        to cancel the reservation should a problem occur later in the
      process.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service sends the
        request accordingly, along with a payment authorization
        number from the payment service.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The travel agent service charges a fee to the user: 
    <olist>
      
                           <item>
                              <p>The travel agent service requests a description of how to request
        payment to the payment service.</p>
                           </item>
      
                           <item>
                              <p>The travel agent service sends the request accordingly, along with
        the authorization number signed by the payment service.</p>
                           </item>
    
                        </olist>
  
                     </p>
                  </item>
  
                  <item>
                     <p>The service provides the user with various confirmation numbers and
    wishes the user a good vacation.</p>
                  </item>

               </olist>
	      <p>When the travel agent service communicates a proof of
	      payment authorization to the hotel and airline services,
	      the message should carry some proof that the
	      authorization token is indeed coming from a payment
	      service (see <specref ref="S065"/>).</p>
	      <p>Also, communication with the payment service will
	      requires confidentiality, which can be achieved with
	      encryption technologies (e.g. <specref ref="S061"/>,
	      <specref ref="S062"/> and <specref ref="S0621"/>).</p>
            </div5>
            <div5 id="Extensions2">
               <head>Extensions</head>
               <p>If the payment service doesn't confirm the validity of the user's payment
option, the user should be presented with an error.</p>
               <p>If the hotel room cannot be booked, the user should be presented with an
error and should get to choose from an updated list of options.</p>
               <p>If the flight reservation cannot be confirmed, the hotel room reservation
should be canceled and the user should be presented with an error and start
the reservation process again.</p>
            </div5>
            <div5 id="Technologi2">
               <head>Technologies / Requirements</head>
               <p>Service description technology: used by the payment authority to describe
its confirmation service, by the hotel to describe its room booking service,
and by the airline to describe its service to buy tickets by confirming seats
on hold.</p>
               <p>Authentication technology: used by the payment authority to sign the
payment authorization to be trusted by the hotel service, the airline service
and the travel agent service.</p>
               <p>Encryption technology: used by the payment service and the travel agent
service to communicate the user's payment information confidentially.</p>
               <p>Ontologies: the payment confirmation needs to be used in a way meaningful
to the travel service, hotel and airline services; in other words, the output
of one service needs to be used as the input to other services that might use
different vocabularies.</p>
            </div5>
         </div4>
         <div4 id="Notes">
            <head>Notes on the scenario</head>
            <p>This scenario illustrates how a program, the travel agent service, can
interact dynamically with airline services, hotel services, without a priori
knowledge of them or of the way they work. Thanks to the ontologies used, the
program can adapt to variations of formats that an airline service might be
using and adapt to the introduction of new products.</p>
            <p>However, there is a limit to what the travel agent service can understand.
For example, it is likely to be able to understand the introduction of a new
class of tickets, say class Z. However, if the restrictions on class Z
tickets use concepts that it is not aware of (say that class Z tickets can
only be bought more than 60 days in advance and with a valid international
student identification), the developers of the travel agent service will need
to implement the extra logic to make it understand this new type of
restriction, including validating the student identification.</p>
      </div4>
    </div3>
      </div2>
      <div2 id="edi">
	<head>EDI-like purchasing</head>
		<div3 id="Descriptio1">
			<head>Description</head>
			<p>A large company (BigCo) wants to purchase widgets from a small
widget manufacturer (SmallCo) using web services to transmit the
various documents (e.g. purchase orders and invoices) involved.
There are web services set up at both BigCo and SmallCo that handle
the document transmissions required to implement an
industry-specific business process which has been defined by an
industry-vertical standards body (e.g. ComProServ from <loc href="http://www.api.org/faeb/pidx/">PIDX</loc>, a protocol for
obtaining oil field services). In addition to the documents
involved in this business process there are payments sent through a
different financial service.</p>
			<p>BigCo and SmallCo set up a trading relationship in which web
services provide functions similar to those offered in a
proprietary setting by EDI VAN's (Value Added Networks).</p>
		</div3>
		<div3 id="Scope1">
			<head>Scope</head>
			<p>The focus of this use case is the technical infrastructure
required to implement the business processes, not the business
processes themselves. In this example we will assume that BigCo and
SmallCo have already set up their trading relationship. How they
found each other and made the agreement to trade with each other is
beyond the scope of this example. Payments in this example are sent
through financial institutions and involve electronic processes
beyond the scope of this example (because it is beyond the scope of the EDI people whose experience forms the basis of this use case). Opinions may differ about what aspects of the requirements belong in Web Services "technical infrastructure" and which belong in "business process".     For example, we think that unique ID and timedate stamping of the messages should be "infrastructure" but that sequencing of the messages belongs in "business process".  These issues are discussed as they arise below.</p>
		</div3>
		<div3 id="Stakeholde1">
			<head>Stakeholders / Interests</head>
			<p>BigCo purchases widgets, both via EDI provided by a VAN and via web services as described in this
use case. BigCo uses big software packages internally. For example,
financials and business information are handled by an ERP system, and there is an eProcurement front end (perhaps
from a different provider) that implements the
purchasing logic. Connectivity and data transport within the
company are provided by an EAI system. BigCo's primary motivations in this activity are cost
control, reliability and security. Automated processing is much
cheaper than typing invoices in by hand and also can be more
accurate.</p>
			<p>SmallCo manufactures widgets and gets orders from BigCo
occasionally (perhaps a few per month). SmallCo's primary
motivation is to do business with BigCo and other companies of this
sort, and messing with electronic procurement systems is part of
what you need to do to get the sale. However, SmallCo needs to keep
the cost down and cannot afford to purchase elaborate software
systems to implement these processes. SmallCo uses a low-end
bookkeeping system (e.g. QuickBooks, PeachTree Accounting) and does
a lot of hand entry into this system. SmallCo has a web site hosted
by a local ISP.</p>
		</div3>
		<div3 id="Actors1">
			<head>Actors &amp; Goals</head>
			<p>BigCo: A business analyst is responsible for the relationship
between BigCo and SmallCo, an engineer initiates the request for
purchase, the purchasing department handles the mechanics of the
transaction.</p>
			<p>SmallCo: Mom takes the order and tells Sonny to ship out N
widgets, meanwhile telling Pop to enter the transaction into
Quickbooks and generate an invoice against BigCo.</p>
		</div3>
		<div3 id="Cases1">
			<head>Usage Scenarios</head>
			<p>The following usage scenarios first illustrate the steps involved in a
typical purchasing transaction, then show some typical "fixing the
screwups" operations.</p>
			<div4 id="L1091">
				<head>1. Typical Widget Purchase</head>
				<div5 id="Goal1rc">
					<head>Goal / Context</head>
					<p>An engineer needs to purchase widgets for a project, finds the
SmallCo offering in a catalog and initiates the purchase.</p>
				</div5>
				<div5 id="Scenario1rc">
					<head>Scenario / Steps</head>
					<p>A typical transaction looks like this:</p>
					<olist>
						<item>
							<p>Engineer finds SmallCo widget offering in an internal web
catalog of goods and services.</p>
						</item>
						<item>
							<p>Engineer initiates a request for quote to SmallCo.</p>
						</item>
						<item>
							<p>SmallCo responds with a quote.</p>
						</item>
						<item>
							<p>Engineer initiates a purchase order that is sent to
SmallCo.</p>
						</item>
						<item>
							<p>SmallCo receives the P.O. ships the widget and sends an
invoice.</p>
						</item>
						<item>
							<p>BigCo receives the widget, checks that the received widget is
really what was ordered, and initiates payment through a
financial service.</p>
						</item>
						<item>
							<p>BigCo sends a payment advice to SmallCo.</p>
						</item>
					</olist>
					<p>There are lots of other messages that might be sent in a
purchasing scenario. This is just sort of a bare-bones illustrative
example.</p>
					<p>The messages that go from BigCo to SmallCo are generated
automatically by the software systems in BigCo. SmallCo, on the
other hand, is using a shareware web services module that
implements the web services necessary for these commercial
transactions in a generic way but knows nothing about the
industry-specific business protocols involved.</p>
				</div5>
				<div5 id="Extensions1rc">
					<head>Extensions</head>
					<p>Failure of the process at each step triggers appropriate
actions, often involving flagging the transaction for attention by
a person in the purchasing department of BigCo or raising an error condition in the web service facility of SmallCo.</p>
				</div5>
				<div5 id="Technologi1rc">
					<head>Technologies / Requirements</head>
					<p>The basic transactions take place via <loc href="#S070">Asynchronous
Messaging</loc>. However, each of the steps of this process must also
be reliable. That is, there is a process in place by which when a
message is sent the sender knows that it will either get through or
create an error condition, and that there is a high probability of
it getting through. Each message generates a confirmation of
receipt message back to the sender, that is, <loc href="#S010">Request with
Acknowledgement</loc>. In addition, each message carries a unique
identifier, a date-time stamp (showing the time at which the
message was sent, not necessarily the delivery time), and
information that allows the messages to be logically ordered.
(These capabilities will be exercised in subsequent scenarios). The
identification requirements may be part of <loc href="#S040">Conversational
Message Exchange</loc>, although this Usage Scenario has not yet
included these capabilities explicitly.</p>
					<p>We are requiring here that the messages be ordered but not
sequenced, even though many of the VAN's on which this usage scenario
is based do offer sequencing. Sequencing would imply that each
message between two partners in a given direction has a sequential
index and that no gaps are allowed. One could then, if desired, set
up a process in which sequential receipt were enforced. That is, if
BigCo gets message 22 from SmallCo and then receives message 24,
BigCo would not accept message 24 (presumably holding it in some
sort of buffer) until message 23 arrived, and probably would throw
some sort of error if it did not arrive in some time period. We are
not including this type of operation in the usage scenario because we
feel that it is fairly unusual actually to make use of this logic.
Moreover, if desired such sequencing could be made part of the
payload and included in the business logic. The only reason we can
think of to include sequencing in the enveloping mechanism would be
to enforce sequencing across different types of business
transaction, and we don't think that this is likely to be very
useful. Would you want to hold up an invoice, for example, because
a message involving HR had not arrived yet?</p>
					<p>The usual security suspects (Accessibility, Authentication,
Authorization, Confidentiality, Integrity and non-Repudiation) are
all matters of concern. Non-Repudiation is of particular
importance, although in practical terms less in terms of a legal
process than simply the ability to say, "You got this invoice on
March 24, and here is your signed confirmation of receipt". That
is, by far the most common scenarios that require non-repudiation
involve people in both companies trying, in good faith, to sort out
something which would go wrong in some transaction. What is
required in these cases is an unambiguous record, not rock-solid
legal proof. Taking these issues to court is a very rare occurrence
given an ongoing trading relationship between businesses. This is
probably a less strong requirement than what is usually called
"non-repudiation", but stronger than "auditing". Perhaps we can
call this requirement "reconciliation".    Various aspects of
					Reconciliation will be
					exercised in the usage scenarios below.</p>
					<p>Other aspects of security are also necessary. It must be
possible for both BigCo and SmallCo to be sure that the messages
they receive are actually from the company that they are supposed
to be. That is, each company must be able to identify itself
unambiguously (<loc href="#S063">Authentication</loc>).
In addition, there is the question of what actions the company is
authorized to request from the web service. For example, BigCo
needs to be able to query SmallCo's web service for a list of
messages that have been sent between these two participants, but
not for information about transactions with other companies that
purchase widgets from SmallCo. Both companies need to be confident
that the communications cannot be tampered with or observed by
third parties, and that third parties cannot send communications
pretending to be who they are not.</p>
					<p>The SmallCo web service knows how to receive and send messages
and will present these messages to users at SmallCo in a browser
window. A SmallCo employee transfers information from the XML to
their bookkeeping system via cut and paste. How does SmallCo
generate the XML that goes into the messages that it sends? The web
service knows how to generate the envelop (message ID, datetime,
and so on), but not the message contents. To assist SmallCo's
either BigCo or the industry standards body provides a web site
that implements messages like "quote" and "invoice" in a web form
into which a SmallCo person types information and which returns
suitably formatted XML in the browser window.</p>
				</div5>
			</div4>
			<div4 id="L1561">
				<head>2. Transaction Log Mismatch</head>
				<div5 id="Goal11">
					<head>Goal / Context</head>
					<p>BigCo has instituted an automated reconciliation procedure to check on a
monthly basis that messages have not been lost by comparing
transaction logs from BigCo and SmallCo. In this scenario a
discrepancy is found and addressed.</p>
				</div5>
				<div5 id="Scenario1rc1">
					<head>Scenario / Steps</head>
					<olist>
						<item>
							<p>At the end of the month the Bigco web service automatically
sends a request to the SmallCo web server for a list of the message
ID's sent and received during that month.</p>
						</item>
						<item>
							<p>The SmallCo response is automatically checked against a list of
messages processed by the purchasing system, and it is found that a
whole bunch of messages show up on SmallCo's logs as sent to Bigco
but not on BigCo's as received and processed.</p>
						</item>
						<item>
							<p>The BigCo web service raises an error condition that is sent to
a person in the Purchasing Department who looks into the
situation.</p>
						</item>
						<item>
							<p>It turns out that all the lost messages were from a particular
weekend during which a server at BigCo was misconfigured and was
trashing messages.</p>
						</item>
						<item>
							<p>BigCo sends a request to the SmallCo web server to resend the
messages in question that have been lost.</p>
						</item>
					</olist>
				</div5>
				<div5 id="Extensions1rc1">
					<head>Extensions</head>
					<p>Somebody from BigCo calls up SmallCo, apologizes, and explains
why they have not been responding in a timely manner.</p>
				</div5>
				<div5 id="Technologi11">
					<head>Technologies / Requirements</head>
					<p>Reconciliation: the SmallCo web service must be able to respond
to (authorized) requests for information about what messages have
been received and/or sent in a time period or between marker
messages. The web service must be capable of resending messages on
request.</p>
				</div5>
			</div4>
			<div4 id="L212rc">
				<head>3. SmallCo Incorrectly Thinks They Weren't Paid</head>
				<div5 id="Goal2rc">
					<head>Goal / Context</head>
					<p>SmallCo thinks that it has not been paid because they did not
get the payment advice. Well, they got it but didn't put it into
their records so they think that they have not been paid. However,
the payment was really made through the bank into their account.
The objective here is to clean up the mess so everyone agrees what
has happened.</p>
				</div5>
				<div5 id="Scenario2rc">
					<head>Scenario / Steps</head>
					<olist>
						<item>
							<p>SmallCo calls their contact in BigCo (a business analyst) and
complains that they were not paid for a particular order. They give
the business analyst the ID of the invoice message.</p>
						</item>
						<item>
							<p>The BigCo purchasing department pulls all the messages involved
with this transaction (the transaction is labeled in the business
process definition, not the web service envelop), and finds that
payment was actually made and confirmed by the bank.</p>
						</item>
						<item>
							<p>BigCo sends copies of this information to SmallCo, including
the message ID of the payment advice and identifying information
for the bank payment. The bank payment information includes
information that links it to the ID of this transaction (again,
this is in the business process definition, not the web service
envelop).</p>
						</item>
						<item>
							<p>SmallCo queries its web service for the payment advice message,
checks its own bank statements, and eventually realizes that they
really were paid and did not book it properly.</p>
						</item>
					</olist>
				</div5>
				<div5 id="Extensions2rc">
					<head>Extensions</head>
					<p>SmallCo calls BigCo and says, "Oops. Looks OK now."</p>
				</div5>
				<div5 id="Technologi2rc">
					<head>Technologies / Requirements</head>
					<p>Reconciliation: the key here is to be able to retrieve messages by ID. The
linkage of the messages into a transaction is beyond the scope of
the web service itself and belongs in the definition of the business process.</p>
				</div5>
			</div4>
			<div4 id="L213">
				<head>4. SmallCo Really Wasn't Paid</head>
				<div5 id="Goal3">
					<head>Goal / Context</head>
					<p>SmallCo sent an invoice and this time they really didn't get
paid. After a while they call BigCo as in the previous scenario.
The objective here is to get SmallCo paid.</p>
				</div5>
				<div5 id="Scenario3">
					<head>Scenario / Steps</head>
					<olist>
						<item>
							<p>SmallCo calls their contact in BigCo (a business analyst) and
complains that they were not paid for a particular order. They give
the business analyst the ID of the invoice message.</p>
						</item>
						<item>
							<p>The BigCo purchasing department pulls all the messages involved
with this transaction (the transaction is labeled in the business
process definition, not the web service envelop), and finds that
payment really wasn't made. Somebody didn't approve it and the
transaction died. (Of course, this is after a flurry of documents,
letters, and phone calls back and forth, not to mention various
emails within BigCo, many of them to people that have never heard
of SmallCo or anything else that has anything to do with the
problem at hand).</p>
						</item>
						<item>
							<p>Somebody at BigCo finally says, "Oops, we really didn't pay
it". BigCo initiates payment.</p>
						</item>
					</olist>
				</div5>
				<div5 id="Extensions3">
					<head>Extensions</head>
					<p>BigCo calls SmallCo and says, "Oops, sorry. My bad. The check is
in the mail."</p>
				</div5>
				<div5 id="Technologi3">
					<head>Technologies / Requirements</head>
					<p>The requirements are really the same as for the last scenario.
We just wanted to illustrate that there are all sorts of ways the
business process can go wrong, no matter what technical
processes are in place, and that the fault may lie on either side of the transaction.</p>
				</div5>
			</div4>
		</div3>
      </div2>
    </div1>
    <div1>
      <head>References</head>
      <ednote>
	<name>HH</name>
	<date>2002-07-16</date>
	<edtext>This section needs some clean up.</edtext>
      </ednote>
      <div2>
	<head>Informative References</head>
	<blist>
	  <bibl key="ebXML MSS" xmlns:xlink="http://www.w3.org/1999/xlink"
	    xlink:type="simple"
	    xlink:show="replace"
	    xlink:actuate="onRequest"
	    href="http://www.oasis-open.org/committees/ebxml-msg/documents/ebMS_v2_0.pdf"
	    id="EBXML"><titleref>ebXML Message Service Specification
	    v2.0</titleref>, OASIS Approved Draft, D. Fischer, et al,
	    1 April 2002.</bibl>
	  <bibl key="SwA" xmlns:xlink="http://www.w3.org/1999/xlink"
	    xlink:type="simple" xlink:show="replace"
	    xlink:actuate="onRequest"
	    href="http://www.w3.org/TR/2000/NOTE-SOAP-attachments-20001211"
	    id="SOAPAttach"><titleref>SOAP Messages with
	    Attachments</titleref>, W3C Note
	    J. Barton, S. Thatte, H. Nielsen, 11 December 2000</bibl>
	  <bibl key="WS-Routing" xmlns:xlink="http://www.w3.org/1999/xlink"
	    xlink:type="simple" xlink:show="replace"
	    xlink:actuate="onRequest"
	    href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/html/wsroutspecindex.asp"
	    id="WSRP"><titleref>Web Services Routing Protocol
	    (WS-Routing)</titleref>, H. Nielsen, S. Thatte,  23 October 2001.</bibl>
	  <bibl key="WSA Charter"
	    xmlns:xlink="http://www.w3.org/1999/xlink"
	    xlink:type="simple" xlink:show="replace"
	    xlink:actuate="onRequest"
	    href="http://www.w3.org/2002/01/ws-arch-charter"
	    id="WSAWGCharter"><titleref>Web Services Architecture
	    Charter</titleref></bibl>
<!--
	  <bibl key="WSAML" xmlns:xlink="http://www.w3.org/1999/xlink"
	    xlink:type="simple" xlink:show="replace"
	    xlink:actuate="onRequest"
	    href="http://lists.w3.org/Archives/Public/www-ws-arch/"
	    id="DiscussionArchive">Web Services Architecture
	  Discussion Archive</bibl>
	  <bibl key="WSACom" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" href="http://lists.w3.org/Archives/Public/www-wsa-comments/" id="CommentArchive">Web Services Architecture Comments Archive</bibl>
-->
	  <bibl key="XMLP Reqs"
	    xmlns:xlink="http://www.w3.org/1999/xlink"
	    xlink:type="simple" xlink:show="replace"
	    xlink:actuate="onRequest"
	    href="http://www.w3.org/TR/2002/WD-xmlp-reqs-20020626"
	    id="SOAPReqs"><titleref>XML Protocol
	    (XMLP) Requirements</titleref>, W3C Working Draft,
	    D. Fallside, et al, 26 June 2002.</bibl>
	  <bibl key="XMLP US"
	    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-xmlp-scenarios-20011217/"
	    id="xmlpuc"><titleref>XML Protocol Usage
	    Scenarios</titleref>, W3C Working Draft, J. Ibbotson, 17
	    December 2001</bibl>
	</blist>
      </div2>
    </div1>
  </body>
  <back>
    <inform-div1>
      <head>Acknowledgments</head>
      <p>A large part of this document was excerpted from the XML
	Protocol Usage Scenarios<bibref ref="xmlpuc"/>, edited by John
	Ibbotson.</p>
      <p>The editors would like to thank the following Working Group
      members for their contributions to this document: Roger
      Cutler.</p>
      <p>@@@ Insert WG membership here</p>
    </inform-div1>
		<inform-div1 id="changelog">
      <head>Web Services Architecture Usage Scenarios Changes</head>
				<table border="1">
					<tbody>
	  <tr>
	    <td>20020716</td>
	    <td>HH</td>
	    <td>Worked on the travel agent service scenario. Added
	    more references to security use cases.</td>
	  </tr>
	    <tr>
	      <td>20020713</td>
	      <td>HH</td>
	      <td>Integrated new version of S061 and S062, and S0621
	      from DBO.</td>
						</tr>
						<tr>
							<td>20020619</td>
							<td>HH</td>
	      <td>Imported <loc
		  href="http://www.w3.org/2002/06/ws-example">Hugo
		  Haas's travel agent use case</loc> and <loc
		  href="http://lists.w3.org/Archives/Public/www-ws-arch/2002Jun/att-0109/02-ws-edi.htm">Roger
		  Cutler's EDI-like Purchasing use case</loc>.</td>
						</tr>
						<tr>
							<td>20020420-20020501</td>
							<td>DBO</td>
							<td>Converted to WS Arch document, added wsd usage scenarios, did personal edits on various scenarios to make more generic, re-organized numbering, added numerous scenarios (security, asynchrony, transactions, discovery), created template, put in first swag at requirements, priorities, candidate technologies</td>
						</tr>
					</tbody>
				</table>
    </inform-div1>
	</back>
</spec>
