From: Peter Aszkenasy Date: 2007-10-12T00:13:49+09:00 Subject: Re: Betfair soap problem Yes - once I downloaded and edited the wsdl file locally as per your instructions, everything is now working. Using the remote service (soap4r 1.5.8) without downloading the wsdl file results in the following error:- irb(main):001:0> require 'rubygems' => false irb(main):002:0> gem "soap4r" => true irb(main):003:0> require "soap/wsdlDriver" => true irb(main):004:0> wsdl = "https://api.betfair.com/global/v3/BFGlobalService" => "https://api.betfair.com/global/v3/BFGlobalService" irb(main):005:0> bfsoapclient = SOAP::WSDLDriverFactory.new( wsdl).create_rpc_driver RuntimeError: Unexpected response: # from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:2058:in `follow_redirect' from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1890:in `get_content' from /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:73:in `fetch' from /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/xmlSchema/importer.rb:36:in `import' from /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/wsdl/importer.rb:18:in `import' from /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:146:in `import' from /usr/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:32:in `initialize' from (irb):5:in `new' from (irb):5 -- Posted via http://www.ruby-forum.com/.