You can't.
Your CXF route will receive the web service requests for all operations and
you have to add a content based router to handle the different operations
different. E.G.:
from("vm:common-gateway")
.choice()
.when(header("operationName").isEqualTo("findAccounts"))
.to("direct:findAccounts")
.when(header("operationName").isEqualTo("findOrders"))
.to("direct:findOrders")
...
Best,
Christian Müller
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Sun, Jun 2, 2013 at 9:36 PM, Hilde <[email protected]> wrote:
> Dear Listener,
>
> we have a web service with several operation in it. Now I would like to
> build for each operation
> a dedicated web service consumer route. How can I configure each route to
> listen only for
> one operation instead of listen to all of them.
> Here is my cxf endpoint configured:
>
>
> *<camelcxf:cxfEndpoint id="orderService" address="/engine/datacombination"
>
>
> serviceClass="com.company.production.engine.datacombination.OrderDataMerging"
> wsdlURL="wsdl/OrderDataMerging.wsdl">
> <camelcxf:properties>
> <entry key="dataFormat" value="POJO" />
> </camelcxf:properties>
> </camelcxf:cxfEndpoint>*
>
>
> With just one operation it was not a problem to configure the web service
> consumer route like
> this:
>
> *from("cxf:bean:orderService").routeId(RouteID.WEB_SERVICE_ORDER)*
>
>
> Again, how can I configure the web service consumer route to listen only
> for
> a special
> operation?
>
> Thank you very much
> Hilde
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/A-web-service-consumer-route-per-operation-tp5733630.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>