From: Ernie Date: 2004-07-16T02:02:18+09:00 Subject: Re: still having problems with soap4R "NAKAMURA, Hiroshi" wrote in message news:40F5DF86.9090901@keynauts.com... > Hi, > > It seems to be a versioning problem. > > Ernie wrote: > > Installed Soap4r-1_5_2 no problem > > Running Ruby 1.8.1 -`2 on Windows XP > > Did this as instructed. > > I installed 1.8.1GA(2003-12-25) and soap4r/1.5.2. It seems to work for me. > > % ruby1.8.1 wsdl2ruby.rb --wsdl > "http://www.adessosystems.net/adessosql/adessosql.asmx?WSDL" --classdef > --force > I, [2004-07-15T10:20:09.629793 #3860] INFO -- app: Creating class > definition. > W, [2004-07-15T10:20:09.630793 #3860] WARN -- app: File 'default.rb' > exists but overrides it. > I, [2004-07-15T10:20:09.631793 #3860] INFO -- app: End of app. (status: 0) > > No "simpleType" should be dumped if you use plain soap4r/1.5.2. (IIRC > this warning is added after ruby/1.8.1 and soap4r/1.5.2 and will be > fixed in ruby/1.8.2-preview1 which might be released today). > > Can you please try "Stable snapshot" at > http://www.ruby-lang.org/en/20020102.html or wait new RubyInstaller[1] > which includes ruby's stable-snapshot >20040703. > > [1] http://rubyinstaller.rubyforge.org/wiki/wiki.pl > > Regards, > // NaHi > > Thanks for the suggestion. I downloaded and installed the Ruby 1.82 version on the rubyinstaller site Just to check I did this C:\RubyScripts\soapTest>ruby -v ruby 1.8.2 (2004-06-29) [i386-mswin32] Then I reinstalled soap4r-1_5_2 Then I did this and got the same error. C:\RubyScripts\soapTest>wsdl2ruby.rb --wsdl ndfdXML.wsdl --classdef --force I, [2004-07-15T12:48:36.410000 #2656] INFO -- app: Start of app. Unknown element {http://www.w3.org/2001/XMLSchema}simpleType. I, [2004-07-15T12:48:36.500000 #2656] INFO -- app: Creating class definition. W, [2004-07-15T12:48:36.500000 #2656] WARN -- app: File 'default.rb' exists but overrides it. F, [2004-07-15T12:48:36.500000 #2656] FATAL -- app: Detected an exception. Stopp ing ... undefined method `each' for nil:NilClass (NoMethodError) c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:134:in `collect_faul t_messages' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:133:in `each' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/namedElements.rb:54:in `each' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/namedElements.rb:54:in `each' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:133:in `collect_faul t_messages' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:132:in `each' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/namedElements.rb:54:in `each' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/namedElements.rb:54:in `each' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:132:in `collect_faul t_messages' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:118:in `collect_faul ttype' c:/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:25:in `initialize' C:/RubyScripts/soapTest/wsdl2ruby.rb:138:in `new' C:/RubyScripts/soapTest/wsdl2ruby.rb:138:in `create_classdef' C:/RubyScripts/soapTest/wsdl2ruby.rb:137:in `open' C:/RubyScripts/soapTest/wsdl2ruby.rb:137:in `create_classdef' C:/RubyScripts/soapTest/wsdl2ruby.rb:50:in `create_file' C:/RubyScripts/soapTest/wsdl2ruby.rb:45:in `run' c:/ruby/lib/ruby/1.8/logger.rb:684:in `start' C:/RubyScripts/soapTest/wsdl2ruby.rb:236 I, [2004-07-15T12:48:36.540000 #2656] INFO -- app: End of app. (status: -1) Am I still doing something wrong? Ernie