我有一个web服务,它向一个名为sayHello()的web服务发送一个名称,并接收一个字符串"Hello,name“。我想要将点对点连接更改为如下所示:
web服务-> Mule ESB -> web服务
我想知道我怎样才能做到这一点?我已经搜索了很长时间,但我没有找到关于这个主题的有用的文档。我应该使用哪些端点?
谢谢。
发布于 2015-12-01 22:50:33
这取决于您需要公开和使用的and服务的类型:
对于基于SOAP的webservices的公开,您可以使用一些策略,
1)使用协议桥接或WSProxyService代理with服务
https://docs.mulesoft.com/mule-user-guide/v/3.7/proxying-web-services
2)使用CXF代理CXF服务
https://docs.mulesoft.com/mule-user-guide/v/3.7/proxying-web-services-with-cxf
3)使用CXF构建CXF服务
https://docs.mulesoft.com/mule-user-guide/v/3.7/building-web-services-with-cxf
对于公开RESTful webservices的,您应该设计一个RAML,然后使用APIKit组件
http://raml.org/
https://docs.mulesoft.com/anypoint-platform-for-apis/apikit-tutorial
对于使用基于SOAP的webservices的,您应该使用Webservice使用者组件
https://docs.mulesoft.com/mule-user-guide/v/3.7/web-service-consumer
对于使用REST webservices的,您应该使用HTTP请求连接器:
https://docs.mulesoft.com/mule-user-guide/v/3.7/http-request-connector
因此,如果您想公开内部使用SOAP can服务的SOAP can服务(而不是代理服务),您可以使用:
HTTPListener->CXF->WebserviceConsumer
如果您想公开一个webservice ,您可以使用ProtocolBridging或CXF策略。
如果您想公开一个内部使用REST can服务的REST can服务,您可以使用:
HTTPListener->APIKit->HTTPRequest
以此类推..
发布于 2015-12-01 00:23:26
https://stackoverflow.com/questions/34002118
复制相似问题