Type:
Class
Constants:
USER_AGENT : "XMLRPC::Client (Ruby #{RUBY_VERSION})"

Provides remote procedure calls to a XML-RPC server.

After setting the connection-parameters with ::new which creates a new XMLRPC::Client instance, you can execute a remote procedure by sending the #call or #call2 message to this new instance.

The given parameters indicate which method to call on the remote-side and of course the parameters for the remote procedure.

require "xmlrpc/client"

server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)
begin
  param = server.call("michael.add", 4, 5)
  puts "4 + 5 = #{param}"
rescue XMLRPC::FaultException => e
  puts "Error:"
  puts e.faultCode
  puts e.faultString
end

or

require "xmlrpc/client"

server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)
ok, param = server.call2("michael.add", 4, 5)
if ok then
  puts "4 + 5 = #{param}"
else
  puts "Error:"
  puts param.faultCode
  puts param.faultString
end
new_from_uri

new_from_uri(uri, proxy=nil, timeout=nil) Class Public methods Alias for:

2015-06-13 16:54:09
new

new(host=nil, path=nil, port=nil, proxy_host=nil, proxy_port=nil, user=nil, password=nil, use_ssl=nil, timeout=nil)

2015-06-13 16:35:43
multicall

multicall(*methods) Instance Public methods You can use this method to execute

2015-06-13 17:13:59
new_from_hash

new_from_hash(hash={}) Class Public methods Alias for:

2015-06-13 16:52:17
new3

new3(hash={}) Class Public methods Receives a

2015-06-13 16:45:46
proxy2

proxy2(prefix=nil, *args) Instance Public methods Almost the same like

2015-06-13 17:45:24
call_async

call_async(method, *args) Instance Public methods Similar to

2015-06-13 17:10:12
proxy

proxy(prefix=nil, *args) Instance Public methods Returns an object of class

2015-06-13 17:42:07
timeout=

timeout=(new_timeout) Instance Public methods Sets the Net::HTTP#read_timeout

2015-06-13 17:49:21
multicall2

multicall2(*methods) Instance Public methods Same as

2015-06-13 17:18:34