Test submission: SOAP mustUnderstand fault and wsa:FaultTo

I would like to submit the following test for WS-Addressing 1.0 SOAP
Binding, which is based on a discussion we had previously on the
mailing list[1],[2].

Cheers,

Hugo

• Overview

A SOAP sender S sends a SOAP message M to a SOAP received R over the
HTTP binding using POST, i.e. the request-response MEP.

This message M contains:
- WS-Addressing 1.0 headers
- a wsa:Fault-To header set to a value of
  "http://www.w3.org/2005/08/addressing/none", saying that C does not
  want to receive any fault.
- a SOAP header marked with @mustUndertand="true" which cannot be
  understood by R.

R receives M, follows the SOAP processing model, realizes that there
is a SOAP header block marked with @mustUndertand="true" that it does
not understand, does not do any processing of the message, and sends
back to S a SOAP mustUnderstand fault F.

• Messages exchanged.

M sent from S to R over an HTTP request:

  <?xml version='1.0' ?>
  <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
  xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <env:Header>
    <wsa:MessageID>http://example.com/bd185f7f-30fd-4c9a-a8c1-3b1cdb37a5fe</wsa:MessageID>
    <wsa:FaultTo>
     <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
    </wsa:FaultTo>
    <wsa:To>http://example.com/R</wsa:To>
    <wsa:Action>http://example.com/alertNotification</wsa:Action>
    <!-- The following is a header which will not be understood -->
    <n:alertcontrol xmlns:n="http://example.org/alertcontrol"
      env:mustUnderstand="true">
     <n:priority>1</n:priority>
     <n:expires>2001-06-22T14:00:00-05:00</n:expires>
    </n:alertcontrol>
   </env:Header>
   <env:Body>
    <m:alert xmlns:m="http://example.org/alert">
     <m:msg>Pick up Mary at school at 2pm</m:msg>
    </m:alert>
   </env:Body>
  </env:Envelope>

F sent from R to S over the HTTP response:

  <?xml version='1.0' ?>
  <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
   <env:Header>
    <env:NotUnderstood qname="n:alertcontrol"
                       xmlns:t="http://example.org/alertcontrol"/>
   </env:Header>
   <env:Body>
    <env:Fault>
     <env:Code>
      <env:Value>env:MustUnderstand</env:Value>
     </env:Code>
     <env:Reason>
      <env:Text xml:lang="en-US">Header not understood</env:Text>
     </env:Reason>
    </env:Fault>
   </env:Body>
  </env:Envelope>

  1. http://lists.w3.org/Archives/Public/public-ws-addressing-comments/2005Jun/0003.html
  2. http://lists.w3.org/Archives/Public/public-ws-addressing/2005Jun/0040.html
-- 
Hugo Haas - W3C
mailto:hugo@w3.org - http://www.w3.org/People/Hugo/

Received on Thursday, 25 August 2005 12:42:03 UTC