| 1 | package WebService::RequestAPI::XMLRPCRequestAPI; | ||
| 2 | use strict; | ||
| 3 | use XMLRPC::Lite; | ||
| 4 | use JSON; | ||
| 5 | use utf8; | ||
| 6 | use base qw(WebService::RequestAPI::AbstractRequestAPI); | ||
| 7 | |||
| 8 | |||
| 9 | sub _request{ | ||
| 10 | my $self = shift; | ||
| 11 | my $method = shift; | ||
| 12 | my $url = shift; | ||
| 13 | my @args = @_; | ||
| 14 | $self->result(XMLRPC::Lite->proxy($url)->call($method,@args)->result); | ||
| 15 | |||
| 16 | return $self; | ||
| 17 | } | ||
| 18 | |||
| 19 | 1; |