Update of /cvsroot/gug/gug/gug/php
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26885
Added Files:
gis.php
Log Message:
The first PHP <--> WSDL <--> GUG service test
--- NEW FILE: gis.php ---
<?php
$client = new SoapClient("http://localhost:21111/GIS");
$Request["type"] = "ClusterManager";
$Response = $client->get($Request);
print "Service mdata:\n\n";
foreach ( get_object_vars($Response[0][0]) as $key1 => $value1 ) {
if (gettype($value1) != "string") {
print $key1 . ":\n";
foreach ( $value1 as $key2 => $value2 ) {
print "\t" . $value2 . "\n";
}
}
else {
print $key1 . "=".$value1 . "\n";
}
}
print "\nService data:\n\n" . $Response[0][1]."\n";
?>
|