| Protocol-XMLRPC documentation | view source | Contained in the Protocol-XMLRPC distribution. |
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.
paramsHolds method call name.
paramsHolds array reference of all passed params as objects.
newCreates 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 Tykhanovskyi, vti@cpan.org.
Copyright (C) 2009, Viacheslav Tykhanovskyi.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
| Protocol-XMLRPC documentation | view source | Contained in the Protocol-XMLRPC distribution. |