Sha256: d585e1fc4f25aede2f684ef37700a282c5bf5102b3b03d0cbe4b3a0ebd4ec004

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

= xmlrpc-endpoint

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
<tt>
  gem install xmlrpc-endpoint
  include ActionController::Acts::XmlrpcEndpoint somewhere in your environment
  set up a route to the action "index" in your controller (this action will be created for you by the xmlrpc-endpoint)
</tt>

Code
<tt>
class MyApiController < ApplicationController
  exposes_xmlrpc_methods
end
</tt>

Then, pointing an XMLRPC client at the defined route, your normal controller actions will handle the requests.

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Will Koffel, released under the MIT license.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xmlrpc-endpoint-0.1.0 README.rdoc