You could probably a customer marshaller on the HTTP component to achieve this, but I have never tried this.
To be honest though, since there is already support for WS-Security in CXF I would just go ahead and use this component.
Thank you Martin.
I am trying to add security header for outgoing notification message to a ws-notification consumer. Somehow the message always goes through http component, I could not ge it to go through CXF bc component. Do you know of any configuration setting to do that?
Thanks again for your help!
Sorry I missed this reply, just noticed it now. Hopefully you're not still stuck.
If you want to invoke on the CXF BC, just ensure that you have set the targetService to point to the CXF BC in the previous endpoint in the flow. You may have this configured to go to the HTTP BC in your flow.