2012-08-15 75 views
0

我需要将响应消息写入“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> 

回答

1

卸下服务水平追加= true参数与端点URL 如使用:

vfs:file:///usr/local/wso2esb-4.0.3/Log?transport.vfs.Append=true