# Rubygems soap/wsdlDriver issue

**URL:** <https://rubytalk.org/t/rubygems-soap-wsdldriver-issue/34519>\
**Category:** ruby-talk\
**Created:** [16 January 2007 19:43 UTC](https://rubytalk.org/t/rubygems-soap-wsdldriver-issue/34519 "2007-01-16T19:43:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alin\_Alin](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Alin\_Alin](https://rubytalk.org/u/Alin_Alin)\
**Post date:** [16 January 2007 19:43 UTC](https://rubytalk.org/t/rubygems-soap-wsdldriver-issue/34519/1 "2007-01-16T19:43:21Z")

</div>

Hi guys,

Recently I discover one problem into one of my Ruby scripts.  
These are the steps that I made:

require 'rubygems'  
require 'soap/wsdlDriver'

wsdl="[http://localhost:8080/axis/ServiceTest.jws?wsdl](http://localhost:8080/axis/ServiceTest.jws?wsdl)"  
driver=SOAP::WSDLDriverFactory.new(wsdl).create\_rpc\_driver

... and I got the following error:

NoMethodError: undefined method `new' for nil:NilClass  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/xsd/xmlparser/parser.rb:33:in  
`create\_parser'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/xsd/xmlparser.rb:17:in `create\_parser'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/wsdl/parser.rb:53:in `initialize'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:29:in  
`parse'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/xmlSchema/importer.rb:30:in  
`import'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:18:in  
`import'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:124:in `import'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:28:in `initialize'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):4

Is this a well known issue ? Because I didn't find too much help over  
Internet regarding this.

OS: Ubuntu Edgy (6.10)  
Ruby version: 1.8.4 (2005-12-24) [i486-linux]  
soap4r: (1.5.5.20061022)  
rubygems-update: 0.9.0

Please, some solutions ?  
Any help will be appreciated.

Thanks in advance.

Best regards,

Alin

> **···**
>
> from :0
> 
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Jan\_Svitok](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@Jan\_Svitok](https://rubytalk.org/u/Jan_Svitok)\
**Post date:** [16 January 2007 19:53 UTC](https://rubytalk.org/t/rubygems-soap-wsdldriver-issue/34519/2 "2007-01-16T19:53:51Z")

</div>

You are mixing two versions of soap4r: one bundled with ruby, the  
other installed as gem.  
Maybe this will be helpful: [http://dev.ctor.org/soap4r](http://dev.ctor.org/soap4r)  
Either remove the gem, use the require\_gem or replace the sources in  
/usr/lib/ruby/1.8 with those from gem.

J.

> **···**
>
> On 1/16/07, Alin Alin \<alinutzzu@yahoo.com\> wrote:
> 
> > Hi guys,
> > 
> > Recently I discover one problem into one of my Ruby scripts.  
> > These are the steps that I made:
> > 
> > require 'rubygems'  
> > require 'soap/wsdlDriver'
> > 
> > wsdl="[http://localhost:8080/axis/ServiceTest.jws?wsdl&quot](http://localhost:8080/axis/ServiceTest.jws?wsdl&quot);  
> > driver=SOAP::WSDLDriverFactory.new(wsdl).create\_rpc\_driver
> > 
> > ... and I got the following error:
> > 
> > NoMethodError: undefined method `new' for nil:NilClass  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/xsd/xmlparser/parser.rb:33:in  
> > `create\_parser'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/xsd/xmlparser.rb:17:in `create\_parser'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/wsdl/parser.rb:53:in `initialize'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
> > /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:29:in  
> > `parse'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
> > /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/xmlSchema/importer.rb:30:in  
> > `import'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
> > /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:18:in  
> > `import'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:124:in `import'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:28:in `initialize'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):4  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from :0
> > 
> > Is this a well known issue ? Because I didn't find too much help over  
> > Internet regarding this.
> > 
> > OS: Ubuntu Edgy (6.10)  
> > Ruby version: 1.8.4 (2005-12-24) [i486-linux]  
> > soap4r: (1.5.5.20061022)  
> > rubygems-update: 0.9.0
> > 
> > Please, some solutions ?  
> > Any help will be appreciated.
> > 
> > Thanks in advance.
> > 
> > Best regards,
> > 
> > Alin

---

<div class="post-metadata">

**Author:** ![Alin\_Alin](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Alin\_Alin](https://rubytalk.org/u/Alin_Alin)\
**Post date:** [16 January 2007 20:02 UTC](https://rubytalk.org/t/rubygems-soap-wsdldriver-issue/34519/3 "2007-01-16T20:02:16Z")

</div>

Jan Svitok wrote:

> **···**
>
> > On 1/16/07, Alin Alin \<alinutzzu@yahoo.com\> wrote:
> > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
> > > Is this a well known issue ? Because I didn't find too much help over  
> > > Thanks in advance.
> > > 
> > > Best regards,
> > > 
> > > Alin
> > 
> > You are mixing two versions of soap4r: one bundled with ruby, the  
> > other installed as gem.  
> > Maybe this will be helpful: [http://dev.ctor.org/soap4r](http://dev.ctor.org/soap4r)  
> > Either remove the gem, use the require\_gem or replace the sources in  
> > /usr/lib/ruby/1.8 with those from gem.
> > 
> > J.
> 
> Thank you,
> 
> I just uninstall the gem of soap4r and worked great.  
> I didn't know that ruby already have one soap4r bundled.
> 
> Regards,
> 
> Alin
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
