Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Perl implementation of the XML-RPC specification

Fetching latest commit…

Cannot retrieve the latest commit at this time

RPC::XML - An implementation of XML-RPC

Version: 0.70


The RPC::XML package is an implementation of XML-RPC. The module provides
classes for sample client and server implementations, a server designed as an
Apache location-handler, and a suite of data-manipulation classes that are
used by them.


There are not any pre-packaged executables in this distribution (except for a
utility tool). Client usage will usually be along the lines of:

    use RPC::XML::Client;
    my $client = new RPC::XML::Client
    my $req = RPC::XML::request->new('meerkat.getChannelsBySubstring', 'perl');
    my $res = $client->send_request($req);
    # This returns an object of the RPC::XML::response class. This double-call
    # of value() first gets a RPC::XML::* data object from the response, then
    # the actual data from it:
    my $value = $res->value->value;

Running a simple server is not much more involved:

    use RPC::XML::Server;
    my $srv = new RPC::XML::Server (host => 'localhost',
                                    port => 9000);
    # You would then use $srv->add_method to add some remotely-callable code
    $srv->accept_loop; # Stays in an accept/connect loop


This package is set up to configure and build like a typical Perl extension.
To build:

        perl Makefile.PL
        make && make test

If RPC::XML passes all tests, then:

        make install

You may need super-user access to install.


Please send any reports of problems or bugs to


The Artistic 2.0:
The LGPL 2.1:


* lib/RPC/
* t/10_data.t
RT #49406: Make Base64 data-type allow zero-length data.

* lib/RPC/
* t/10_data.t
Hand-applied a patch (most likely from Bill Moseley) to extend
the construction of dateTime.iso8601 data-types.

* t/40_server.t
Fixed another corner-case for the url() test.

* lib/RPC/
Fixed a case from previous work that caused "undef" warnings.

* lib/RPC/
* lib/RPC/XML/
* t/28_parser_bugs_50013.t
RT #50013: Restore backwards-compatibility for projects that
use RPC::XML::Parser directly.

* lib/RPC/XML/
RT #50143: Incorrectly called server_fault() as if it were a

* lib/Apache/RPC/
Applied patch from Frank Wiegand to fix a POD problem.

* lib/RPC/
Some additional regexp issues on dateTime.iso8601, to handle

* lib/RPC/XML/
Fixed some minor doc errors.

* lib/RPC/XML/Parser/
Moved the 'require' of some libraries to the point where they
are first needed, to delay loading until/unless necessary.

* lib/RPC/XML/Parser/ (added)
* t/21_xml_libxml.t (added)
* t/29_parserfactory.t
* t/40_server_xmllibxml.t (added)
Implement support for XML::LibXML in the parser-factory.
Something went wrong with that request. Please try again.