'Siret incorrect',
);
echo json_encode($output);
exit;
}
$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'],
));
$tabEntrep=array();
try {
$O = $client->getIdentite($siren);
$tabEntrep=$O['result'];
} catch (SoapFault $fault) {}
//Retourner le tableau sous forme json
$tabEntrepD = htmlentitydecode_deep($tabEntrep);
echo json_encode($tabEntrepD);
?>