servicemix中的jaxws和camel路由

gui*_*ido 5 apache-camel apache-servicemix

我想做这样的事情:

<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>  
Run Code Online (Sandbox Code Playgroud)

我不明白如何配置骆驼路由从<jaxws:endpoint><jaxws:client> 使用的语法是什么?我知道你可以使用<cxf:cxfEndpoint>但如果我不需要,我不想使用它.

我知道如何使用JBI执行此操作,但我想使用OSGI包而不是JBI将其部署到servicemix中.

Cla*_*sen -4

请参阅 Camel 发行版示例中的一些 cxf 示例。他们展示了如何设置 cxf,而不是设置 jbi。

  • 克劳斯……我知道你很聪明,因为你发明了骆驼。但我们能看到一些实际的代码吗?我一直在寻找路由到 jax-ws 端点/从 jax-ws 端点路由的实际示例,但找不到。作为 Camel 的主要创建者,您将是给出示例(甚至是链接之类的东西?)的最佳人选。如果您发布示例,我将删除对此答案的反对票。干杯。 (2认同)