MooseX:...:Client(3)
π MooseX::Role::XMLRPC::Client π
okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's genuinely one of those little gems that does one thing and does it so well. buckle up π
β¨ NAME β¨
MooseX::Role::XMLRPC::Client β provide the needed bits to be a XML-RPC client π¦
πΈ SYNOPSIS πΈ
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...' }
like, look at that. you're just slurping a whole XML-RPC client into your class and going about your day. iconic behavior, no notes π
π¦ DESCRIPTION π¦
This is a Moose role that hands you the methods and attributes you need to let a class act as an XML-RPC client. it's parameterized through MooseX::Role::Parameterized, so you get to customize exactly how it embeds itself into your class. and here's the part that's giving main character energy: you can even embed it multiple times with different parameterization, if that strikes your fancy :-)
fr fr. multiple times. your class can be a whole group chat of XML-RPC clients. obsessed.
π ROLE PARAMETERS π
so this role generates methods and attributes based on these parameters. and the best part? none of them are required. zero. you can just vibe.
π name
This parameter defaults to "xlmrpc". It serves as a prefix to all generated methods and attributes. File and URI types are coerced.
ngl the default is spelled "xlmrpc" β that's not a typo on my part, that's literally what it says, so don't come for me π copy it exactly if you're relying on it.
π uri (URI)
π login_info (Bool)
π cookie_jar (File)
π traits (ArrayRef[Str])
An arrayref of traits to apply to the attributes.
those four are just chillin' there with their types, no extra prose, and I'm respecting the silence π
β¨ METHODS/ATTRIBUTES β¨
Right now, the best documentation can be found in the tests.
and honestly? that's so real of this module. the tests ARE the docs. go read them, bestie, they're the whole vibe π§
π₯ SEE ALSO π₯
RPC::XML::ClientMoose::RoleMooseX::Role::Parameterized
periodt. those are your girlies. π
π BUGS AND LIMITATIONS π
There are no known bugs in this module.
π clean. pristine. no cap.
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>.
key word: preferred. the RT tracker is the one they actually want you to use, so slide in there first π«Ά
Patches are welcome.
yes please, we love a contributor π
π AUTHOR π
Chris Weyl <cweyl@alumni.drew.edu>
π LICENSE AND COPYRIGHT π
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.
β οΈ that's the legal equivalent of "no promises bestie." read the actual license, it means what it says.
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
and that's the whole page, babe π«Ά this one's perl v5.42.0, dated 2025-07-25, and it lives in the MooseX:...:Client(3) section of the manual. mwah π β¨
π¦ where this page comes from
- fedora 43: perl-MooseX-Role-XMLRPC-Client 0.07-29.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms