Jesper Dalberg

NAME

Dancer::Plugin::RPC::XML - A plugin for Dancer to wrap XML-RPC calls

VERSION

Version 0.06

SYNOPSIS

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;
  };
 

REGISTERED METHODS

xmlrpc

Route handler for xmlrpc routes. Unwraps requests and re-wraps responses in xml using the RPC::XML module.

xmlrpc_fault( $faultCode, $faultString )

Returns xmlrpc fault xml

AUTHOR

Jesper Dalberg, <jdalberg at gmail.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Dancer::Plugin::RPC::XML

You can also look for information at:

ACKNOWLEDGEMENTS

  • Thanks to Randy J Ray (RJRAY) for the wonderful RPC::XML module

  • Thanks to the Dancer project for creating an alternative to CGI!

COPYRIGHT & LICENSE

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.