Jaxws and the camel route in servicemix

I would like to do something like this:

<jaxws:endpoint id="AbcEsbHTTPEndpoint" implementor="com.abc.esb.ABCWSServiceImpl" address="/ABCWSServiceService" wsdlLocation="wsdl/ABCWSService.wsdl" endpointName="e:ABCWSService" serviceName="s:ABCWSServiceService" xmlns:e="http://com.abc.esb/abcesb/services/ABCWSService" xmlns:s="http://com.abc.esb/abcesb/services/ABCWSService"> </jaxws:endpoint> <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="cxf:bean://ABCWSServiceService"/> <to uri="cxf:bean:decodeClient"/> </route> </camelContext> <jaxws:client id="decodeClient" address="http://ESB-DEV1:9081/abcesb/services/Decoder" wsdlLocation="http://ESB-DEV1:9081/abcesb/services/Decoder?wsdl" serviceClass="com.abc.esb.ABCServiceInterface" abstract="true" > </jaxws:client> 

I do not understand how to configure the camel route from <jaxws:endpoint > to <jaxws:client > . What syntax to use? I know that you can use <cxf:cxfEndpoint > , but I do not want to use this if I do not need it.

I know how to do this with JBI, but I want to deploy it to servicemix using the OSGI package, not the JBI.

+4
source share
2 answers

jaxws:client jaxws:client , which you have in your configuration, is an endpoint such as jaxws:endpoint and can be connected using the bean component

 <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="bean:AbcEsbHTTPEndpoint"/> <to uri="bean:decodeClient"/> </route> </camelContext> 

Usually you need to do something between them - say, in order to somehow adapt the message, but at least it will achieve routing.

+2
source

See some cxf examples from examples in camel distribution. They show how to configure cxf, not jbi.

-4
source

Source: https://habr.com/ru/post/1341702/


All Articles