Re-ajout de la méthoed getListeFichierSurv

This commit is contained in:
Michael RICOIS 2009-07-07 08:12:15 +00:00
parent 2c71a09c14
commit af573a18e6
2 changed files with 8 additions and 1 deletions

View File

@ -18,7 +18,7 @@ else {
$_SESSION['tabInfo']['idClient']==32
) $ref='*';
try {
try {
$O = $client->getListeFichierSurv($_SESSION['tabInfo']['login'], $ref, $nomFic);
$tabFichier=$O['results'];
} catch (SoapFault $fault) {

View File

@ -28,6 +28,13 @@ else{
$file = PATH_DATA.'/survliste/'.$nomFic;
$file2 = $file.'.bz2';
if (!file_exists($file) || filesize($file)==0 ) {
//Génération du fichier
try {
$O = $client->getListeFichierSurv($_SESSION['tabInfo']['login'], $_SESSION['tabInfo']['prenom'], $nomFic);
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client,$fault,$tabInfo);
}
$page = getUrl(WEBSERVICE_URI.'csv/'.$nomFic.'.bz2', '', '', '', false);
$body = $page['body'];
$fp=@fopen($file2, 'w');