Hi Thilina.

I do it what you suggest but no chance in the error.

By the way I have a type mismatch in this line:

Policy policy = PolicyEngine.getPolicy(builder.getDocumentElement());

Chance by that:
org.apache.neethi.Policy policy =
PolicyEngine.getPolicy(builder.getDocumentElement());

is that right, or I miss a import?

Jorge.

-----Original Message-----
From: Thilina Mahesh Buddhika [mailto:[email protected]] 
Sent: domingo, 28 de marzo de 2010 3:02
To: [email protected]
Subject: Re: Transport level security error

Hi Jorge,

Try setting the corresponding policy at the client's end.

StAXOMBuilder builder = new StAXOMBuilder("path/to/policy"); 

Policy policy = PolicyEngine.getPolicy(builder.getDocumentElement());

options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, servicePolicy);

Thanks.
/thilina


Reply via email to