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()=' > http://schemas.xmlsoap.org/soap/envelope/' > and > > local-name()='Envelope']/*[namespace-uri()=' > http://schemas.xmlsoap.org/soap/envelope/' > and > > local-name()='Header']/*[namespace-uri()=' > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&apos > ; > and > > local-name()='Security']/*[namespace-uri()=' > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&apos > ; > and > local-name()='Timestamp']</sp:XPath> > <sp:XPath>/*[namespace-uri()=' > http://www.w3.org/2003/05/soap-envelope' > and > > local-name()='Envelope']/*[namespace-uri()=' > http://www.w3.org/2003/05/soap-envelope' > and > > local-name()='Header']/*[namespace-uri()=' > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&apos > ; > and > > local-name()='Security']/*[namespace-uri()=' > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&apos > ; > and > local-name()='Timestamp']</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
