Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web services Mule cxf客户端和wcf服务交互_Web Services_Wcf_Mule_Esb - Fatal编程技术网

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);
        }
    }