I think you should create central route and next use content based router.
Name of current operation is stored in header CxfConstants.OPERATION_NAME.

Something like this:
from(...cxf...)
            .choice()
               
.when(header(CxfConstants.OPERATION_NAME).isEqualTo(operationA))
                    .to("direct:operationARoute")
               
.when(header(CxfConstants.OPERATION_NAME).isEqualTo(operationB))
                    .to("direct:operationBRoute")
                .otherwise()
                    .to("direct:unsupportedOperation");



--
View this message in context: 
http://camel.465427.n5.nabble.com/exposing-different-operations-under-same-service-in-camel-cxf-routing-tp5716944p5716950.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to