SOAP sample new5
Source
// This sample show ephemeris of all classical objects where name is starting with "L4" observed at palomar mountain (675) the 27 apr 2011
$client = new SoapClient('http://tnodb.obs-besancon.fr/ws/ws_bdp.wsdl');
if ($client->getAvailability()) {
$datas = $client->predict(
// We don't have any cookie
'',
// Now selection criterias
array(
'objectName'=>'L4v%', // Names stating by L4v
// TODO classical objects
),
// Dates (-0.5 because PHP compute JD not correctly)
array(
unixtojd(gmmktime(0,0,0,4,27,2011))-0.5
),
'675'
);
var_dump($datas);
} else {
echo 'Database is temporarily unavailable';
}
Result
array(0) {
}
Back to documentation