2 Replies Latest reply on Mar 2, 2015 4:11 AM by niteshjain132

    Getting SOAP-Request Headers in Response

    niteshjain132

      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