From 4f2f408ba1a7dd976a1ec5061d05ef0439e5f942 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Thu, 10 Mar 2005 11:53:29 +0000 Subject: allow 0, 1, '0' or '1' to be cast to the appropriate values for boolean values. update XML-RPC example to work in :layered mode. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../examples/metaWeblog/controllers/xmlrpc_controller.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb (limited to 'actionwebservice/examples/metaWeblog/controllers') diff --git a/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb b/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb new file mode 100644 index 0000000000..7486402d6c --- /dev/null +++ b/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb @@ -0,0 +1,16 @@ +# +# example controller implementing both blogger and metaWeblog APIs +# in a way that should be compatible with clients supporting both/either. +# +# test by pointing your client at http://URL/xmlrpc/api +# + +require 'meta_weblog_service' +require 'blogger_service' + +class XmlrpcController < ApplicationController + web_service_dispatching_mode :layered + + web_service :metaWeblog, MetaWeblogService.new + web_service :blogger, BloggerService.new +end -- cgit v1.2.3