On Tuesday, April 10, 2012 01:55:18 AM rajkumar00 wrote:
> I wrote a CXF client for WCF web service and got the "Signing without
> primary signature requires timestamp" error from the WCF server even the
> timestamp is sent. This is because of the ordering of the timestamp tag
> in the SOAP Security header.
> 
> I want to write a CXF Interceptor which can reorder the headers in SOAP
> header as I want. Can someone help?

You can likely do something like:

SOAPMessage msg = msg.getContent(SOAPMessage.class)

and use the SAAJ and DOM API's two move the various headers around as 
needed.  If run after the WSS4JOutInterceptor, the SAAJ model should be 
there and usable.

Dan




> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/COnsuming-WCF-web-service-using-CXF-WSS4J
> -tp5629381p5629381.html Sent from the cxf-issues mailing list archive at
> Nabble.com.
-- 
Daniel Kulp
d...@kulp.com
http://dankulp.com/blog

Reply via email to