Frontier::RPC2
To Install the perl module, you could fetch it from CPAN
$ perl -MCPAN -eshell
cpan> install Frontier::RPC2
Or you could download the module from
http://search.cpan.org/CPAN/authors/id/K/KM/KMACLEOD/Frontier-RPC-0.06.tar.gz
and run
$ tar zxvf Frontier-RPC.tar.gz
$ cd Frontier-RPC
$ perl Makefile.PL
$ make install
When you install Frontier-RPC , the following modules are installed.
Frontier::RPC2
Frontier::Client
Frontier::Daemon
The Frontier::RPC2 module can be used to generate the raw xml.
#!/use/bin/perl
use Frontier::RPC2;
$coder = Frontier::RPC2->new;
$method = "blah";
$result = "OK Boss";
$xml_string = $coder->encode_call($method, 1,2);
print "$xml_string\n";
$xml_string = $coder->encode_response($result);
print "$xml_string\n"
|