2
XMLRPCext Backend XML-RPC client against python server returning fault response
5
if (!function_exists('xmlrpc_server_create')) {
6
print "Skip XMLRPC extension unavailable";
9
$handle = @fopen("http://python.xmlrpc2test.sergiocarvalho.com:8765", "r");
11
echo("skip : The python XMLRPC server is not available !");
18
set_include_path(realpath(dirname(__FILE__) . '/../../../../') . PATH_SEPARATOR . get_include_path());
19
require_once 'XML/RPC2/Client.php';
20
require_once 'XML/RPC2/Backend.php';
21
XML_RPC2_Backend::setBackend('xmlrpcext');
22
$client = XML_RPC2_Client::create('http://python.xmlrpc2test.sergiocarvalho.com:8765', '', null);
24
$client->invalidMethod('World');
25
} catch (XML_RPC2_FaultException $e) {
26
var_dump($e->getMessage());
30
string(60) "exceptions.Exception:method "invalidMethod" is not supported"