Hi, I am trying to set custom headers on a camel message. Now when this message gets converted to Cxf message and becomes a part of the CxfExchange then the custom headers are put into the Cxf message depending on the DataFormat (Payload/Message/Pojo).
For Payload the headers are placed under PROTOCOL_HEADERS For POJO i guess it is placed under SOAP headers For Message headers i guess the message is a SOAP message so it should go as part of the SOAP header (not sure). The point is that the extraction of headers during the invocation of the CXF interceptor chain becomes then coupled with the DataFormat and makes it unnecessarily complex. This is not the case when custom properties are added to the Camel exchange. All custom properties then available under INVOCATION_CONTEXT / REQUEST_CONTEXT and that behavior is common and not dependent on the DataFormat of the messages contained inside the exchange. Is there a cleaner way to place the custom message headers in only one place? Best Regards, Madhav -- View this message in context: http://camel.465427.n5.nabble.com/CfxBinding-places-custom-headers-at-different-places-tp3354431p3354431.html Sent from the Camel - Users mailing list archive at Nabble.com.
