Hello Shyam, I achive my security scenario using the samples in:
/home/.../JAVA/apache-cxf-2.3.0/samples/ws_security (and mail list help :)
).

I'll send you some piece of code.

Regards,

JP



2011/2/22 Shyam <[email protected]>

> Hi,
>
> I have to create a client for a wsdl which has complex policies. The policy
> declaration is given below.
> <sp:SignedParts xmlns:sp="
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>                                        <sp:Body/>
>                                        <sp:Header Namespace="
> http://www.w3.org/2005/08/addressing"/>
>                                </sp:SignedParts>
>                                <sp:SignedElements xmlns:sp="
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>                                        <sp:XPath>/*[namespace-uri()=&apos;
> http://schemas.xmlsoap.org/soap/envelope/&apos;
>                                                and
>
>  local-name()=&apos;Envelope&apos;]/*[namespace-uri()=&apos;
> http://schemas.xmlsoap.org/soap/envelope/&apos;
>                                                and
>
>  local-name()=&apos;Header&apos;]/*[namespace-uri()=&apos;
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&apos
> ;
>                                                and
>
>  local-name()=&apos;Security&apos;]/*[namespace-uri()=&apos;
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&apos
> ;
>                                                and
> local-name()=&apos;Timestamp&apos;]</sp:XPath>
>                                        <sp:XPath>/*[namespace-uri()=&apos;
> http://www.w3.org/2003/05/soap-envelope&apos;
>                                                and
>
>  local-name()=&apos;Envelope&apos;]/*[namespace-uri()=&apos;
> http://www.w3.org/2003/05/soap-envelope&apos;
>                                                and
>
>  local-name()=&apos;Header&apos;]/*[namespace-uri()=&apos;
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&apos
> ;
>                                                and
>
>  local-name()=&apos;Security&apos;]/*[namespace-uri()=&apos;
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&apos
> ;
>                                                and
> local-name()=&apos;Timestamp&apos;]</sp:XPath>
>                                </sp:SignedElements>
>
>
> I have a spring configuration file which contains the client. How can i
> configure this policy using spring client?
>
> Please help.
>
> Thanks and regards,
> Shyam S

Reply via email to