我有以下问题:WSO2ESB并行SOAP调用
开发一个基于WSDL的代理,在并行调用几个不同的SOAP Web服务并返回响应:
<inSequence>
<log level="full"/>
<iterate xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:agg="http://www.test.ro/aggregate"
preservePayload="true"
attachPath="//soapenv:Body"
expression="//agg:AggregateRequest/agg:messageRequest">
<target>
<sequence>
<property name="messageId"
expression="//soapenv:Body/agg:messageRequest/agg:messageId[node()]"/>
<property name="endpoint"
expression="//soapenv:Body/agg:messageRequest/agg:endpoint[node()]"/>
<xslt key="CleanPayload" source="/"/>
<send>
<endpoint key="MirrorEndpoint"/>
</send>
</sequence>
</target>
</iterate>
</inSequence>
<outSequence>
<property name="resp" scope="default">
<agg:AggregateResponse xmlns:agg="http://www.test.ro/aggregate"/>
</property>
<aggregate>
<completeCondition timeout="10">
<messageCount min="-1" max="-1"/>
</completeCondition>
<onComplete xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
expression="$body/*"
enclosingElementProperty="resp">
<log level="full"/>
<send/>
</onComplete>
</aggregate>
</outSequence>
我的挑战是:
- 如何将messageId从inSequence传递到outSequence,以便我可以匹配对请求的响应(类似于Message Broker的本地环境)
- 我怎么设置从AGG文本端点关键:端点
我知道这可能是一个新手的问题,但我有一个困难时期关于这一主题找到好的教程。
谢谢
谢谢。几分钟前我得出了同样的结论 – 2015-03-19 15:49:03