Intégration de searchDir
This commit is contained in:
parent
28553bf8e1
commit
f47f8a1f94
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user