0
我需要發送一個請求到多個不同的地址。一些成功,有些可能會返回錯誤,並且我需要爲此響應寫入日誌。我想我需要 逐個處理響應消息。如何在後果中做到這一點。 我的服務配置是:如何逐個處理響應消息?
<proxy xmlns="http://ws.apache.org/ns/synapse" name="CloneTest" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target>
<inSequence>
<clone id="12345">
<target>
<endpoint>
<address uri="address1" format="pox" />
</endpoint>
</target>
<target>
<endpoint>
<address uri="address2" format="pox" />
</endpoint>
</target>
<target>
<endpoint>
<address uri="address3" format="pox" />
</endpoint>
</target>
</clone>
</inSequence>
<outSequence>
<log level="full" />
<send />
</outSequence>
</target>
</proxy>
此致敬意。