[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rubygems soap/wsdlDriver issue

Alin Alin

1/16/2007 7:43:00 PM

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"
driver=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver

... and I got the following error:

NoMethodError: undefined method `new' for nil:NilClass
from /usr/lib/ruby/1.8/xsd/xmlparser/parser.rb:33:in
`create_parser'
from /usr/lib/ruby/1.8/xsd/xmlparser.rb:17:in `create_parser'
from /usr/lib/ruby/1.8/wsdl/parser.rb:53:in `initialize'
from
/usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:29:in
`parse'
from
/usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/xmlSchema/importer.rb:30:in
`import'
from
/usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:18:in
`import'
from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:124:in `import'
from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:28:in `initialize'
from (irb):4
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

--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

1/16/2007 7:54:00 PM

0

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"
> driver=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
>
> ... and I got the following error:
>
> NoMethodError: undefined method `new' for nil:NilClass
> from /usr/lib/ruby/1.8/xsd/xmlparser/parser.rb:33:in
> `create_parser'
> from /usr/lib/ruby/1.8/xsd/xmlparser.rb:17:in `create_parser'
> from /usr/lib/ruby/1.8/wsdl/parser.rb:53:in `initialize'
> from
> /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:29:in
> `parse'
> from
> /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/xmlSchema/importer.rb:30:in
> `import'
> from
> /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.5.20061022/lib/wsdl/importer.rb:18:in
> `import'
> from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:124:in `import'
> from /usr/lib/ruby/1.8/soap/wsdlDriver.rb:28:in `initialize'
> from (irb):4
> 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

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

J.

Alin Alin

1/16/2007 8:02:00 PM

0

Jan Svitok wrote:
> On 1/16/07, Alin Alin <alinutzzu@yahoo.com> wrote:
>>
>> 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....
> 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-....