MooseX::Role::XMLRPC::Client - provide the needed bits to be a XML-RPC client
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...' }
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 :-)
This role generates methods and attributes depending on these parameters. None of them are required.
This parameter defaults to "xlmrpc". It serves as a prefix to all generated methods and attributes. File and URI types are coerced.
An arrayref of traits to apply to the attributes.
Right now, the best documentation can be found in the tests.
RPC::XML::Client, Moose::Role, MooseX::Role::Parameterized.
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.
Chris Weyl <cweyl@alumni.drew.edu>
Copyright (c) 2009 Chris Weyl <cweyl@alumni.drew.edu>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the
Free Software Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307 USA
To install MooseX::Role::XMLRPC::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Role::XMLRPC::Client
CPAN shell
perl -MCPAN -e shell install MooseX::Role::XMLRPC::Client
For more information on module installation, please visit the detailed CPAN module installation guide.