You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by Shyamranny <sh...@proxysystemsindia.com> on 2011/02/22 09:50:26 UTC

How to configure SignedElements in CXF client

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
-- 
View this message in context: http://cxf.547215.n5.nabble.com/How-to-configure-SignedElements-in-CXF-client-tp3395226p3395226.html
Sent from the cxf-issues mailing list archive at Nabble.com.