【发布时间】:2013-10-28 19:56:20
【问题描述】:
我开始使用 Mule ESB。我正在尝试构建一个接收 SOAP 请求并将其重定向到 SOAP 服务的 SOAP 代理服务。
这样一个简单的例子就可以正常工作 -
<flow name="http_redirectFlow1" doc:name="http_redirectFlow1">
<http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:8092/HelloProxyService" doc:name="HTTP"/>
<http:outbound-endpoint exchange-pattern="request-response" method="POST" address="http://localhost:8080/soapsvc/hello" contentType="text/xml" doc:name="HTTP"/>
</flow>
现在我想将请求的内容转储到文件中。最好的方法是什么?我尝试通过在入站和出站端点之间插入此段来使用文件连接器 -
<file:outbound-endpoint path="c:/temp" outputPattern="temp.txt" responseTimeout="10000" doc:name="File"/>
但这似乎不起作用。我收到一个异常,上面写着“必须在写入实体之前设置内容”。不知道它是什么,但我的行为可能完全错误。请帮忙....
【问题讨论】: