Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #460 (new defect)

Opened 8 months ago

Last modified 6 months ago

uninitialized constant XSD::XSDToken

Reported by: user Assigned to: nahi
Priority: high Milestone: undefined
Component: soap4r Version: 1.5
Keywords: xsd xsdtoken Cc:

Description

When I require "soap/wsdlDriver", I receive the following message

/var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/baseData.rb:265: uninitialized constant XSD::XSDToken (NameError?)

from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/registry.rb:9 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from /var/lib/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping.rb:10 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'

... 12 levels...

from ./diptera/foreign/rubyforge-pull.rb:19 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from diptera.rb:19

line 19 is only the require statement. It is the first line of code to be executed I have tried this with both soap4r 1.5.8, soap4r 1.5.7 (both installed via RubyGems?)

It works fine with the soap version 1.5.5 included with Ruby.

ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux] rubygems 0.9.4-1ubuntu1

Change History

04/23/08 18:27:37 changed by user

Hey, the problem might occur if you are not using gem 'soap4r' at the initialization of your script.

This way the 'xsd/datatypes' being loaded will be the up-to-date one. Otherwise if you don't include the 'soap4r' gem and some part of your application does require 'xsd/datatypes' it will end up with the old 1.5.5 soap4r datatypes from ruby stdlib.

Hope this helps you and others with the same problem, Madis Pink