Path: | README.rdoc |
Last Update: | Fri Jan 01 15:19:02 -0500 2010 |
Rails has native support for xmlrpc. Most people are familiar with the ‘xmlrpc/client’ library. The ‘xmlrpc/server’ library examples mostly make an assumption that you will run a standalone server.
xmlrpc-endpoint allows you to expose normal Rails controller methods via XMLRPC, tied to a single xmlrpc endpoint route in your normal app.
Setup your environment
Add this code to your controller:
class MyApiController < ApplicationController exposes_xmlrpc_methods end
Then, pointing an XMLRPC client at the defined route, your normal controller actions will handle the requests.
Copyright (c) 2010 Will Koffel, released under the MIT license.