clone を使用してリクエストを別のサーバーに送信し、 で集計を使用しoutSequence
ます。すべての応答を受け取ることができます。成功するものもあれば、エラーを返すものもあります。しかし、どのサーバー応答エラーかはわかりません。URL
応答メッセージを取得する必要があると思います。
誰でも私を助けることができますか?
私のサービス構成コードは次のとおりです。
<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="http://172.21.11.21:28888/usm/services/receiveMsg" format="pox" />
</endpoint>
</target>
<target>
<endpoint>
<address uri="http://172.21.11.22:28888/usm/services/receiveMsg" format="pox" />
</endpoint>
</target>
</clone>
</inSequence>
<outSequence>
<aggregate>
<completeCondition>
<messageCount min="10" max="10"/>
</completeCondition>
<send/>
</outSequence>
</target>
</proxy>
よろしくお願いします。