私は WSO2 ESB を使用して単純なメッセージ フローを実装しようとしていましたが、このトピックにあまり詳しくありません。
「消費者クライアントは、サービス プロバイダーと通信して乱数を取得します。」理想的には、乱数をクライアントだけでなく別のサービスにも送り返したいと思います。
- 最初にカスタム プロキシ (http、https プロトコル) を定義しました。
- InSequence: LOG メディエーター、Send Mediator;
- 「RandomNumbers」と呼ばれる実際のサービスのエンドポイント (http://localhost:8280/services/RandomNumbers)
- OutSequence: LOG メディエーター、SEND メディエーター
- 障害シーケンス: 既存の障害
この実装が正しいかどうかを誰かが確認できますか? どうもありがとう
<proxy name="ClientAskNumber" transports="https http" startOnLoad="true" trace="disable"> <target faultSequence="fault"> <endpoint> <address uri="http://localhost:8280/services/RandomNumbers"/> </endpoint> <inSequence> <log/> <send/> </inSequence> <outSequence> <log/> <send/> </outSequence> </target> </proxy>