Topic: Soap working in irb not in console
Hello,
I am trying to consume some web service based on soap.
I started with some tests with irb (ruby 1.8.7) and they worked perfectly.
When I try the exact same test in the rails console (rails 2.1.2) it is not working and I get the following error
soapi = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
RuntimeError: Cannot connect to https://www.ovh.com/soapi/soapi-re-1.54.wsdl (Not HTTP.)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/soap/netHttpClient.rb:145:in `create_connection'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/soap/netHttpClient.rb:113:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/soap/netHttpClient.rb:104:in `get_content'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:64:in `fetch'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/wsdl/xmlSchema/importer.rb:30:in `import'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/wsdl/importer.rb:18:in `import'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/soap/wsdlDriver.rb:124:in `import'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/soap/wsdlDriver.rb:28:in `initialize'
from (irb):17:in `new'
from (irb):17Any idea why?
Thanks
Nicolas