在下一种情况下我遇到了一些问题:我有 wso2esb 并且 esb 中有代理服务。我用带参数的参数调用这个代理,例如,
http://host:9643/service/myproxy?domain=first.
之后我的代理需要到达下一个端点:http://first.mysite.com
如果我们有http://host:9643/service/myproxy?domain=second
,我们将不得不到达http://second.mysite.com
问问题
274 次
1 回答
0
您可以在代理服务中使用您的参数。
<property name="domain" value="application/x-www-form-urlencoded" scope="axis2"/>
然后您需要在代理服务的 insequence 中使用 switch mediator,然后根据您需要使用 send mediator 的情况将消息发送到所需的端点。
这将有助于理解场景。 http://docs.wso2.org/wiki/display/IntegrationPatterns/Dynamic+Router
于 2013-04-09T19:14:01.873 回答