WSO2 API管理器 - 它可以转换REST请求发送到后端的SOAP请求? [英] WSO2 API Manager - can it convert REST requests to SOAP requests on the backend?

查看:1744
本文介绍了WSO2 API管理器 - 它可以转换REST请求发送到后端的SOAP请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我探索我们的传统的API,这是目前基于SOAP使用WSO2 API管理器。理想情况下,我想公开一个RESTful接口为我们的客户和有API管理器将其转换为获取传递给我们的遗留系统的SOAP请求。搜索WSO2的网站,我看到有一些方法来做到这一点使用XSLT转换,但使用WSO2 ESB产品时才会出现。

I'm exploring the use of the WSO2 API Manager for our legacy API, which is currently SOAP based. IDeally, I'd like to expose a RESTful interface to our customers and have API Manager convert that to a SOAP request that gets passed to our legacy system. Searching the WSO2 site, I see there's some way to do this using XSLT transformations, but only when using the WSo2 ESB product.

有没有一种方法来处理的API管理这种转变?怎么样?如果不是这样,我能以某种方式把ESB产品的优势,并与API Manager产品结合起来呢?或者是大材小用?

Is there a way to handle this transformation in the API Manager? How? If not, could I somehow take advantage of the ESB product and combine it with the API Manager product? Or is that overkill?

谢谢!

推荐答案

REST到SOAP的转换是WSO2 ESB的一个突出的特点。要了解更多有关它看在[1]给出的样本。此示例中所使用的有效负载厂中保是介体比对XSLT中保得多的新类型,也是在处理SOAP消息比XSLT中保更有效。

REST to SOAP conversion is a standout feature of the WSO2 ESB. To learn more about it look at the sample given at [1]. The Payload Factory Mediator used in this sample is a much newer type of mediator than the XSLT Mediator and is also more efficient in handling SOAP messages than XSLT Mediator.

该WSO2 API管理器是用于发布,管理和治理的API的平台。该WSO2 API管理器使用componentalized Carbon框架,被用于该WSO2 ESB的几乎所有的组件构建的。因此在技术上都可以与WSO2 ESB完成可由WSO2 API管理器进行;然而没有在WSO2 ESB发现GUI的帮助;你将不得不使用这是基于XML的结构的源代码视图。但ofcourse导航解决这个障碍,你可以随时下载WSO2 ESB产品(这也是免费的,开源的),并使用GUI创建所有必要的调解序列和复制正贴在WSO2 ESB的WSO2配置API经理和你做。

The WSO2 API Manager is a platform for publishing, managing and governing APIs. The WSO2 API Manager is built using the componentalized Carbon framework, for which almost all components of the WSO2 ESB are utilized. Therefore technically all that can be done with the WSO2 ESB can be done by the WSO2 API Manager; however without the help of the GUI found in the WSO2 ESB; you will have to use the source view of the configuration which is xml based. But ofcourse to navigate around this obstacle you can always download the WSO2 ESB product (which is also free and open-source) and create all the necessary mediation sequences using the GUI and copy-n-paste the configuration from the WSO2 ESB to the WSO2 API Manager and you are done.

在我看来,这是WSO2 ESB,你所需要的。你的情况我presume你只是有一个或你需要公开的REST API的几个SOAP API的;你正在寻找更多的REST,SOAP转换功能,而不是管理数百个原料药的能力。如果你不需要API管理器的核心功能,如出版的API,版本控制,验证消费者,节流的基础上的政策,并监测API用途(功能的完整列表,看产品网页在[2]),然后你真的不想要的API管理器。但如果你有API的管理要求,您可以用WSO2 API经理去了。我不认为你应该与WSO2 API经理去只是因为你预见到某种API管理要求提前到来。

In my opinion it is the WSO2 ESB that you need. In your case I presume you just have one or a few SOAP APIs which you need to expose as REST APIs; you are looking more at the REST-SOAP conversion feature rather than the ability to manage hundreds of APIs. If you do not need the core functionalities of the API Manager such as publishing APIs, versioning, authenticating consumers, throttling based on policies, and monitoring API usage (for a complete list of features look at the product homepage at [2]), then you really do not want the API Manager. But if you have the API Management requirements you can go with WSO2 API Manager. I don't think you should go with the WSO2 API Manager just because you foresee some kind of API Management requirements coming ahead.

同时使用的WSO2 ESB由WSO2 API管理器朝向也是一个解决方案。 WSO2甚至建议这个架构如果你是在中介层执行繁重的调解。您可以使用WSO2 ESB独自甚至开始后来当适当的要求来了,决定前将其与WSO2 API管理器。与WSO2 API管理的面向ESB WSO2是一件轻而易举的事。

Using both the WSO2 ESB fronted by the WSO2 API Manager is also a solution. WSO2 even recommends this architecture if you are performing heavy mediation in the mediation layer. You can even start with the WSO2 ESB alone and later when the proper requirements come, decide to front it with the WSO2 API Manager. Fronting the WSO2 ESB with the WSO2 API Manager is a breeze.

[1] 的http://文档.wso2.org /维基/显示/ ESB403 /样品+ 800 +简介+至+ REST + API

[2] http://wso2.com/products/api-manager/

这篇关于WSO2 API管理器 - 它可以转换REST请求发送到后端的SOAP请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆