Protocol::XMLRPC::MethodCall - XML-RPC methodCall request
my $method_call = Protocol::XMLRPC::MethodCall->new(name => 'foo.bar'); $method_call->add_param(1); $method_call = Protocol::XMLRPC::MethodCall->parse(...);
XML-RPC methodCall request object.
params
Holds method call name.
Holds array reference of all passed params as objects.
new
Creates a new Protocol::XMLRPC::MethodCall instance. Name is required.
parse
my $method_call = Protocol::XMLRPC::MethodCall->parse('<?xml ...');
Creates a new Protocol::XMLRPC::MethodCall from xml.
add_param
$method_call->add_param(1); $method_call->add_param(Protocol::XMLRPC::Value::String->new('foo'));
Adds param. Tries to guess a type if a Perl5 scalar/arrayref/hashref was passed instead of an object.
to_string
my $method_call = Protocol::XMLRPC::MethodCall->new(name => 'foo.bar'); $method_call->add_param('baz'); # <?xml version="1.0"?> # <methodCall> # <methodName>foo.bar</methodName> # <params> # <param> # <value><string>baz</string></value> # </param> # </params> # </methodCall>
Protocol::XMLRPC::MethodCall string representation.
Viacheslav Tikhanovskii, vti@cpan.org.
vti@cpan.org
Copyright (C) 2009, Viacheslav Tikhanovskii.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
To install Protocol::XMLRPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::XMLRPC
CPAN shell
perl -MCPAN -e shell install Protocol::XMLRPC
For more information on module installation, please visit the detailed CPAN module installation guide.