From: THAKUR PRASHANT SINGH Date: 2010-01-28T22:15:45+09:00 Subject: Re: [ruby-core:27927] Mapping error in soap4r ------_=_NextPart_001_01CAA01B.FB72EB30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 # (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=20 Sent: Thursday, January 28, 2010 6:41 PM To: ruby-talk@ruby-lang.org; ruby-core@ruby-lang.org Subject: [ruby-core:27927] Mapping error in soap4r Hi,=20 I am getting this error in client side when I expect an array in response . Response with single element works fine=20 C:/Ruby/lib/ruby/1.8/soap/mapping/encodedregistry.rb:530:in `soap2typedobj': unknown class: (SOAP::Mapping::MappingError) InputList=20 class InputList < ::Array=20 end=20 class SubData=20 attr_accessor :Id=20 attr_accessor :val1=20 attr_accessor :val2=20 attr_accessor :Name=20 def initialize(Id =3D nil, val1 =3D nil, val2 =3D nil, Name =3D nil)=20 @Id =3D gISId=20 ...................=20 end=20 end=20 =3DDataOutput=20 class DataOutput < ::Array=20 end=20 Array is of type SubData defined above=20 Please help to solve this error ?=20 Regards,=20 Prashant=20 ------_=_NextPart_001_01CAA01B.FB72EB30--