Soap 公开JAX-WSWebService并以驼峰路线使用它
我必须公开一个web服务。给出了wsdl。 webservice方法返回void。 我想在驼峰路径中使用反序列化的POJO。 我不知道怎么做Soap 公开JAX-WSWebService并以驼峰路线使用它,soap,apache-camel,jax-ws,Soap,Apache Camel,Jax Ws,我必须公开一个web服务。给出了wsdl。 webservice方法返回void。 我想在驼峰路径中使用反序列化的POJO。 我不知道怎么做 <jaxws:endpoint id="citdelegee" address="/citdelegee" serviceName="citService" endpointName="cit" implementor="#citdelegeeImpl"> </jaxws:endpoint>
<jaxws:endpoint
id="citdelegee"
address="/citdelegee"
serviceName="citService"
endpointName="cit"
implementor="#citdelegeeImpl">
</jaxws:endpoint>
<bean id="citdelegeeImpl"
class="de.iteos.egov.advisadaptor.services.DelegeeService"/>
如何从startProcess方法中将某些内容放入骆驼路线中?
我应该部署在Apache ServiceMix 7上。在startProcess方法中,您可以将对象放入ActiveMQ队列或保存到数据库,然后在路由中读取它。我认为您必须使用camel cxf端点,而不是jaxws。请参阅my,其中我解释了两个端点之间的差异(这是针对REST的,但cxf端点也支持SOAP)。请参阅from Camel文档以及端点如何作为Camel路由的起始端点。
@WebService(name = "citdelegee")
public class DelegeeService {
@WebMethod
public void startProcess(@WebParam(name = "uuid", targetNamespace = "") String uuid)
throws DelegeeFault_Exception {
//Do some processing
//Can I put an object into the camel context here”
}
}