1BZ::Client::XMLRPC(3) User Contributed Perl DocumentationBZ::Client::XMLRPC(3)
2
3
4
6 BZ::Client::XMLRPC - Performs XML-RPC calls on behalf of the client.
7
9 my $xmlrpc = BZ::Client::XMLRPC->new("url" => $url);
10 my $result = $xmlrpc->request("methodName" => $methodName, "params" => $params);
11
12 An instance of BZ::Client::XMLRPC is able to perform XML-RPC calls
13 against the given URL. A request is performed by passing the method
14 name and the method parameters to the method "request". The request
15 result is returned.
16
18 This section lists the possible class methods.
19
20 new
21 my $xmlrpc = BZ::Client::XMLRPC->new("url" => $url);
22
23 Creates a new instance with the given URL.
24
26 This section lists the possible instance methods.
27
28 url
29 my $url = $xmlrpc->url();
30 $xmlrpc->url($url);
31
32 Returns or sets the XML-RPC servers URL.
33
34 request
35 my $result = $xmlrpc->request("methodName" => $methodName, "params" => $params);
36
37 Calls the XML-RPC servers method $methodCall, passing the parameters
38 given by $params, an array of parameters. Parameters may be hash refs,
39 array refs, or atomic values. Array refs and hash refs may recursively
40 contain array or hash refs as values. An instance of
41 BZ::Client::Exception is thrown in case of errors.
42
44 L<BZ::Client>, L<BZ::Client::Exception>
45
46
47
48perl v5.12.0 2009-06-23 BZ::Client::XMLRPC(3)