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

Ticket #441 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Detected an exception. Stopping ... undefined method `namespace' for []:Array (NoMethodError)

Reported by: user Assigned to: nahi
Priority: high Milestone: 1.5.9
Component: wsdl4r Version: 1.5
Keywords: Cc:

Description (Last modified by nahi)

Just update to 1.5.8 with: gem update soap4r

Doing:

wsdl2ruby.rb --wsdl "http://www.mementolivres.com/WebService/search.asmx?wsdl" --type client

Gives me:

...
F, [2007-10-01T17:37:07.841252 #5427] FATAL -- app: Detected an exception. Stopping ... undefined method `namespace' for []:Array (NoMethodError)
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/mappingRegistryCreatorSupport.rb:312:in `dump_encoded_array_typemap'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/mappingRegistryCreatorSupport.rb:47:in `dump_array_typemap'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/mappingRegistryCreatorSupport.rb:32:in `dump_complextypedef'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/encodedMappingRegistryCreator.rb:56:in `dump_complextype'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/mappingRegistryCreatorSupport.rb:23:in `dump_with_inner'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/encodedMappingRegistryCreator.rb:55:in `dump_complextype'
/usr/local/ruby-1.8.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `collect'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/namedelements.rb:58:in `each'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/namedelements.rb:57:in `each'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/encodedMappingRegistryCreator.rb:53:in `collect'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/encodedMappingRegistryCreator.rb:53:in `dump_complextype'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/encodedMappingRegistryCreator.rb:37:in `dump'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/mappingRegistryCreator.rb:44:in `dump'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:87:in `create_mapping_registry'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:171:in `write_file'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:170:in `open'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:170:in `write_file'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:85:in `create_mapping_registry'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:63:in `create_file'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/soap/wsdl2ruby.rb:42:in `run'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:46:in `run'
/usr/local/ruby-1.8.5/lib/ruby/1.8/logger.rb:659:in `start'
/usr/local/ruby-1.8.5/lib/ruby/gems/1.8/gems/soap4r-1.5.8/bin/wsdl2ruby.rb:137
/usr/local/ruby/bin/wsdl2ruby.rb:16:in `load'
/usr/local/ruby/bin/wsdl2ruby.rb:16
I, [2007-10-01T17:37:07.842459 #5427]  INFO -- app: End of app. (status: -1)

Attachments

complexType.rb.diff (0.7 kB) - added by nahi on 10/02/07 10:35:46.
patch for complexType.rb and classDefCreator.rb to fix name conflicting issue for the WSDL

Change History

10/02/07 10:35:46 changed by nahi

  • attachment complexType.rb.diff added.

patch for complexType.rb and classDefCreator.rb to fix name conflicting issue for the WSDL

10/02/07 10:38:17 changed by nahi

  • priority changed from normal to high.
  • component changed from soap4r to wsdl4r.
  • description changed.
  • milestone changed from undefined to 1.5.9.

Hi,

Thank you for taking the time to file the report. I attached the patch above to fix the soap4r bug around type detection of Array and name conflicting between classname and enumname. This patch will be included in 1.5.9.

10/02/07 23:22:45 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1994]) * avoid NameError? if an Array definition has soapenc:Array as a restriction base and no soapenc:arrayType inside. closes #441.