This page contains automated test results for code from O'Reilly's Ruby Cookbook. If this code looks interesting or useful, you might want to buy the whole book.

Writing a SOAP Client (written by Kevin Marshall)
require 'soap/rpc/driver'
driver =
puts driver.getQuote
The holy passion of Friendship is of so sweet and steady and
loyal and enduring a nature that it will last through a whole
lifetime, if not asked to lend money.
Mark Twain (1835 - 1910)
EVERY path may lead you to God, even the weird ones. Most of us are on a journey. We?re looking for something, though we?re not always sure what that is. The way is foggy much of the time. I suggest you slow down and follow some of the side roads that appear suddenly in the mist.
Real Live Preacher
require 'soap/rpc/driver'
driver =
   '',      # The endpoint url
   'urn:xmethods-delayed-quotes')             # The namespace
driver.add_method('getQuote', 'symbol')
puts 'Stock price: %.2f' % driver.getQuote('TR')
Stock price: 28.78
Stock price: 29.27