Web services Mule cxf客户端和wcf服务交互
我有这样的工作流程Web services Mule cxf客户端和wcf服务交互,web-services,wcf,mule,esb,Web Services,Wcf,Mule,Esb,我有这样的工作流程 <flow name="testmulewcfFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/GetData" doc:name="HTTP"/> <set-payload value="#[message.inboundProperties.'http.query.params'.value]" doc:name="Set Payload
<flow name="testmulewcfFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/GetData" doc:name="HTTP"/>
<set-payload value="#[message.inboundProperties.'http.query.params'.value]" doc:name="Set Payload"/>
<cxf:jaxws-client port="CXFWebservicePort" operation="GetData" serviceClass="com.mulesoft.wcfconsumer.IService1" doc:name="CXF"/>
<object-to-string-transformer doc:name="Object to String"/>
</flow>
但我打电话时:
我得到一个错误:
找到意外的包装器元素{}GetData。应为{}GetDataResponse。。无法通过终结点org.mule.module.cxf.CxfOutboundMessageProcessor路由事件。消息负载的类型为:PushbackInputStream
我做错了什么?由于在cxf:jaxws客户端之后的末尾没有实现出站端点,所以您面临这个问题
在末尾放置一个外挂端点,该端点将使用http:request组件调用您的外部web服务:-I inserted并在发送http请求时出错。消息有效负载的类型为:byte[]我需要在有效负载之后放置任何转换器吗?您可以尝试使用byte-to-String transformer并检查它是否工作
public class Service1 : IService1
{
public string GetData(string value)
{
return string.Format("You entered: {0}", value);
}
}