ruby调用webservice的示例代码

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

编程技巧