20 lines
603 B
PHP
20 lines
603 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);
|
||
|
$etab = $O['result'];
|
||
|
$firephp->log($etab,'etab');
|
||
|
if($etab['Siret']==$siret)
|
||
|
{
|
||
|
echo $etab['Adresse'].' '.$etab['CP'].' '.$etab['Ville'].' ('.$etab['Nic'].')';
|
||
|
}
|
||
|
}
|