3 Test call to the nucleus XML-RPC server sending a mt.setPostCategories request
\r
5 Wouter Demuynck / 2003-09-28
\r
8 // URL of XML-RPC server
\r
9 $serverHost = 'localhost';
\r
11 $serverPath = '/release/nucleus/xmlrpc/server.php';
\r
13 include('../../config.php');
\r
14 include($DIR_LIBS . 'xmlrpc.inc.php');
\r
17 'mt.getRecentPostTitles',
\r
19 new xmlrpcval('1', 'string'), // blogid
\r
20 new xmlrpcval('god', 'string'), // username
\r
21 new xmlrpcval('heaven', 'string'), // password
\r
22 new xmlrpcval(20, 'int') // amount
\r
27 $c=new xmlrpc_client($serverPath, $serverHost, $serverPort);
\r
33 if (!$r->faultCode()) {
\r
37 print "Code: " . $r->faultCode() .
\r
38 " Reason '" .$r->faultString()."'<BR>";
\r