Forum: Ruby SOAP4R: problems in wsdl2ruby generator

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Victor S. (Guest)
on 2006-03-16 12:31
(Received via mailing list)
Hello (an sorry for previous incomplete messages).

I've tried to use wsdl2ruby generator with this particular wsdl:
http://gzip.rsdn.ru/ws/forum.asmx?WSDL

>wsdl2ruby --wsdl rsdn.wsdl --classdef --force

But unforunately received the following error:

ignored element: {http://www.w3.org/2001/XMLSchema}list
ignored attr: {}default
I, [2006-03-16T12:24:42.053000 #3352]  INFO -- app: Creating class
definition.
W, [2006-03-16T12:24:42.063000 #3352]  WARN -- app: File 'default.rb'
exists
but overrides it.
F, [2006-03-16T12:24:42.504000 #3352] FATAL -- app: Detected an
exception.
Stopping ... incomplete simpleType (ArgumentError)
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/xmlSchema/simpleType.rb:34:in
`base'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:217:in
`basetype_class'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:195:in
`element_basetype'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:138:in
`dump_classdef'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:135:in
`each_element'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/xmlSchema/complexType.rb:52:in
`each'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/xmlSchema/complexType.rb:52:in
`each_element'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:135:in
`dump_classdef'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:80:in
`dump_complextype'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:77:in
`collect'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:77:in
`each'
c:/_cmd/ruby/lib/ruby/1.8/xsd/namedelements.rb:57:in `each'
c:/_cmd/ruby/lib/ruby/1.8/xsd/namedelements.rb:57:in `each'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:77:in
`collect'

c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:77:in
`dump_complextype'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/classDefCreator.rb:41:in
`dump'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:64:in
`create_classdef'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:63:in
`write_file'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:134:in `open'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:134:in
`write_file'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:63:in
`create_classdef'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:51:in
`create_file'
c:/_cmd/ruby/lib/ruby/site_ruby/1.8/wsdl/soap/wsdl2ruby.rb:36:in `run'
D:/!work/projects/sunaj/doc/wsdl2ruby.rb:42:in `run'
c:/_cmd/ruby/lib/ruby/1.8/logger.rb:684:in `start'
D:/!work/projects/sunaj/doc/wsdl2ruby.rb:125
I, [2006-03-16T12:24:42.504000 #3352]  INFO -- app: End of app. (status:
-1)


I'm not an WSDL expert. All I want to know: where error is - inside Ruby
library or inside this particular wsdl itself?

(ruby 1.8.2, WindowsXP, soap4r-1_5_5)

Thanks (and sorry for my pure English).
Victor S..
This topic is locked and can not be replied to.