【发布时间】:2015-04-17 02:21:55
【问题描述】:
我有这样的工作流程
<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>
我想从 mule anypoint studio 使用非常简单的 wcf 服务
public class Service1 : IService1
{
public string GetData(string value)
{
return string.Format("You entered: {0}", value);
}
}
但我打电话时:http://localhost:8081/GetData?value=hello 我得到错误: 发现意外的包装元素 {http://tempuri.org/}GetData。预期 {http://tempuri.org/}GetDataResponse.. 无法通过端点路由事件:org.mule.module.cxf.CxfOutboundMessageProcessor。消息负载的类型:PushbackInputStream
我做错了什么?
【问题讨论】:
标签: web-services wcf mule esb