ruby调用webservice的示例代码

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

require 'rubygems'
require 'soap/wsdlDriver'

url = "http://localhost:3001/hello_message/wsdl"
client = SOAP::WSDLDriverFactory.new(url).create_rpc_driver
client.addUser('arron', 26, true, 'arron@gmail.com')