我需要将响应消息写入“response.xml”文件。响应应该附加到这个文件,我设置参数“Append”为true,但是没有用,每次都被完全覆盖。有人可以帮帮我吗?谢谢和最好的问候。
<proxy xmlns="http://ws.apache.org/ns/synapse" name="EndpointTest" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target>
<inSequence>
<log level="full" />
</inSequence>
<outSequence>
<log level="full" />
<send>
<endpoint>
<address uri="vfs:file:///usr/local/wso2esb-4.0.3/Log" format="pox" />
<property name="OUT_ONLY" value="true" />
<property name="transport.vfs.Append" value="true" />
<property name="transport.vfs.ReplyFileName" value="response.xml" />
</endpoint>
</send>
<send />
</outSequence>
<endpoint>
<address uri="http://172.21.13.151:18989/aaadc/services/receiveMsg" format="pox" />
</endpoint>
</target>
</proxy>
答案 0 :(得分:1)
从服务级别删除append = true参数,并使用端点url 例如:
vfs:file:///usr/local/wso2esb-4.0.3/Log?transport.vfs.Append=true