git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
33 lines
1000 B
PHP
33 lines
1000 B
PHP
<html>
|
|
<head><title>xmlrpc</title></head>
|
|
<body>
|
|
<h1>Which toolkit demo</h1>
|
|
<h2>Query server for toolkit information</h2>
|
|
<h3>The code demonstrates usage of the php_xmlrpc_decode function</h3>
|
|
<?php
|
|
include("xmlrpc.inc");
|
|
|
|
$f = new xmlrpcmsg('interopEchoTests.whichToolkit', array());
|
|
$c = new xmlrpc_client("/server.php", "phpxmlrpc.sourceforge.net", 80);
|
|
$r = $c->send($f);
|
|
if(!$r->faultCode())
|
|
{
|
|
$v = php_xmlrpc_decode($r->value());
|
|
print "<pre>";
|
|
print "name: " . htmlspecialchars($v["toolkitName"]) . "\n";
|
|
print "version: " . htmlspecialchars($v["toolkitVersion"]) . "\n";
|
|
print "docs: " . htmlspecialchars($v["toolkitDocsUrl"]) . "\n";
|
|
print "os: " . htmlspecialchars($v["toolkitOperatingSystem"]) . "\n";
|
|
print "</pre>";
|
|
}
|
|
else
|
|
{
|
|
print "An error occurred: ";
|
|
print "Code: " . htmlspecialchars($r->faultCode()) . " Reason: '" . htmlspecialchars($r->faultString()) . "'\n";
|
|
}
|
|
?>
|
|
<hr/>
|
|
<em>$Id: which.php,v 1.6 2006/02/04 20:51:57 ggiunta Exp $</em>
|
|
</body>
|
|
</html>
|