【发布时间】:2016-01-16 07:34:44
【问题描述】:
我正在尝试使用 mule 连接到带有 cxf 的肥皂 ws。我想要的只是调用带有有效负载的外部 ws 并将响应返回到流中。
我的配置看起来像这样:
<flow name="flow1">
<http:listener config-ref="HTTP_Listener_Configuration" path="/test" doc:name="HTTP"/>
<custom-transformer class="WsPayload" doc:name="WsPayload"/>
<cxf:jaxws-client operation="createCustomer" decoupledEndpoint="http://localhost:8088/test" port="ServicePort" serviceClass="CustomerService" doc:name="CXF" />
</flow>
我遇到的问题是我得到了这个响应:
No such operation: createCustomer. Failed to route event via endpoint: org.mule.module.cxf.CxfOutboundMessageProcessor. Message payload is of type: CreateCustomerRequest
我几乎尝试了所有方法。我知道该服务在那里,它目前在soap ui中作为模拟服务运行。知道为什么这会失败吗?另外,在 mule 中有没有更好的方法来做到这一点?
【问题讨论】:
-
能否发布您的 WSDL 以及您使用的是哪个版本的 Mule?