有没有人使用 Python 或 Perl 通过 Xml-rpc 获取数据取得任何成功......?
我正在使用 continuum.py 库:
#!/usr/bin/env python
from continuum import *
c = Continuum( "http://localhost:8080/continuum/xmlrpc" )
或者:
#!/usr/bin/perl
use Frontier::Client;
my $url = "http://dev.server.com:8080/continuum/xmlrpc";
my $client = RPC::XML::Client->new($url);
my $res = $client->send_request('system.listMethods');
print " Response class = ".(ref $res)."\n";
print " Response type = ".$res->type."\n";
print " Response string = ".$res->as_string."\n";
print " Response value = ".$res->value."\n";
给出:No such handler: system.listMethods
有人过得更好吗...?