You are here iC Home > Perl > XML with Perl > XML RPC

Perl

5.2 XML RPC

15.05.2008
5.1 RSS 2.0 [  up  ] - [ a - z ] - [ search PC ] - [ top ] 5.2.1 XML::Parser

RPC::XML

use RPC::XML;

$req = RPC::XML::request->new('fetch_prime_factors',
		 RPC::XML::int->new(985120528));
...
	
$resp = RPC::XML::Parser->new()->parse(STREAM);
if (ref($resp))
{
	return $resp->value->value;
}
else
{
	die $resp;
}

RPC::XML::Client

require RPC::XML;
require RPC::XML::Client;
	   
$cli = RPC::XML::Client->new('http://www.localhost.net/RPCSERV');
$resp = $cli->send_request('system.listMethods');

print ref $resp ? join(', ', @{$resp->value}) : "Error: $resp";


Further Links

  1. LinuxSelfHelp.com/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-perl.html (Perl)
    http://www.linuxselfhelp.com/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-perl.html
    Using XML-RPC with Perl (2004-09-06 14:39)

  2. perl/xml-rpc-samples.htm (Perl)
    http://www.infocopter.com/perl/xml-rpc-samples.htm
    XML RPC Samples in Perl (2004-06-08 13:51)

  3. BlackPerl.com/RPC::XML (Perl)
    http://www.blackperl.com/RPC::XML/
    An implementation of the XML-RPC standard in Perl. The goal is to provide a client, a stand-alone server and an Apache/mod_perl content-handler class (2004-05-13 15:40)

  4. XMLRPC.com/spec (Reference)
    http://www.xmlrpc.com/spec/
    XML-RPC Specification (2003-06-26 17:48)

  5. DevShed.com/Server_Side/PHP/XMLRPCwithPHP/... (Reference)
    http://www.devshed.com/Server_Side/PHP/XMLRPCwithPHP/page5.html
    Tutorial (2003-02-07 11:18)

  6. PHP.net/manual/en/ref.xmlrpc.php (Reference)
    http://www.php.net/manual/en/ref.xmlrpc.php
    XML-RPC functions. Introduction
    (2003-02-06 14:05)

  7. XMLRPC-epi.sourceforge.net (CInternet:Webmaster)
    http://xmlrpc-epi.sourceforge.net/
    XMLRPC-EPI. A standalone C API for XML-RPC A php extension
    which uses this library is also available and is included
    with php as of php 4.1.0 (2003-02-06 11:52)




Advanced search tips
5.1 RSS 2.0 [  up  ] - [ top ] 5.2.1 XML::Parser



[ home ] - [ search ] - [ feedback ]

copyright by reto - created with mytexi