Hi JF,

We do not support the WS-SX WS-SecurityPolicy specification yet.
Rampart supports only July 2005 version [1]

In the current implementaiton you will have to include the supporting
token in a bindding as shown in the sample 1  in the "policy" samples.

Thanks,
Dimuthu

[1] http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf


On 1/23/07, footh <[EMAIL PROTECTED]> wrote:
I am getting the above error when I try to invoke a
web service programmatically using WS-SecurityPolicy
examples I found at this link:

http://www.oasis-open.org/committees/download.php/21422/UseCases-Examples-6-06-draft-8-03-distr-tc.doc

For example, I am using this policy file:

<wsp:Policy
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
  <sp:SupportingToken
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
    <wsp:Policy>
      <sp:UserNameToken>
        <wsp:Policy>
          <sp:HashPassword/>
        </wsp:Policy>
      </sp:UserNameToken>
    </wsp:Policy>
  </sp:SupportingToken>
  <ramp:RampartConfig
xmlns:ramp="http://ws.apache.org/rampart/policy";>
    <ramp:user>alice</ramp:user>

<ramp:passwordCallbackClass>org.apache.rampart.samples.policy.sample01.PWCBHandler</ramp:passwordCallbackClass>
  </ramp:RampartConfig>
</wsp:Policy>

And the error occurs.  When I use the policy file from
sample01 in the rampart distribution, I don't get the
error.  Can anyone point out what is going wrong here?
 I'm trying to use as simple a policy file as
possible.

Regards,

JF



____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to