简体   繁体   English

调用rest服务在Mule ESB中返回JSON?

[英]Call rest service that returns JSON in mule esb?

How to call a rest service that returns JSON in a APIKit based message flow. 如何调用在基于APIKit的消息流中返回JSON的rest服务。 I want to prepare the request for Rest service and want to extract the JSON message in a message flow. 我想准备Rest服务的请求,并想在消息流中提取JSON消息。

Can any one help me to do this? 谁能帮我做到这一点?

Thanks 谢谢

The recommended way to invoke/consume REST services in mule is the use of HTTP Request 在Mule中调用/使用REST服务的推荐方法是使用HTTP请求

Do let us know if there is a specific you are facing 让我们知道您是否遇到了特定问题

The request connector is especially handy when consuming a RESTful API that is described in a RAML file. 当使用RAML文件中描述的RESTful API时,请求连接器特别方便。 If you reference the API's RAML file in the connector's configuration, it will proactively offer you the set of available resources and operations contained in the RAML file, as well as enforce the policies described in the file. 如果在连接器的配置中引用API的RAML文件,它将主动为您提供RAML文件中包含的一组可用资源和操作,以及执行文件中描述的策略。 It will also expose the API metadata to Studio, which can then be used by other elements such as DataWeave to autocomplete fields and make configuration much easier 它还会将API元数据公开给Studio,然后供其他元素(如DataWeave)使用,以自动完成字段并简化配置

使用Rest URI路径调用服务,您还可以根据调用的服务类型获取json响应作为输出

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

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