繁体   English   中英

通过Mule ESB通过Web服务使用Web服务

[英]Consume a web service by a web service via Mule ESB

我有一个Web服务,它将名称发送到名为sayHello()的Web服务,并接收字符串“Hello,name”。 我想将点对点连接更改为这样的:

网络服务---> Mule ESB --->网络服务

我想知道我该怎么做? 我已经搜索了很长时间,但我没有找到关于这个主题的有用文档。 我应该使用哪些端点?

谢谢。

这取决于您需要公开和使用的Web服务的类型:

为了公开基于SOAP的Web服务 ,您可以使用一些策略,

1)使用Protocol Bridging或WSProxyService代理Web服务

https://docs.mulesoft.com/mule-user-guide/v/3.7/proxying-web-services

2)使用CXF代理Web服务

https://docs.mulesoft.com/mule-user-guide/v/3.7/proxying-web-services-with-cxf

3)使用CXF构建Web服务

https://docs.mulesoft.com/mule-user-guide/v/3.7/building-web-services-with-cxf

为了公开RESTful Web服务 ,您应该设计一个RAML ,然后使用APIKit组件

http://raml.org/

https://docs.mulesoft.com/anypoint-platform-for-apis/apikit-tutorial

使用基于SOAP的Web服务 ,您应该使用Webservice Consumer组件

https://docs.mulesoft.com/mule-user-guide/v/3.7/web-service-consumer

使用REST Web服务 ,您应该使用HTTP请求连接器

https://docs.mulesoft.com/mule-user-guide/v/3.7/http-request-connector

因此,如果要公开SOAP Web服务(而不是代理服务),在内部使用SOAP Web服务,您可以使用:

HTTPListener->CXF->WebserviceConsumer

如果要公开Web服务代理 ,可以使用ProtocolBridging或CXF策略。

如果要公开REST Web服务,内部使用REST Web服务,您可以使用:

HTTPListener->APIKit->HTTPRequest

等等..

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM