Hello, everybody. I`ve started to work with xml-rpc, just want to public results of desktop programm in auto mode. I have create an xml-rpc server:
include("xmlrpcutils/utils.php");
// Change these to match your configuration
$host = "site.ru";
$uri = "/xmlrpc.php";
$result = xu_rpc_http_concise(
array(
'method' => "system.connect",
'host' => $host,
'uri' => $uri,
'port' => 80
)
);
$result = xu_rpc_http_concise(
array(
'method' => 'system.listMethods',
'host' => $host,
'uri' => $uri,
'port' => 80
)
);
for ($i = 0; $i < count($result); $i++){
echo $result[$i]."<br>";
}
$new_node = array(
'type' => "story",
'uid' => 1,
'name' => "mcnet",
'title' => 'TITLE ' . date('Y-m-d H:i:s',time()),
'body' => 'BODY ' . date('Y-m-d H:i:s',time()),
);
$result = xu_rpc_http_concise(
array(
'method' => 'node.save',
'args' => $new_node,
'user' => 'admin',
'pass' => 'pass',
'host' => $host,
'uri' => $uri,
'port' => 80
)
);
for ($i = 0; $i < count($result); $i++){
echo $result[$i]."<br>";
}
And I have such problem: calling of system.listMethods is working as result I get such list:
system.multicall
system.methodSignature
system.getCapabilities
system.listMethods
system.methodHelp