From b01c6826131196ba58b5288a3182f2526c89c249 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Fri, 18 Nov 2011 09:03:28 -0500 Subject: [PATCH] Bogus example for 16.4? --- cookbook/016/04.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cookbook/016/04.rb diff --git a/cookbook/016/04.rb b/cookbook/016/04.rb new file mode 100644 index 0000000..6447b2a --- /dev/null +++ b/cookbook/016/04.rb @@ -0,0 +1,10 @@ +require 'soap/rpc/driver' + +# doesn't work (service no longer available?) +driver = SOAP::RPC::Driver.new( + 'http://services.xmethods.net/soap/', 'url:xmethods-delayed-quotes' +) + +driver.add_method('getQuote', 'symbol') + +puts 'Stock price: %.2f' % driver.getQuote(ARGV.first)