Calling a method made available over XML-RPC : xmlrpc « Network « Ruby






Calling a method made available over XML-RPC


require 'xmlrpc/client'

server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php")
puts server.call("sample.sumAndDifference", 5, 3).inspect

 








Related examples in the same category

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