W3C home > Mailing lists > Public > xmlp-comments@w3.org > June 2009

Use of SOAP 1.1 namespace for Update element

From: FUJISAWA Jun <fujisawa.jun@canon.co.jp>
Date: Mon, 15 Jun 2009 14:18:14 +0900
To: xmlp-comments@w3.org
Cc: Jean-Jacques Moreau <jean-jacques.moreau@crf.canon.fr>
Message-Id: <20090615135956.74FF.2E34A820@canon.co.jp>
Hello XML Protocol WG,

Here is a copy of Example 8 from SOAP 1.2 2nd edition.

<http://www.w3.org/TR/soap12-part1/#version>

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
 <env:Header>
  <env:Upgrade>
   <env:SupportedEnvelope qname="ns1:Envelope" 
             xmlns:ns1="http://www.w3.org/2003/05/soap-envelope"/>
   </env:Upgrade>
  </env:Header>
  <env:Body>
   <env:Fault>
    <faultcode>env:VersionMismatch</faultcode>
    <faultstring>Version Mismatch</faultstring>
   </env:Fault>
 </env:Body>
</env:Envelope>

Does the use of SOAP 1.1 namespace for Update and SupportedEnvelope
elements in this example correct?

These elements are defined in SOAP 1.2, and should not be part of SOAP
1.1 vocabulary. Therefore, my understanding is that we should use SOAP
1.2 namespace for both Update and SupportedEnvelope elements like the
following modified example.

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
 <env:Header>
  <env12:Upgrade xmlns:env12="http://www.w3.org/2003/05/soap-envelope">
   <env12:SupportedEnvelope qname="ns1:Envelope" 
             xmlns:ns1="http://www.w3.org/2003/05/soap-envelope"/>
   </env12:Upgrade>
  </env:Header>
  <env:Body>
   <env:Fault>
    <faultcode>env:VersionMismatch</faultcode>
    <faultstring>Version Mismatch</faultstring>
   </env:Fault>
 </env:Body>
</env:Envelope>

-- 
Jun Fujisawa
<mailto:fujisawa.jun@canon.co.jp>
Received on Monday, 15 June 2009 05:18:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:42:29 GMT