Discussion:
to uri cxf endpoint in springdsl problem for SpringBoot+Camel
Wang Yan
2018-11-20 16:36:25 UTC
Permalink
when i use SpringDSL under SpringBoot, i should only use routes in xml
not camelContext, since springboot will take care of cameContext

when i convert my javaDSL to below SpringDSL

the to uri cxf endpoint below does not work , it used to work with javadsl
<to uri="cxf://
http://localhost:9999/mock_service?dataFormat=MESSAGE&amp;wsdlURL=wsdl%2Fmockservice.wsdl"
/>

java.lang.IllegalArgumentException: Can't find the BindingOperationInfo
with operation name

<routes xmlns="http://camel.apache.org/schema/spring">
<onException>
<exception>java.lang.Exception</exception>
<log message="##### Error happened ##### ${body}" loggingLevel="ERROR" />
</onException>
<route id="test">
<from uri="cxf://http://{{soap.ip}}:{{soap.port}}/{{soap.service}}?dataFormat=MESSAGE&amp;wsdlURL=wsdl%2Fmyservice.wsdl"
/>
<convertBodyTo type="java.lang.String" />
<to uri="cxf://
http://localhost:9999/mock_service?dataFormat=MESSAGE&amp;wsdlURL=wsdl%2Fmockservice.wsdl"
/>
</route>
</routes>

Loading...