WSO2 ESB无法使用clone mediator从ESB发送消息

问题描述 投票:1回答:1

我已经构建了一个API来向多个REST API发送消息。为了测试它,我使用SOAP Ui模拟了三个REST API。但是我无法使用CLONE介体中的端点发送JSON消息。这是REST API配置的一部分:

            <clone id="GetOpenTasksReq">
            <target>
                <sequence>
                    <log level="full"/>
                </sequence>
                <endpoint key="OpenTask1EP"/>
            </target>
            <target>
                <sequence>
                    <log level="full"/>
                </sequence>                
                <endpoint key="OpenTask2EP"/>
            </target>
        </clone>

这是端点之一(OpenTask1EP)配置:

<endpoint name="OpenTask1EP" xmlns="http://ws.apache.org/ns/synapse">
<http method="GET" trace="enable" uri-template="http://localhost:6060/admin-service/api/getuserlists">
    <timeout>
        <duration>5000</duration>
        <responseAction>fault</responseAction>
    </timeout>
</http>

我在ESB中启用了启用线路日志。从WSO2 ESB控制台,我所能看到的是从线路传入ESB的消息,即我使用JMeter向ESB发送的消息。在SOAP Ui模拟服务上,我看不到传入请求的任何迹象,消息日志为空。好心提醒。如果您需要更多信息,请告诉我。提前致谢。

wso2 wso2esb wso2ei
1个回答
1
投票

你能试试吗?

<clone continueParent="true" sequential="true">
        <target endpoint="EP1">
             <sequence>
                    <log level="full"/>
                </sequence>  
        </target>
        <target endpoint="EP2">
             <sequence>
                    <log level="full"/>
                </sequence>  
        </target>
</clone>

您可以提供端点名称而不是EP1和EP2

© www.soinside.com 2019 - 2024. All rights reserved.