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
call2_async

call2_async(method, *args) Instance Public methods Same as

2015-06-13 17:08:47
call2

call2(method, *args) Instance Public methods The difference between this method

2015-06-13 17:04:18
password=

password=(new_password) Instance Public methods Changes the password for the

2015-06-13 17:34:39
multicall_async

multicall_async(*methods) Instance Public methods Similar to

2015-06-13 17:28:30
user=

user=(new_user) Instance Public methods Changes the user for the Basic Authentication

2015-06-13 17:53:22
call

call(method, *args) Instance Public methods Invokes the method named method

2015-06-13 16:57:22
proxy_async

proxy_async(prefix=nil, *args) Instance Public methods Similar to

2015-06-13 17:48:26
new2

new2(uri, proxy=nil, timeout=nil) Class Public methods Creates an object which

2015-06-13 16:40:15
proxy2_async

proxy2_async(prefix=nil, *args) Instance Public methods Same as

2015-06-13 17:46:32
multicall2_async

multicall2_async(*methods) Instance Public methods Same as

2015-06-13 17:22:31