W3C home > Mailing lists > Public > public-ws-policy@w3.org > February 2007

RE: xml:base test case

From: Asir Vedamuthu <asirveda@microsoft.com>
Date: Tue, 20 Feb 2007 16:09:58 -0800
To: Christopher B Ferris <chrisfer@us.ibm.com>, "public-ws-policy@w3.org" <public-ws-policy@w3.org>
Message-ID: <C9BF0238EED3634BA1866AEF14C7A9E534E551C866@NA-EXMSG-C116.redmond.corp.microsoft.com>
Thank you for contributing a test case for xml:base. We suggest adding the test case and the resulting policy expression (in the normal form with four policy alternatives) to Round 1 [1] (say Policy28.xml).

[1] http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/interop/Round1/

Regards,

Asir S Vedamuthu
Microsoft Corporation


From: public-ws-policy-request@w3.org [mailto:public-ws-policy-request@w3.org] On Behalf Of Christopher B Ferris
Sent: Tuesday, February 13, 2007 4:22 PM
To: public-ws-policy@w3.org
Subject: xml:base test case


Per my ACTION-204, here is a test scenario for xml:base

Store this document at http://@@@/common/Protection

<wsp:Policy
        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
        xmlns:wsp="http://www.w3.org/ns/ws-policy"
        xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
        wsu:Id="Protection" >
  <sp:EncryptSignature wsp:Optional="true" />
  <sp:ProtectTokens wsp:Optional="true" />
</wsp:Policy>

This policy expression references the expression above using a relative URI
with the xml:base expressed in the wsp:Policy element.

<wsp:Policy
        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
        xmlns:wsp="http://www.w3.org/ns/ws-policy"
        xml:base="http://@@@/common/">
  <wsp:PolicyReference URI="Protection" />
  <sp:OnlySignEntireHeadersAndBody />
</wsp:Policy>

The resulting policy expression MUST normalize to:

<wsp:Policy
        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
        xmlns:wsp="http://www.w3.org/ns/ws-policy">
  <wsp:ExactlyOne>
    <wsp:All>
      <sp:OnlySignEntireHeadersAndBody />
      <sp:EncryptSignature wsp:Optional="true" />
      <sp:ProtectTokens wsp:Optional="true" />
    </wsp:All>
  </wsp:ExctlyOne>
</wsp:Policy>


Cheers,

Christopher Ferris
STSM, Software Group Standards Strategy
email: chrisfer@us.ibm.com<mailto:chrisfer@us.ibm.com>
blog: http://www.ibm.com/developerworks/blogs/page/chrisferris
phone: +1 508 377 9295
Received on Wednesday, 21 February 2007 00:10:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:20:47 GMT