I'm trying to write an interceptor in the CXF soap client and server to
convey out-of-band data (a string).
I have configured the interceptors and verified that they're both firing.
The client does this:
Header header = new Header(
new QName("http://service.web.ovation.aesd.xxxx.com", "token"),
"TEST_TOKEN",
new JAXBDataBinding(String.class));
soapMessage.getHeaders().add(header);
On the server, soapMessage.getHeaders() returns an empty list.
I tried adding the header to my wsdl and that didn't work either:
<message name="TokenMessage">
<part name="token" element="ct:token"/>
</message>
...
In each binding/operation/input element, I added the header:
<input>
<soap:body use="literal" parts="guideRequest"/>
<soap:header message="tns:TokenMessage" part="token"/>
</input>
No luck with that either. Still empty list of headers on the server.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Soap-CXF-Interceptor-Add-out-of-band-SOAP-headers-tp5483047p5483047.html
Sent from the cxf-user mailing list archive at Nabble.com.