Providing multiple web service operations within a single route
The Camel CXF Component has the ability to allow a Camel route to act as a SOAP (or REST) web service listener as we saw in the Implementing a web service with a Camel route recipe. Most web services expose more than one operation as part of their interface. This recipe will show you a strategy for handling multiple web service operations within a single Camel route acting as a web service frontend.
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>ws-payments-api</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
This recipe's example is based on paymentService2.wsdl
, whose interface has two operations...