如何以编程方式为Camel CXF端点添加SOAP处理程序?

时间:2019-03-15 07:21:02

标签: soap apache-camel cxf camel-cxf

在直接实现CXF端点时,我可以使用以下代码添加SOAP处理程序:

Handler myHandler = new MyCustomHandler();
EndpointImpl endpoint = new EndpointImpl(bus, myService);
endpoint.getHandlers().add(myHandler);
endpoint.publish("/service/endpoint");

在我使用Camel Java DSL定义端点时如何做?

例如:

from("cxf:/service/endpoint?serviceClass=" + MyServicePortType.class.getName())
    // here I would like to add my MyCustomHandler too!
    .to("direct:serviceProcessing");

直接在Spring(cxf:cxfEndpoint)中创建CXF端点时对documentation进行编码,可以通过cxf:handlers指定处理程序。

使用Java DSL创建CXF端点时是否有与此等效的东西?

0 个答案:

没有答案
相关问题