# The "Cannot map ... to SOAP/OM" error

**URL:** <https://www.ruby-forum.com/t/the-cannot-map-to-soap-om-error/136306>\
**Category:** Rails\
**Created:** [April 30, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/the-cannot-map-to-soap-om-error/136306 "2008-04-30T18:42:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit\_vijayant](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f19dbf/32.png) [@amit\_vijayant](https://www.ruby-forum.com/u/amit_vijayant)\
**Post date:** [April 30, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/the-cannot-map-to-soap-om-error/136306/1 "2008-04-30T18:42:11Z")

</div>

Though the issue has been reported by several people in different cases,  
didnt find a satisfactory solution. Is this a bug that soap4r is going  
to resolve say in 1.5.9?

I created client side objects via the ‘wsdl2ruby’ utility. Was able to  
call upon an API which did not take any parameters but as soon as try to  
send a parameter this issue surfaces. Any decent pointers for this?

vendor/gems/soap4r-1.5.8/lib/soap/mapping/encodedregistry.rb:356:in  
`_obj2soap' vendor/gems/soap4r-1.5.8/lib/soap/mapping/encodedregistry.rb:301:in`obj2soap’  
vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:131:in `_obj2soap' vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:54:in`objs2soap’  
vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:52:in `upto' vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:52:in`objs2soap’  
vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:592:in  
`protect_mapping' vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:565:in`protect\_threadvars’  
vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:581:in  
`protect_mapping' vendor/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:51:in`objs2soap’  
vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:477:in `request_rpc_enc' vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:459:in`request\_rpc’  
vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:414:in `request_body' vendor/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:127:in`call’  
vendor/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb:181:in `call’
