MooseX::Role::XMLRPC::Client - provide the needed bits to be a XML-RPC client


MooseX-Role-XMLRPC-Client documentation  | view source Contained in the MooseX-Role-XMLRPC-Client distribution.

Index


NAME

Top

MooseX::Role::XMLRPC::Client - provide the needed bits to be a XML-RPC client

SYNOPSIS

Top

    package MultipleWiths;
    use Moose;

    # ...

    # we don't want to keep any login information here
    with 'MooseX::Role::XMLRPC::Client' => { 
        name => 'bugzilla',
        uri  => 'https://bugzilla.redhat.com/xmlrpc.cgi',
        login_info => 0,
    };

    # basic info
    with 'MooseX::Role::XMLRPC::Client' => {
        name => 'foo',
        uri  => 'http://foo.org/a/b/c',
    };

    sub _build_foo_userid { 'userid'   }
    sub _build_foo_passwd { 'passw0rd' }

    sub foo_login  { 'do login magic here..'   }
    sub foo_logout { 'do logout magic here...' }

DESCRIPTION

Top

This is a Moose role that provides methods and attributes needed to enable a class to serve as an XML-RPC client. It is parameterized through MooseX::Role::Parameterized, so you can customize how it embeds in your class. You can even embed it multiple times with different paramaterization, if it strikes your fancy :-)

ROLE PARAMETERS

Top

This role generates methods and attributes depending on these parameters. None of them are required.

name

This parameter defaults to "xlmrpc". It serves as a prefix to all generated methods and attributes. File and URI types are coerced.

uri (URI)

login_info (Bool)

traits (ArrayRef[Str])

An arrayref of traits to apply to the attributes.

METHODS/ATTRIBUTES

Top

Right now, the best documentation can be found in the tests.

SEE ALSO

Top

RPC::XML::Client, Moose::Role, MooseX::Role::Parameterized.

This package is part of the Fedora Project's Perl SIG work. For more information, see:

    L<http://fedoraproject.org>
    L<http://fedoraproject.org/wiki/Perl>
    L<http://camelus.fedorahosted.org>

TODO

Top

Documentation. Clearly. :-)

BUGS AND LIMITATIONS

Top

There are no known bugs in this module.

Please report problems to Chris Weyl <cweyl@alumni.drew.edu>, or (preferred) to this package's RT tracker at <bug-MooseX-Role-XMLRPC-Client@rt.cpan.org>.

Patches are welcome.

AUTHOR

Top

Chris Weyl <cweyl@alumni.drew.edu>

LICENSE AND COPYRIGHT

Top


MooseX-Role-XMLRPC-Client documentation  | view source Contained in the MooseX-Role-XMLRPC-Client distribution.