我有cxf和jwx发布了soap webservices,为此我想将它们集成到apache camel中。我试图运行一个简单的例子来获取routEntryPointService作为我的入口点。这是spring中的配置文件。当我尝试在tomcat中部署它时,我得到一个错误Soap 1.1端点已经在地址test / myService上注册,在org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:863)请帮帮我什么是我做错了。
如果我不添加cxf端点入口和camel条目,我的服务将成功部署。我使用的是cxf版本2.5.0.fuse-70-084和驼峰版本2.9.0.fuse-70-084
这是我的配置文件。
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<context:component-scan base-package="com.connecture.exemplar.group" />
<bean id="groupDao" class="com.connecture.exemplar.group.daos.impl.GroupDaoImpl" />
<bean id="group" class="com.connecture.exemplar.group.service.impl.GroupImpl" />
<bean id="groupProxyFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="com.connecture.exemplar.group.service.Group" />
<property name="address" value="http://localhost:8181/exemplar/Group?wsdl" />
</bean>
<bean id="groupClient" class="com.connecture.exemplar.group.service.Group"
factory-bean="groupProxyFactory" factory-method="create" lazy-init="true" />
<cxf:cxfEndpoint id="tryWebService" address="abc/ws"
serviceClass="com.connecture.exemplar.group.integration.services.RouteEntryService">
<cxf:properties>
<entry key="dataFormat" value="POJO" />
<entry key="setDefaultBus" value="true" />
</cxf:properties>
</cxf:cxfEndpoint>
<camel:camelContext trace="true">
<camel:route>
<camel:from uri="tryWebService" />
<camel:to uri="bean:routeEntryRequestProcessor" />
<camel:to uri="bean:groupClient?method=findGroup" />
<!-- <camel:to uri="bean:routeExitResponseProcessor"/> -->
</camel:route>