extranet/www/pages_saisie/get_etabnic.php
2010-01-12 16:58:19 +00:00

20 lines
613 B
PHP

<?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'],
));
$O = $client->getIdentite($siret, 0, false);
$etab = $O['result'];
$firephp->log($etab,'etab');
if($etab['Siret']==$siret)
{
echo $etab['Adresse'].' '.$etab['CP'].' '.$etab['Ville'].' ('.$etab['Nic'].')';
}
}