Web service proxying
The proxying of requests through to backend services is a common use case for Camel. Decoupling the web service client from the backend service allows you to more easily move or change the backend, as you only need to update the proxy code, as opposed to all of the client systems that would otherwise use the backend directly. This technique is known as endpoint virtualization.
A proxy may also be used to impose a security or auditing layer, for use cases such as exposing the original service to new types of clients, for example, ones external to your company.
This recipe will show you the basics of creating a simple web service proxy in Camel.
Getting ready
This recipe assumes that you have a project with JAX-WS artifacts created as described in the Generating the service stubs from a WSDL recipe. To use the generated API, you need to include a dependency to that project in your build:
<dependency> <groupId>org.camelcookbook.examples</groupId> <artifactId...