diff options
Diffstat (limited to 'actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb')
-rw-r--r-- | actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb | 16 |
1 files changed, 16 insertions, 0 deletions
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 |