迭代器中介器中 WSO2 ESB 中的同步调用

问题描述 投票:0回答:3

有什么方法可以同步调用esb wso2中迭代器中介器内部编写的所有代码吗?

iterator wso2 call esb synchronous
3个回答
1
投票

最后,它是通过一起做两件事来发挥作用的。 在迭代器中设置顺序=“true”,并在调用中介器中使用阻塞=“true”


0
投票

您使用发送中介吗?如果是,请改用调用调解器,它是同步的。


0
投票

为此,您可以使用顺序=“true”的迭代器中介器,并根据您的要求调用中介器阻塞=“true”或“false”,这两个都是同步调用。如果您想了解有关阻塞和非阻塞呼叫调解器的更多详细信息,请参阅此WSO2呼叫(阻塞与非阻塞)与发送调解器

<iterate expression="input your array xpath" id="sampleIterator" sequential="true">
    <target>
        <sequence>
           // your sequence logic here
            // if call the endpoint in with blocking="true"
            <call blocking="true">
                <endpoint key="cbs-connector-v1-soap-cbs-endpoint"/>
            </call>

           // if call the endpoint in with blocking="false"
            <call>
                 <endpoint key="cbs-connector-v1-soap-cbs-endpoint"/>
            </call>

        <sequence>
    </target>
</iterate>
© www.soinside.com 2019 - 2024. All rights reserved.