# Soap4R

**URL:** <https://www.ruby-forum.com/t/soap4r/151594>\
**Category:** Rails\
**Created:** [October 23, 2008, 10:24am UTC](https://www.ruby-forum.com/t/soap4r/151594 "2008-10-23T10:24:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [October 23, 2008, 10:24am UTC](https://www.ruby-forum.com/t/soap4r/151594/1 "2008-10-23T10:24:02Z")

</div>

The following two line code creates the issue:

factory =  
SOAP::WSDLDriverFactory.new(“[http://aspire388:8080/ClubConcierge306/axis/LWFlowerService?wsdl](http://aspire388:8080/ClubConcierge306/axis/LWFlowerService?wsdl)”)  
soap = factory.create\_rpc\_driver

The error message is:

part: requestParams cannot be resolved  
RAILS\_ROOT: E:/Pavo/csat

Application Trace | Framework Trace | Full Trace  
c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:144:in  
`rpcdefinedtype' c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:49:in `collect\_rpcparameter’  
c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:47:in `collect' c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:47:in `collect\_rpcparameter’  
c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:130:in `create_param_def' c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:101:in `add\_operation’  
c:/ruby/lib/ruby/1.8/xsd/namedelements.rb:58:in `each' c:/ruby/lib/ruby/1.8/xsd/namedelements.rb:57:in `each’  
c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:96:in `add_operation' c:/ruby/lib/ruby/1.8/soap/wsdlDriver.rb:40:in `create\_rpc\_driver’  
app/controllers/webserv\_controller.rb:6:in `index' -e:2:in `load’  
-e:2

Anyone faced this issue?

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [October 23, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/soap4r/151594/2 "2008-10-23T15:30:42Z")

</div>

I haven’t faced such a problem before. Are you able to visit that URL in  
your browser and see the WSDL? If you can, then at least you know that  
the  
URL is good and that the problem is in your code or the soap4r library.

Regards,  
Craig

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [October 24, 2008, 7:11am UTC](https://www.ruby-forum.com/t/soap4r/151594/3 "2008-10-24T07:11:49Z")

</div>

I am also facing the same problem. When I visited the URL in my browser  
I could see the WSDL. But when I tried in application I was getting the  
same error.

When I explored the cause of the error, I could find that the problem is  
with the encoding style. I am getting teh WSDL::Part type as

{[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)}string

But when it compares with the existing types, there is no such one.

‘{[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)}base64’ is available in the  
existing types. The other types are of  
‘{[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)}’ types.

Please refer /ruby/lib/ruby/1.8/soap/mapping/typeMap.rb .

I am analyzing it but I have not yet found the solution. Please help if  
can find it out.

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [October 24, 2008, 9:30am UTC](https://www.ruby-forum.com/t/soap4r/151594/4 "2008-10-24T09:30:41Z")

</div>

I found out the reason for that error. Bu default, the soap classes in  
“/ruby/lib/ruby/1.8” folder are used but not the classes inside the  
soap4r gem.

When I deleted the soap, wsdl and xsd folders inside ‘1.8’ folder, I got  
the error resolved.

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [October 24, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/soap4r/151594/5 "2008-10-24T16:23:58Z")

</div>

It’s risky to just delete the classes, since you’re altering your  
install of  
Ruby. There must be a way to ensure that the classes from the gem are  
used  
that preserves your Ruby installation.

Craig
