Removing camel HTTP Headers
When trying to invoke a json rest service from a route in my CXF soap web service using HTTP4. I got the following error:
“If you are forwarding/bridging http endpoints, then enable the bridgeEndpoint option on the endpoint:”
It appeared that camel was trying to send more information then required. This because CXF uses / generates some HTTP headers. These headers are fine for CXF but when using HTTP4 it gave me the error.
In order to solve this I stumbled upon this post of RedHat.
By simply removing all the camel HTTP headers I was able to successfully call my json service. You can remove the headers with the following statement in your route: