使用 Mule ESB 路由 Web 服务调用的示例
我正在寻找一个示例,说明如何设置一个非常简单的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不需要分解消息参数,请使用 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