SOAP sample new4
Source
// This sample show number of astrometric measures of object beginning with "L4v" in CFEPS.
$client = new SoapClient('http://tnodb.obs-besancon.fr/ws/ws_bdp.wsdl');
if ($client->getAvailability()) {
$datas = $client->getNumberOf(
// We count astrometry datas
'astrometry',
// We don't have any cookie
'',
// Now selection criterias
array(
'objectName'=>'L4v%', // Names stating by L4v
'survey'=>'CFEPS', // survey must be CFEPS
),
// We want the count for each object
'objectName'
);
var_dump($datas);
} else {
echo 'Database is temporarily unavailable';
}
Result
array(13) {
["L4v03"]=>
string(2) "13"
["L4v04"]=>
string(2) "14"
["L4v05"]=>
string(2) "14"
["L4v06"]=>
string(2) "18"
["L4v08"]=>
string(2) "23"
["L4v09"]=>
string(2) "19"
["L4v10"]=>
string(2) "23"
["L4v11"]=>
string(2) "26"
["L4v12"]=>
string(2) "28"
["L4v13"]=>
string(2) "28"
["L4v14"]=>
string(2) "25"
["L4v15"]=>
string(2) "22"
["L4v18"]=>
string(2) "33"
}
Back to documentation