XMLRPC is a lightweight protocol that enables remote procedure calls over HTTP. It is defined at What is XML-RPC? - http://www.xmlrpc.com.
XMLRPC allows you to create simple distributed computing solutions that span computer languages. Its distinctive feature is its simplicity compared to other approaches like SOAP and CORBA.
The Ruby standard library package
xmlrpc enables you to create a server that implements remote procedures and a client that calls them. Very little code is required to achieve either of these.
Starting in Ruby
xmlrpc library that was before bundled with ruby has been extracted to a gem. So you must just add this to your
Gemfile file and
You can install it as a gem:
gem install xmlrpc
or add it into a Gemfile (Bundler):
Try the following code. It calls a standard demonstration remote procedure.