清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'xmlrpc/client' server = XMLRPC::Client.new2('http://yourURL') server.call('yourmethod', 5) begin server.call('noSuchMethod') rescue XMLRPC::FaultException => e puts "Error: fault code #{e.faultCode}" puts e.faultString end