XMLRPC::PurePerl 0.01 review
DownloadXMLRPC::PurePerl is a Perl module that implements the XML-RPC standard as defined at www.xmlrpc.com and serves as a (de)serialization
|
|
XMLRPC::PurePerl is a Perl module that implements the XML-RPC standard as defined at www.xmlrpc.com and serves as a (de)serialization engine as well as a client for such services.
This module is in fairly close relation to an implementation that I wrote in javascript. The main problem I ran into web services and browsers was the dependence on the built in javascript XML parser. This module shows off how rolling your own can give you a bit of a boost in performance as well as avoiding dependencies for a compiled XML parser (for you guys who work in the DOD arena like me).
If I had more time, I'd have rolled my own basic LWP modules just to avoid the extra dependencies. Anyway, this client provides the basic functionality that modules like RPC::XML or Frontier::RPC2 provide, the only difference is being the reason for the name, this is a pure perl implementation.
SYNOPSIS:
my $client = new XMLRPC::PurePerl("http://127.0.0.1:8080/"); my $result = $client->call("myMethod", { 'complex' => [ 'structure', 'goes' ] }, 'here' );
my $xml = XMLRPC::PurePerl->encode_xmlrpc_call( $structure );
my $str = XMLRPC::PurePerl->decode_xmlrpc( $xml );
# In case you don't have XML::Simple loaded... (a simple XML serializer / de-serializer)
my $var_xml = XMLRPC::PurePerl->encode_variable( $structure );
my $var = XMLRPC::PurePerl->decode_variable( $var_xml );
Requirements:
Perl
XMLRPC::PurePerl 0.01 keywords