# Problems with anyType in SOAP4R

**URL:** <https://www.ruby-forum.com/t/problems-with-anytype-in-soap4r/133432>\
**Category:** Ruby\
**Created:** [March 31, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/problems-with-anytype-in-soap4r/133432 "2008-03-31T16:33:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@linus](https://www.ruby-forum.com/u/linus)\
**Post date:** [March 31, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/problems-with-anytype-in-soap4r/133432/1 "2008-03-31T16:33:22Z")

</div>

Hello,  
I have problem with using this SOAP:

require ‘rubygems’  
gem ‘soap4r’  
require ‘soap/wsdlDriver’  
require ‘soap/mapping/encodedregistry’

puts “SOAP::Version = #{SOAP::Version}”

soap =  
SOAP::WSDLDriverFactory.new(“[http://import.finn.no/services/ImportSoapAction?wsdl](http://import.finn.no/services/ImportSoapAction?wsdl)”).create\_rpc\_driver  
soap.readMessage({:readMessageRequest =\> {:fake =\> “arguments”}})

> ruby soap\_finn.rb  
> c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/wsdlliteralregistry.rb:89:in  
> `obj2elesoap': cannot find type {http://www.w3.org/2001/XMLSchema}anyType (SOAP::Mapping::MappingError) from c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/wsdlliteralregistry.rb:37:in `obj2soap’  
> from  
> c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:131:in  
> `_obj2soap' from c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:43:in `obj2soap’  
> from  
> c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:592:in  
> `protect_mapping' from c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:565:in `protect\_threadvars’  
> from  
> c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:581:in  
> `protect_mapping' from c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/mapping/mapping.rb:42:in `obj2soap’  
> from  
> c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:513:in  
> `request_doc_lit' ... 6 levels... from c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:127:in `call’  
> from  
> c:/ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb:181:in  
> `call' from (eval):6:in `readMessage’  
> from soap\_finn.rb:9  
> SOAP::Version = 1.5.8

Any ideas how to attack that? Or should I give up ☹

Cheers,  
Tomasz

---

<div class="post-metadata">

**Author:** ![linus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@linus](https://www.ruby-forum.com/u/linus)\
**Post date:** [April 3, 2008, 10:01am UTC](https://www.ruby-forum.com/t/problems-with-anytype-in-soap4r/133432/2 "2008-04-03T10:01:49Z")

</div>

> Any ideas how to attack that? Or should I give up ☹

Its impossible to do it in ruby then. Ok, have to attack it different  
way.

Cheers,  
Tomasz
