Dancer::Plugin::RPC::XML - A plugin for Dancer to wrap XML-RPC calls
Version 0.06
Quick summary of what the module does.
# in your app.pl use Dancer::Plugin::RPC::XML; xmlrpc '/foo/bar' => sub { # methodname my $method = params->{method}; # listref of data my $data = params->{data}; return xmlrpc_fault(100,"Undefined method") unless $method =~ /something_known/; my $response; $response->{name} = "John Smith"; return $response; };
Route handler for xmlrpc routes. Unwraps requests and re-wraps responses in xml using the RPC::XML module.
Returns xmlrpc fault xml
Jesper Dalberg, <jdalberg at gmail.com>
<jdalberg at gmail.com>
Please report any bugs or feature requests to bug-dancer-plugin-rpc-xml at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Plugin-RPC-XML. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dancer-plugin-rpc-xml at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dancer::Plugin::RPC::XML
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Plugin-RPC-XML
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dancer-Plugin-RPC-XML
CPAN Ratings
http://cpanratings.perl.org/d/Dancer-Plugin-RPC-XML
Search CPAN
http://search.cpan.org/dist/Dancer-Plugin-RPC-XML/
Thanks to Randy J Ray (RJRAY) for the wonderful RPC::XML module
Thanks to the Dancer project for creating an alternative to CGI!
Copyright 2012 Jesper Dalberg, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Dancer::Plugin::RPC::XML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::RPC::XML
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::RPC::XML
For more information on module installation, please visit the detailed CPAN module installation guide.