【问题标题】:is there a version of soap4r / wsdl2ruby that works with ruby 1.9.2?是否有适用于 ruby​​ 1.9.2 的 soap4r / wsdl2ruby 版本?
【发布时间】:2013-08-31 15:31:02
【问题描述】:

按照Ruby soap4r wsdl2ruby.rb errors 中的建议,我从 git://github.com/felipec/soap4r.git 加载了 soap4r gem,并在 xmlparser.rb 的第 66 行进行了更改

c.downcase == name

c.to_s.downcase == name

但是当我跑步时:

wsdl2ruby.rb --wsdl http://docs.arrayent.com/zamapi.xml --type client --force

在一堆警告之后,它最终炸毁了:

F, [2012-06-01T07:54:26.319928 #285] FATAL -- app: Detected an exception. Stopping ... undefined method `collect' for #<String:0x00000100c4a418> (NoMethodError)
/Users/r/Developer/Topaz/usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/codegen/gensupport.rb:239:in `trim_eol'

由于 'String#collect' 在以前的 Ruby 版本中有效,我的直觉是这个 wsdl2ruby 还没有针对 Ruby 1.9.2 进行更新。

有更新的吗?还是补丁?

【问题讨论】:

  • 你找到答案了吗?

标签: ruby soap4r wsdl2ruby


【解决方案1】:

你可以尝试安装这个 gem https://rubygems.org/gems/mumboe-soap4r 。它解决了我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多