Ruby 编写一个 SOAP 客户端

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

require 'soap/rpc/driver'

driver = SOAP::RPC::Driver.new(
            'http://webservices.codingtheweb.com/bin/qotd',
            'urn:xmethods-qotd')

driver.add_method('getQuote')

puts driver.getQuote