Ruby soap4r wsdl2ruby.rb errors

后端 未结 2 828
囚心锁ツ
囚心锁ツ 2021-01-20 01:28

I am trying to run the wsdl2ruby.rb script that comes with the soap4r gem, and get the following errors:

[ral@lap etc]$ ruby /usr/lib/ruby/gems/1.9.1/gems/so         


        
相关标签:
2条回答
  • 2021-01-20 01:43

    You might also try the new official repo on Github that has this fix, and others applied to the master branch. You'll need to set your Gemfile to use the git repo as such:

    gem 'soap4r', :git => 'git://github.com/felipec/soap4r.git'
    
    0 讨论(0)
  • 2021-01-20 01:48

    The answer posted at

    http://railsforum.com/viewtopic.php?id=41231

    worked for me. That is, I edited the file rubyhome/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb and changed line 66 from:

      c.downcase == name
    

    to

      c.to_s.downcase == name
    

    and the problem appears to be solved.

    0 讨论(0)
提交回复
热议问题