Hi, I am using Apache Camel with Spring boot. I want to expose a webservice using CXF endpoints. I have ddefined the CXF endpoint in a configuration file like below
<cxf:cxfEndpoint id="iCalculatorEndpoint" address="http://localhost:9090/calculator" serviceClass="test.ICalculator" serviceName="tns:CalculatorService" endpointName="tns:ICalculator" wsdlURL="wsdl/Hello.wsdl" xmlns:tns="http://Example.org"> <cxf:properties> <entry key="dataFormat" value="POJO" /> </cxf:properties> </cxf:cxfEndpoint> My Boot.java class from where I am starting the spring boot application is as below @SpringBootApplication @EnableAutoConfiguration @ImportResource("classpath:META-INF/camel-config.xml") public class Boot { private final Logger logger = LoggerFactory.getLogger(Boot.class); public static void main(String[] args) { SpringApplication.run(Boot.class, args); } } And my RouteBuilder class is as below @Component public class Routes extends RouteBuilder { private final Logger logger = LoggerFactory.getLogger(Routes.class); @Override public void configure() throws Exception { //from("file://D:/test?fileName=Add.java&noop=true") from("cxf:bean:iCalculatorEndpoint") .process(new Processor() { public void process(Exchange exchange) throws Exception { System.out.println("Reached"); } }) .to("log:incomingPriceDifference_CompleteLog2?level=INFO&showAll=true&multiline=true"); } } When I am running the application, the webservice is getting exposed at http://localhost:9090/calculator, I can see the wsdl at http://localhost:9090/calculator?wsdl, but when I am hitting am operation using SoapUI, the route is not getting invoked. Can anyone please say me what else I need to do? -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-Invoke-a-webservice-exposed-as-cxf-bean-tp5796128.html Sent from the Camel - Users mailing list archive at Nabble.com.