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

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:inprotect_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:inprotect_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:incall’


From: THAKUR PRASHANT SINGH
Sent: Thursday, January 28, 2010 6:41 PM
To: [email protected]; [email protected]
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs