Intégration de searchDir

This commit is contained in:
Michael RICOIS 2011-06-21 16:02:59 +00:00
parent 28553bf8e1
commit f47f8a1f94

View File

@ -1506,7 +1506,7 @@ class Entreprise extends WsScore
$dirCriteres = $criteres->elementDirigeant;
$client = new SoapClient($this->wsdl, $this->wsdlOptions);
try {
$O = $client->searchDir(
$O = $this->searchDir(
cleanstring($dirCriteres->nom),
cleanstring($dirCriteres->prenom),
$dirCriteres->dateNaiss,
@ -1516,6 +1516,12 @@ class Entreprise extends WsScore
empty($maxRep) ? 200 : $maxRep,
empty($pertinence) ? false : $pertinence
);
$output = new RechercheEntrepriseReturn();
$output->nbReponses = $O->nbReponses;
$output->nbReponsesTotal = $O->nbReponsesTotal;
$output->result = $O->result;
$output->criteres = $dirCriteres;
return $output;
} catch (SoapFault $fault) {
Zend_Registry::get('WsLogger')->err("rechercheEntreprise - ".serialize($criteres));
throw new SoapFault($fault->faultcode, $fault->faultstring);