如何将响应消息附加到文本文件? [英] How to append response message to a text file?
本文介绍了如何将响应消息附加到文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将响应消息写入"response.xml"文件.并且响应应该附加到该文件中,我将参数"Append"设置为true,但是没有用,每次都被完全覆盖.有人可以帮助我吗?谢谢,最好的问候.
I need write the response message to a "response.xml" file. And the response should be appended to this file, I set parameter "Append" true, but no use, is completely overwritten every time. Anyone can help me? Thanks and best regards.
<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>
推荐答案
从服务级别删除append = true参数,并与端点url一起使用 例如:
Remove the append= true parameter from service level and use with endpoint url eg:
vfs:file:///usr/local/wso2esb-4.0.3/Log?transport.vfs.Append=true
这篇关于如何将响应消息附加到文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文