2012-08-15 78 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