XMLRPC::Lite(3)

πŸ’… XMLRPC::Lite β€” the perl manual page, but make it group chat

okay so bestie. you're looking at XMLRPC::Lite(3), which is a Perl module β€” and not just any module, it's the one that gives you a simple interface to the XML-RPC protocol, on both the client side and the server side. it's built on top of SOAP::Lite, which means you get access to literally every feature and transport that module has. no cap. πŸŽ€


✨ NAME ✨

XMLRPC::Lite β€” client and server implementation of XML-RPC protocol. that's it. that's the whole vibe. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

three flavors, pick your fighter:

Client

use XMLRPC::Lite;
print XMLRPC::Lite
    -> proxy('http://betty.userland.com/RPC2')
    -> call('examples.getStateStruct', {state1 => 12, state2 => 28})
    -> result;

look at that chaining. proxy β†’ call β†’ result. it's giving main character energy, fr fr. ✨

CGI server

use XMLRPC::Transport::HTTP;

my $server = XMLRPC::Transport::HTTP::CGI
  -> dispatch_to('methodName')
  -> handle
;

Daemon server

use XMLRPC::Transport::HTTP;

my $daemon = XMLRPC::Transport::HTTP::Daemon
  -> new (LocalPort => 80)
  -> dispatch_to('methodName')
;
print "Contact to XMLRPC server at ", $daemon->url, "\n";
$daemon->handle;

daemon mode goes brrr, and yes you literally print the URL so people know where to find it. iconic. πŸ‘‘


🌸 DESCRIPTION 🌸

XMLRPC::Lite is a Perl module (the original says "modules", we love a plural) that hands you a simple interface to the XML-RPC protocol β€” client side and server side, both. 🫢

it's based on the SOAP::Lite module, and because of that you get access to all the features and transports available in that module. all of them. the whole buffet. πŸ”₯

lowkey important: go peek at t/26-xmlrpc.t for client examples, and examples/XMLRPC/* for server implementations. that's where the real ones live. πŸ’œ

🧚 DEPENDENCIES 🧚

  • SOAP::Lite β€” yeah. that one. your bestie depends on its bestie. πŸ’€

⭐ SEE ALSO ⭐

  • SOAP::Lite

(short list, but it's a quality list, iykyk)


🌈 CREDITS 🌈

The XML-RPC standard is Copyright (c) 1998-2001, UserLand Software, Inc.

See <http://www.xmlrpc.com> for more information about the XML-RPC specification. πŸ¦‹


Copyright (C) 2000-2001 Paul Kulchenko. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸ’–


πŸŽ€ AUTHOR πŸŽ€

Paul Kulchenko (paulclinger@yahoo.com)


and that's the whole page, bestie β€” no notes, ate and left no crumbs πŸ’…

little sign-off for the record: this page ships with perl v5.42.0, dated 2014-06-25, filed under XMLRPC::Lite(3). periodt. ✨🌷
πŸ“¦ where this page comes from