Thanks @Freeman and @Mark.
I tired the PhaseInterceptorChain.getCurrentMessage and it works.

Message msg = PhaseInterceptorChain.getCurrentMessage();
List<Header> headers = CastUtils.cast((List<?>)
msg.get(Header.HEADER_LIST));
for(Header hd : headers){
                                if (hd!=null){
                                Element e = (Element)hd.getObject();
                                System.out.println("dom element is ---> " + e);
                                System.out.println("value sent is ---> " + 
e.getTextContent());
                                }




--
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-share-data-between-soap-header-and-web-service-methods-in-apache-cxf-tp5735950p5736004.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to