s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
12. Using XML-RPC with Ruby(This section of the XML-RPC HOWTO was generously provided by Michael Neumann.) Ruby is an object-oriented scripting language. It already has a major following in Japan, and it's becoming popular elsewhere. To use XML-RPC with Ruby, you must first install Yoshida Masato's xmlparser module (a wrapper for James Clark's expat parser). This can be found at the Ruby Application Archive. Then, you must install xmlrpc4r using the following commands:
12.1. A Ruby ClientHere's a simple Ruby client:
12.2. A Ruby ServerHere's a simple Ruby server:
This could also have been written as follows:
To run either server in standalone mode, replace the second line of code with the following:
|