XMLRPC client : xmlrpc « Network « Ruby






XMLRPC client


require "xmlrpc/client"

uri = ARGV[0] || "http://localhost:8080"
system = XMLRPC::Client.new2(uri).proxy("system")

puts "Introspecting #{ uri }"
for meth in system.listMethods.sort
  puts '=' * 70
  for sig in system.methodSignature(meth)
    puts "- %s %s( %s )" % [
      sig[0], meth, (sig[1..-1] || []).join(', ')
    ]
  end
  puts "", system.methodHelp(meth)
end

 








Related examples in the same category

1.Writing XML-RPC Clients
2.XMLRPC call
3.Writing XML-RPC Servers
4.Dumping and Loading XML-RPC Messages
5.Calling a method made available over XML-RPC
6.process errors that come back from RPC calls with call2
7.Making an XML-RPC-Enabled Program