Hi All, Below is the SOAP request which I am sending:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.test.com"> <soapenv:Header> <web:system>valueHeader</web:system> </soapenv:Header> <soapenv:Body> <web:authenticateUser> <!--Optional:--> <web:username>valueUsername</web:username> <!--Optional:--> <web:password>valuePassword</web:password> </web:authenticateUser> </soapenv:Body> </soapenv:Envelope> In In-Interceptor configured for input request, I am trying to retrieve header value from SoapMessage but always getting blank list. Following code used: protected List<Header> getHeader(SoapMessage message){ return message.getHeaders(); } I am not able to retrieve the value from <soapenv:Header>. My interceptor is working on Phase.PRE_INVOKE. How can I retrieve the header value in In-Interceptor? Note: I have tried using WebServiceContext and always getting null for it. Also its been suggested not to use WebServiceContext in interceptors: https://issues.apache.org/jira/browse/CXF-2674 Please help. Thanks, Puneet.
