Ruby on Rails 3:基于 SOAP 的 Web 服务(服务器端) - 我应该选择哪个 (actionwebservice) Gem?
我需要在我的 Rails 3 应用程序中提供基于 SOAP 的 Web 服务(是的,我更喜欢基于 REST 的 Web 服务,但不幸的是这不是我的决定) - Rails 3.1.1。如果这很重要的话。
我在 stackoverflow 上查找了几个涉及“Rails 3 + SOAP Web Services”主题的线程,我还浏览了 rubygems.org 和 github 来寻找明确的解决方案。然而,我的研究似乎给了我这样的结论:a) REST-ful Web 服务是 Rails 的发展方向(好吧,没什么新意),b) 没有首选 SOAP gem/github 项目对于 Rails 3。
例如,如果我在 github 上搜索“actionwebservice”,我发现有 109 个分叉 - yikes - 似乎是“原始”(Rails 2.*) actionwebservice gem:https://github.com/datanoise/actionwebservice/network。在 rubygems.org 上,“actionwebservice”查询也显示了十多个结果。
任何提示,该走什么路?澄清一下:我不想在我的 Rails 3 应用程序中使用 Web 服务,我想提供一个(即服务器端,而不是客户端),
提前致谢。 克劳斯
I have the requirement to offer a SOAP-based web service in my Rails 3 application (yes, I would prefer REST-based web service but that's not my decision unfortunately) - Rails 3.1.1. if that matters.
I have looked up several threads at stackoverflow that deal with the topic "Rails 3 + SOAP Web Services", I also browsed rubygems.org and github in search of a clear solution. My researches however seem to give me the conclusion that a) REST-ful web services is the Rails-way to go (ok, nothing new) and b) there is not the preferred SOAP gem/github project for Rails 3.
For example if I search for "actionwebservice" on github, I found that there are 109 forks - yikes - of what seems to be the "original" (Rails 2.*) actionwebservice gem: https://github.com/datanoise/actionwebservice/network. At rubygems.org the "actionwebservice" query also presents more than a dozen results.
Any hints, what would be the way to go? To clarify: I do not want to consume a Web Service in my Rails 3 application, I want to offer one (i.e. server side, not client side)
Thanks in advance.
Klaus
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基于此线程,它看起来像你可能会尝试在 Github 上分叉 Action Web Service 代码,更新它以与最新的 Rails 一起使用,然后使用新的 gem...甚至可能会因为更新它而获得一些信誉。
虽然这需要一些工作...
Soap4R 也可以提供一个解决方案(以及最近的一个)但它也已经老化了。
Based on this thread it looks like you might try forking the Action Web Service code on Github, updating it to work with the latest Rails and then using the new gem... might even get some cred for updating it.
Although that would be a bit of work...
Soap4R also may provide a solution (and a more recent one) but it too has been ageing.