Can you try to create a new exchange or use the out exchange when calling the
proxied service? In my code, I have a special processor which copies a few
headers to the out exchange and then calls it. This will remove all the
exchange headers from the original exchange and remove a lot of the Came
My impression was that cxf was supported to remove the headers
automatically when it processed them. Switching everything to POJO doesnt
solve the problem. The proxied service still recieves the WS-Security
headers (even though they were already taken care of my the proxy). This is
the output using
If you switch the data format to POJO, you should not see the security header
any more.
If you still need to use PAYLOAD data format, you need to clean up the soap
header of the payload message, as camel-cxf doesn’t put the soap header into
camel message header.
--
Willem Jiang
Red Hat, Inc.
Use the camel-cxf component [1]. The documentation at [2] is also helpful
to get started.
[1] http://camel.apache.org/cxf.html
[2] http://cxf.apache.org/docs/ws-security.html
Best,
Christian
-
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team