1 = XMLRPC for Ruby, Standard Library Documentation
5 XMLRPC is a lightweight protocol that enables remote procedure calls over
6 HTTP. It is defined at http://www.xmlrpc.com.
8 XMLRPC allows you to create simple distributed computing solutions that span
9 computer languages. Its distinctive feature is its simplicity compared to
10 other approaches like SOAP and CORBA.
12 The Ruby standard library package 'xmlrpc' enables you to create a server that
13 implements remote procedures and a client that calls them. Very little code
14 is required to achieve either of these.
18 Try the following code. It calls a standard demonstration remote procedure.
20 require 'xmlrpc/client'
23 server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php")
24 result = server.call("sample.sumAndDifference", 5, 3)
29 See http://www.ntecs.de/projects/xmlrpc4r. There is plenty of detail there to
30 use the client and implement a server.