- or download this
sub doCommand {
# Decode the results of the raw command from XML.
...
return $result;
}
- or download this
use strict;
use Frontier::RPC2;
...
my $result = [ "you guessed", 42 ];
my $xml_string = $coder->encode_response($result);
print $xml_string,"\n";
- or download this
<?xml version="1.0"?>
<methodResponse>
...
</param>
</params>
</methodResponse>