使用 Mule ESB 路由 Web 服务调用的示例

发布于 2024-10-14 01:07:06 字数 163 浏览 10 评论 0原文

我正在寻找一个示例,说明如何设置一个非常简单的 Mule 配置,以将 SOAP Web 服务调用从客户端路由到服务提供者。最初,只有一个提供商,然后我想在 Mule 中添加多个服务提供商和循环路由策略。

Mule 站点上的大多数示例都在 Mule 容器内运行服务提供者。我希望我的完全是外部的。

I'm looking for an example of how to set up a very simple Mule configuration to route a SOAP web service call from a client to a service provider. Initially, there will just be one provider, and then I will want to add multiple service providers and a round-robin routing strategy in Mule.

Most of the examples on the Mule site have the service provider running within the Mule container. I want mine to be completely external.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软糖 2024-10-21 01:07:06

如果您不需要分解消息参数,请使用 HTTP 传递,它更轻量且简单得多。对于循环实现,您可以使用带有基于 groovy 的过滤器表达式的过滤器路由器。

请参阅此处:

使用 Mule ESB 2.2.1 创建直通

http://www.mulesoft.org/documentation/显示/MULE2USER/Outbound+Routers#OutboundRouters-Filters

If you don't need to decompose message arguments use HTTP pass-through, which is more light-weight and a lot simpler. For the round-robin implementation you could use a filter router with a groovy-based filter expression.

See here:

Create pass through with Mule ESB 2.2.1

http://www.mulesoft.org/documentation/display/MULE2USER/Outbound+Routers#OutboundRouters-Filters

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文