The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catalyst::Plugin::XMLRPC - Dispatch XMLRPC methods with Catalyst

SYNOPSIS

    # include it in plugin list
    use Catalyst qw/XMLRPC/;

    # Public action to redispatch
    sub entrypoint : Global {
        my ( $self, $c ) = @_;
        $c->xmlrpc;
    }

    # Methods with Remote attribute in same class
    sub echo : Remote {
        my ( $self, $c, @args ) = @_;
        return join ' ', @args;
    }

    sub add : Remote {
        my ( $self, $c, $a, $b ) = @_;
        return $a + $b;
    }

DESCRIPTION

This plugin allows your controller class to dispatch XMLRPC methods from its own class.

METHODS

$c->xmlrpc(%attrs)

Call this method from a controller action to set it up as a endpoint for RPC methods in the same class.

Supported attributes: class: name of class to dispatch (defaults to current one) method: method to dispatch to (overrides xmlrpc method)

NEW ACTION ATTRIBUTES

Remote

The "Remote" attribute indicates that this action can be dispatched through RPC mechanisms like XML-RPC

SEE ALSO

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper, RPC::XML

AUTHOR

Sebastian Riedel, sri@oook.de Marcus Ramberg, mramberg@cpan.org Christian Hansen Yoshinori Sano

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.