用于 ruby​​ 1.9 和 rails 的肥皂客户端 [英] soap client for ruby 1.9 and rails

查看:33
本文介绍了用于 ruby​​ 1.9 和 rails 的肥皂客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到现在为止,我使用 soap4r 作为 Ruby 1.8.x 的 SOAP 客户端,但现在我正在转向 Ruby 1.9.x.不幸的是,soap4r 不适用于 Ruby 1.9.x 我只是得到无效的多字节转义",这似乎无法解决,主要是因为 soap4r gem 自 2007 年以来没有更新,所以我认为该项目已经死了.

Untill now I used soap4r as my SOAP-client with Ruby 1.8.x, but now I am moving on to Ruby 1.9.x. Unfortunately soap4r doesn't work with Ruby 1.9.x I just get the "invalid multibyte escape" which seems not solvable, mostly because the soap4r gem wasn't updated since 2007, so I assume the project is dead.

我看过 handsoap,但我必须手动映射所有内容,手动完成需要几天时间,这是一个很大的 API.

I had a look at handsoap but there I have to map all the stuff by hand it will take several days to do that by hand, it is a big API.

是否有其他soap客户端可以自动将所有soap-xml内容映射到ruby-objects(链接soap4r做了),反之亦然?

Is there some other soap client which automaticly maps all the soap-xml stuff to ruby-objects (link soap4r did) and vise versa?

推荐答案

Savon 将 XML 部分抽象为 Ruby 哈希.看看:http://github.com/rubiii/savon

Savon abstracts the XML part into a Ruby Hash. Have a look: http://github.com/rubiii/savon

这篇关于用于 ruby​​ 1.9 和 rails 的肥皂客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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