0

我试图用 WSO2 ESB 实现一个简单的消息流,但对这个主题不是很熟悉:

“消费者客户端与服务提供商通信以获取随机整数。” 理想情况下,我想将随机数发送回客户端,但也发送给另一项服务。

  • 我首先定义了一个自定义代理(http、https 协议);
  • 一个InSequence:LOG mediator,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>
4

1 回答 1

3

更正了配置。。

 <proxy name="ClientAskNumber" transports="https http" startOnLoad="true"
        trace="disable">
        <target faultSequence="fault">
            <inSequence>
                <log level="full">
                    <property name="Insequence" value="***" />
                </log>
                <send>
                    <endpoint>
                        <address uri="http://localhost:8280/services/RandomNumbers" />
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <log level="full">
                    <property name="Outsequence" value="***" />
                </log>
                <send />
            </outSequence>
        </target>
    </proxy>
于 2012-08-09T17:59:58.350 回答