2011-04-22 4 views
4

나는 soap4r 보석과 함께 제공되는 wsdl2ruby.rb 스크립트를 실행하려고, 다음과 같은 오류를 얻을 오전 : 나는 다음과 보석 설치 한루비 soap4r wsdl2ruby.rb 오류

[[email protected] etc]$ ruby /usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/bin/wsdl2ruby.rb 
/usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective 
/usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/property.rb:68: warning: encoding option is ignored - u 
/usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/property.rb:69: warning: encoding option is ignored - u 
/usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/soap/property.rb:70: warning: encoding option is ignored - u 
/usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `<top (required)>': XML processor module not found. (RuntimeError) 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from /usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/parser.rb:13:in `<top (required)>' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from /usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:11:in `<top (required)>' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from /usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/importer.rb:9:in `<top (required)>' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from /usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:11:in `<top (required)>' 
    from <internal:lib/rubygems/custom_require>:33:in `require' 
    from <internal:lib/rubygems/custom_require>:33:in `rescue in require' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from /usr/lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:5:in `<main>' 

:

HttpClient를 나는를 설치하는 것을 시도했다

(2.2.0.1) minitest (1.6.0) 레이크 (0.8.7) rdoc (2.5.8) soap4r (1.5.8) 많은 오류가있는 xml 파서 보석 : http://pastie.org/1822127

문제가 무엇인지 아는 사람이 있습니까? Ruby를 처음 접하는 순간입니다.

soap4r은 SOAP 웹 서비스 클라이언트를 만들기위한 최고의 도구입니까?

고맙습니다.

+2

soap4r은 에이징 중입니다. 대부분의 사람들이 Savon으로 이사 왔다고 생각합니다. http://savonrb.com/ –

답변

9

대답은

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

이 나를 위해 일

에 게시. 에

c.downcase == name 

: 그건 내가 파일 rubyhome /lib/ruby/gems/1.9.1/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb을 편집에서 라인 (66)을 변경한다

c.to_s.downcase == name 

이 문제가 해결되는 것으로 보입니다.

3

또한 Github에서이 수정본과 마스터 분기에 적용된 다른 공식 repo를 사용해 볼 수도 있습니다. git repo를 다음과 같이 사용하도록 Gemfile을 설정해야합니다.

gem 'soap4r', :git => 'git://github.com/felipec/soap4r.git' 
+0

변경하여 주실 수 있겠습니까? 보석에 git : // url 접두어를 어떻게 이해 시켰습니까? 나는 현재의 보석에서 "fetch_git"메쏘드가 빠져있다. – quetzalcoatl

관련 문제