Type:
Class

XML-RPC calls look nicer!

You can call any method onto objects of that class - the object handles #method_missing and will forward the method call to a XML-RPC server.

Don't use this class directly, instead use the public instance method XMLRPC::Client#proxy or XMLRPC::Client#proxy2.

1
2
3
4
5
6
7
8
9
10
require "xmlrpc/client"
 
server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)
 
michael  = server.proxy("michael")
michael2 = server.proxy("michael", 4)
 
# both calls should return the same value '9'.
p michael.add(4,5)
p michael2.add(5)
method_missing
  • References/Ruby on Rails/Ruby/Classes/XMLRPC/XMLRPC::Client/XMLRPC::Client::Proxy

method_missing(mid, *args) Instance Public methods Every method call is forwarded

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Ruby/Classes/XMLRPC/XMLRPC::Client/XMLRPC::Client::Proxy

new(server, prefix, args=[], meth=:call, delim=".") Class Public methods Creates

2025-01-10 15:47:30