Prev: Class with Multi Constrcutor ( initialize )
Next: gsub not working to replace a 'Chinese' Charater.
From: THAKUR PRASHANT SINGH on 28 Jan 2010 08:10 Hi, I am getting this error in client side when I expect an array in response . Response with single element works fine C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:530:in `soap2typedobj': unknown class: (SOAP::Mapping::MappingError) InputList class InputList < ::Array end class SubData attr_accessor :Id attr_accessor :val1 attr_accessor :val2 attr_accessor :Name def initialize(Id = nil, val1 = nil, val2 = nil, Name = nil) @Id = gISId ................... end end =DataOutput class DataOutput < ::Array end Array is of type SubData defined above Please help to solve this error ? Regards, Prashant
From: THAKUR PRASHANT SINGH on 28 Jan 2010 08:15 When I use my class DataOutput I get following error C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:448:in `array2soap': undefined method `[]' for #<SOAP::Mapping::SchemaSequenceDefinition:0x2d0ca08> (NoMeth odError) from C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:440:in `stubobj2soap' from C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:342:in `_obj2soap' from C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:301:in `obj2soap' from C:/Ruby/lib/ruby/1.8/soap/mapping/mapping.rb:131:in `_obj2soap' from C:/Ruby/lib/ruby/1.8/soap/mapping/mapping.rb:43:in `obj2soap' from C:/Ruby/lib/ruby/1.8/soap/mapping/mapping.rb:592:in `protect_mapping' from C:/Ruby/lib/ruby/1.8/soap/mapping/mapping.rb:565:in `protect_threadvars' from C:/Ruby/lib/ruby/1.8/soap/mapping/mapping.rb:581:in `protect_mapping' ... 24 levels... from C:/Ruby/lib/ruby/1.8/soap/rpc/proxy.rb:152:in `call' from C:/Ruby/lib/ruby/1.8/soap/rpc/driver.rb:181:in `call' ________________________________ From: THAKUR PRASHANT SINGH Sent: Thursday, January 28, 2010 6:41 PM To: ruby-talk(a)ruby-lang.org; ruby-core(a)ruby-lang.org Subject: [ruby-core:27927] Mapping error in soap4r Hi, I am getting this error in client side when I expect an array in response . Response with single element works fine C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:530:in `soap2typedobj': unknown class: (SOAP::Mapping::MappingError) InputList class InputList < ::Array end class SubData attr_accessor :Id attr_accessor :val1 attr_accessor :val2 attr_accessor :Name def initialize(Id = nil, val1 = nil, val2 = nil, Name = nil) @Id = gISId ................... end end =DataOutput class DataOutput < ::Array end Array is of type SubData defined above Please help to solve this error ? Regards, Prashant
|
Pages: 1 Prev: Class with Multi Constrcutor ( initialize ) Next: gsub not working to replace a 'Chinese' Charater. |