You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by niteshjain <ni...@gmail.com> on 2015/03/02 08:34:56 UTC

Avoid Soap Headers in SOAP-Response

when i invoke a camel cxf endpoint by passing Headers, i get the same headers
in response, is there any way to ignore the headers only in response.

This is how i get Headers-

public void processHeaders(@Header("org.apache.cxf.headers.Header.list")
List<SoapHeader> soapHeaders,
			Exchange exchange) {
          //Getting headers here and adding them to exchange
}

i tried removing headers from exchange before sending response -

exchange.getIn().removeHeader("TransactionID");
exchange.getIn().removeHeader("org.apache.cxf.headers.Header.list");

but still getting headers in response.

any help would be appreciated.

Thanks,
Nitesh



--
View this message in context: http://camel.465427.n5.nabble.com/Avoid-Soap-Headers-in-SOAP-Response-tp5763362.html
Sent from the Camel Development mailing list archive at Nabble.com.