Bogus example for 16.4?

This commit is contained in:
Dan Buch 2011-11-18 09:03:28 -05:00
parent b68f6c759d
commit b01c682613

10
cookbook/016/04.rb Normal file
View File

@ -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)