Hello,
I have the following set up:
bean > camel > cxf-bc
Problem is that cxf-bc does not copy headers.
Bean code:
public void onMessageExchange(MessageExchange exchange) throws
MessagingException {
if (exchange.getStatus() == ExchangeStatus.ACTIVE) {
NormalizedMessage out = exchange.createMessage();
out.setContent(in.getContent());
setHeaders(out);
exchange.setMessage(out, "out");
channel.send(exchange);
}
}
private void setHeaders(NormalizedMessage message) throws MessagingException
{
Map <String,String> headers = new HashMap <String,String>();
headers.put("Part", "value");
message.setProperty(JbiConstants.PROTOCOL_HEADERS, headers);
}
in camel routing i use "serialization=nocheck" option.
wsdl contains headers for that operation:
<wsdl:operation name="OpName">
<soap:operation soapAction="urn:Action" style="document"/>
<wsdl:input>
<soap:header message="tns:Head" part="Part" use="literal"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="Fault">
<soap:fault name="Fault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
So in bean component i add header to NormalizedMessage and cxf-bc calls WS
without headers (it does not copies headers to soap messgae), what i am
doing wrong ?
Thanks
--
View this message in context:
http://old.nabble.com/Can%27t-add-headers-to-soap-message-tp28699491p28699491.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.