WADL/WSDL 2.0,用于Ruby on Rails中的RESTful服务 [英] WADL/WSDL 2.0 for RESTful services in Ruby on Rails

查看:83
本文介绍了WADL/WSDL 2.0,用于Ruby on Rails中的RESTful服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过Ruby on Rails发布RESTful方法期望的参数?使用SOAP,我们可以使用WSDL,但是RoR是否为RESTful服务实现WADL或WSDL 2.0? 我知道使用ActionWebService的基于SOAP的解决方案.我指的是 https://wadl.dev.java.net/

Is there any way of publishing the parameters expected by the RESTful methods in Ruby on Rails? Using SOAP, we can use WSDL, but does RoR implement WADL or WSDL 2.0 for RESTful services? I am aware of a SOAP based solution using ActionWebService. I was refering to a RoR equivalent of https://wadl.dev.java.net/

推荐答案

答案为否"; Rails没有提供执行此操作的方法. WSDL 2.0可以说没有人使用,更不用说进行REST的任何人使用了(尽管从理论上讲在某种程度上是可行的,但它对RESTful HTTP的支持非常有限;例如,它不支持超媒体). WADL在REST社区中也存在很强的接受性问题.除了Java Jersey框架之外,我不知道任何实现.

The answer is "No"; Rails does not provide a way to do this. WSDL 2.0 is arguably used by nobody, let alone by anybody doing REST (even though it's theoretically possible to a certain degree, its support for RESTful HTTP is very limited; e.g. it doesn't support hypermedia). WADL has strong acceptance problems within the REST community, too; with the exception of the Java Jersey framework, I'm not aware of any implementation.

这篇关于WADL/WSDL 2.0,用于Ruby on Rails中的RESTful服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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