2009-09-10 15:31:37 +00:00
|
|
|
<?php
|
|
|
|
$siret = ($_REQUEST['siret'])? $_REQUEST['siret'] : '' ;
|
|
|
|
if($siret!='')
|
|
|
|
{
|
|
|
|
//Connection au webservice
|
|
|
|
$client = new SoapClient(null, array( 'trace' => 1,
|
|
|
|
'soap_version' => SOAP_1_1,
|
|
|
|
'location' => WEBSERVICE_URL,
|
|
|
|
'uri' => WEBSERVICE_URI,
|
|
|
|
'login' => $_SESSION['tabInfo']['login'],
|
|
|
|
'password' => $_SESSION['tabInfo']['password'],
|
|
|
|
));
|
2010-01-12 16:58:19 +00:00
|
|
|
$O = $client->getIdentite($siret, 0, false);
|
2009-09-10 15:31:37 +00:00
|
|
|
$etab = $O['result'];
|
|
|
|
$firephp->log($etab,'etab');
|
|
|
|
if($etab['Siret']==$siret)
|
|
|
|
{
|
|
|
|
echo $etab['Adresse'].' '.$etab['CP'].' '.$etab['Ville'].' ('.$etab['Nic'].')';
|
|
|
|
}
|
|
|
|
}
|