catch pour loadClient, suppr des tabulations

This commit is contained in:
Sebastien BEAUGRAND 2011-01-19 09:15:38 +00:00
parent 2edc216c92
commit f983461724
2 changed files with 319 additions and 291 deletions

View File

@ -1,274 +1,288 @@
<?php <?php
class WsScores class WsScores
{ {
protected $webservices = array(); protected $webservices = array();
protected $login = ''; protected $login = '';
protected $password = ''; protected $password = '';
public function __construct($login = '', $password = ''){ public function __construct($login = '', $password = '') {
$config = parse_ini_file(PATH_SITE.'/config/scoresws.ini', true); $config = parse_ini_file(PATH_SITE.'/config/scoresws.ini', true);
$this->webservices = $config[ENVIRONNEMENT]; $this->webservices = $config[ENVIRONNEMENT];
if ( !empty($login) && !empty($password) ){ if (empty($login) == false && empty($password) == false) {
$this->login = $login; $this->login = $login;
$this->password = $password; $this->password = $password;
} else { } else {
$this->login = $_SESSION['tabInfo']['login']; $this->login = $_SESSION['tabInfo']['login'];
$this->password = $_SESSION['tabInfo']['password']; $this->password = $_SESSION['tabInfo']['password'];
} }
} }
public function rechercheEntreprise($type, $criteres, $position=0){ public function rechercheEntreprise($type, $criteres, $position = 0) {
$params = new stdClass(); $params = new stdClass();
$params->type = $type; $params->type = $type;
$params->criteres = $criteres; $params->criteres = $criteres;
$params->position = $position; $params->position = $position;
if (isset($_SESSION['tabInfo']['nbReponses'])){ if (isset($_SESSION['tabInfo']['nbReponses'])) {
$params->nbRep = $_SESSION['tabInfo']['nbReponses']; $params->nbRep = $_SESSION['tabInfo']['nbReponses'];
} }
if ($type=='ent'){ if ($type == 'ent') {
$criteresEntreprise = new stdClass(); $criteresEntreprise = new stdClass();
$criteresEntreprise->identifiant = $criteres['identifiant']; $criteresEntreprise->identifiant = $criteres['identifiant'];
$criteresEntreprise->raisonSociale = $criteres['raisonSociale']; $criteresEntreprise->raisonSociale = $criteres['raisonSociale'];
$criteresEntreprise->adresse = $criteres['adresse']; $criteresEntreprise->adresse = $criteres['adresse'];
$criteresEntreprise->codePostal = $criteres['codePostal']; $criteresEntreprise->codePostal = $criteres['codePostal'];
$criteresEntreprise->ville = $criteres['ville']; $criteresEntreprise->ville = $criteres['ville'];
$criteresEntreprise->telFax = $criteres['telFax']; $criteresEntreprise->telFax = $criteres['telFax'];
$criteresEntreprise->naf = $criteres['naf']; $criteresEntreprise->naf = $criteres['naf'];
$criteresEntreprise->siege = false; $criteresEntreprise->siege = false;
$criteresEntreprise->actif = false; $criteresEntreprise->actif = false;
$criteresDirigeant = new stdClass(); $criteresDirigeant = new stdClass();
$criteresDirigeant->nom = ''; $criteresDirigeant->nom = '';
$criteresDirigeant->prenom = ''; $criteresDirigeant->prenom = '';
$criteresDirigeant->dateNaiss = ''; $criteresDirigeant->dateNaiss = '';
$criteresDirigeant->lieuNaiss = ''; $criteresDirigeant->lieuNaiss = '';
} elseif ($type=='dir'){ } else if ($type == 'dir') {
$criteresEntreprise = new stdClass(); $criteresEntreprise = new stdClass();
$criteresEntreprise->identifiant = ''; $criteresEntreprise->identifiant = '';
$criteresEntreprise->raisonSociale = ''; $criteresEntreprise->raisonSociale = '';
$criteresEntreprise->adresse = ''; $criteresEntreprise->adresse = '';
$criteresEntreprise->codePostal = ''; $criteresEntreprise->codePostal = '';
$criteresEntreprise->ville = ''; $criteresEntreprise->ville = '';
$criteresEntreprise->telFax = ''; $criteresEntreprise->telFax = '';
$criteresEntreprise->naf = ''; $criteresEntreprise->naf = '';
$criteresEntreprise->siege = false; $criteresEntreprise->siege = false;
$criteresEntreprise->actif = false; $criteresEntreprise->actif = false;
$criteresDirigeant = new stdClass(); $criteresDirigeant = new stdClass();
$criteresDirigeant->nom = $criteres['nom']; $criteresDirigeant->nom = $criteres['nom'];
$criteresDirigeant->prenom = $criteres['prenom']; $criteresDirigeant->prenom = $criteres['prenom'];
$criteresDirigeant->dateNaiss = $criteres['dateNaiss']; $criteresDirigeant->dateNaiss = $criteres['dateNaiss'];
$criteresDirigeant->lieuNaiss = $criteres['lieuNaiss']; $criteresDirigeant->lieuNaiss = $criteres['lieuNaiss'];
} }
try { $client = $this->loadClient('entreprise');
$client = $this->loadClient('entreprise'); try {
$reponse = $client->rechercheEntreprise($params); $reponse = $client->rechercheEntreprise($params);
FB::log($reponse, 'rechercheEntreprise'); FB::log($reponse, 'rechercheEntreprise');
return $reponse->rechercheEntrepriseResult; return $reponse->rechercheEntrepriseResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
require_once 'soaperror.php'; require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false; return false;
} }
} }
public function getPortefeuille($filtre, $position = 0, $nbAffichage = 100){ public function getPortefeuille($filtre,
$params = new stdClass(); $position = 0, $nbAffichage = 100) {
$params->filtre = $filtre; $params = new stdClass();
$params->deb = $position; $params->filtre = $filtre;
$params->nbRep = $nbAffichage; $params->deb = $position;
try { $params->nbRep = $nbAffichage;
$client = $this->loadClient('interne'); $client = $this->loadClient('interne');
$reponse = $client->getPortefeuille($params); try {
return $reponse->getPortefeuilleResult; $reponse = $client->getPortefeuille($params);
} catch (SoapFault $fault) { return $reponse->getPortefeuilleResult;
require_once 'soaperror.php'; } catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false; return false;
} }
} }
public function getListeDroits(){ public function getListeDroits() {
try { $client = $this->loadClient('interne');
$client = $this->loadClient('interne'); try {
$reponse = $client->getListeDroits(); $reponse = $client->getListeDroits();
return $reponse->getListeDroitsResult; return $reponse->getListeDroitsResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
require_once 'soaperror.php'; require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false; return false;
} }
} }
public function getListePrefs(){ public function getListePrefs() {
try { $client = $this->loadClient('interne');
$client = $this->loadClient('interne'); try {
$reponse = $client->getListePrefs(); $reponse = $client->getListePrefs();
return $reponse->getListePrefsResult; return $reponse->getListePrefsResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
require_once 'soaperror.php'; require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false; return false;
} }
} }
public function setClient($tabInfos, $idModele = null){ public function setClient($tabInfos, $idModele = null) {
$params = new stdClass(); $params = new stdClass();
if (!empty($idModele)){ if (empty($idModele) == false) {
$params->idModele = $idModele; $params->idModele = $idModele;
} }
//Element du tableau // Element du tableau
$client = new stdClass(); $client = new stdClass();
$client->idClient = $tabInfos['idClient']; $client->idClient = $tabInfos['idClient'];
$client->nom = $tabInfos['nom']; $client->nom = $tabInfos['nom'];
$client->actif = $tabInfos['actif']; $client->actif = $tabInfos['actif'];
$client->test = $tabInfos['test']; $client->test = $tabInfos['test'];
$client->racineLogin = $tabInfos['racineLogin']; $client->racineLogin = $tabInfos['racineLogin'];
$client->siren = $tabInfos['siren']; $client->siren = $tabInfos['siren'];
$client->nic = $tabInfos['nic']; $client->nic = $tabInfos['nic'];
$client->tva = $tabInfos['tva']; $client->tva = $tabInfos['tva'];
$client->editerFacture = $tabInfos['editerFacture']; $client->editerFacture = $tabInfos['editerFacture'];
$client->fact_detail = $tabInfos['fact_detail']; $client->fact_detail = $tabInfos['fact_detail'];
$client->fac_dest = $tabInfos['fac_dest']; $client->fac_dest = $tabInfos['fac_dest'];
$client->fac_adr1 = $tabInfos['fac_adr1']; $client->fac_adr1 = $tabInfos['fac_adr1'];
$client->fac_adr2 = $tabInfos['fac_adr2']; $client->fac_adr2 = $tabInfos['fac_adr2'];
$client->fac_adr3 = $tabInfos['fac_adr3']; $client->fac_adr3 = $tabInfos['fac_adr3'];
$client->fac_email = $tabInfos['fac_email']; $client->fac_email = $tabInfos['fac_email'];
$client->fac_tel = $tabInfos['fac_tel']; $client->fac_tel = $tabInfos['fac_tel'];
$client->fact_rib = $tabInfos['fact_rib']; $client->fact_rib = $tabInfos['fact_rib'];
$client->liv_dest = $tabInfos['liv_dest']; $client->liv_dest = $tabInfos['liv_dest'];
$client->liv_adr1 = $tabInfos['liv_adr1']; $client->liv_adr1 = $tabInfos['liv_adr1'];
$client->liv_adr2 = $tabInfos['liv_adr2']; $client->liv_adr2 = $tabInfos['liv_adr2'];
$client->liv_adr3 = $tabInfos['liv_adr3']; $client->liv_adr3 = $tabInfos['liv_adr3'];
$client->liv_email = $tabInfos['liv_email']; $client->liv_email = $tabInfos['liv_email'];
$client->liv_tel = $tabInfos['liv_tel']; $client->liv_tel = $tabInfos['liv_tel'];
$client->droits = $tabInfos['droits']; $client->droits = $tabInfos['droits'];
$client->filtres_ip = $tabInfos['filtres_ip']; $client->filtres_ip = $tabInfos['filtres_ip'];
$client->typeContrat = $tabInfos['typeContrat']; $client->typeContrat = $tabInfos['typeContrat'];
$client->dateSignature = $tabInfos['dateSignature']; $client->dateSignature = $tabInfos['dateSignature'];
$client->typeAccess = $tabInfos['typeAccess']; $client->typeAccess = $tabInfos['typeAccess'];
$client->typeScore = $tabInfos['typeScore']; $client->typeScore = $tabInfos['typeScore'];
$client->timeout = $tabInfos['timeout']; $client->timeout = $tabInfos['timeout'];
$client->accesPieces = $tabInfos['accesPieces']; $client->accesPieces = $tabInfos['accesPieces'];
$client->accesKbis = $tabInfos['accessKbis']; $client->accesKbis = $tabInfos['accessKbis'];
$client->accesInvestigations = $tabInfos['accesInvestigations']; $client->accesInvestigations = $tabInfos['accesInvestigations'];
$client->accesInternationnal = $tabInfos['accesInternationnal']; $client->accesInternationnal = $tabInfos['accesInternationnal'];
$client->accesEnquetes = $tabInfos['accesEnquetes']; $client->accesEnquetes = $tabInfos['accesEnquetes'];
$client->miseSousSurveillance = $tabInfos['miseSousSurveillance']; $client->miseSousSurveillance = $tabInfos['miseSousSurveillance'];
$client->forfaitExtranetPeriode = $tabInfos['forfaitExtranetPeriode']; $client->forfaitExtranetPeriode = $tabInfos['forfaitExtranetPeriode'];
$client->forfaitExtranetMontant = $tabInfos['forfaitExtranetMontant']; $client->forfaitExtranetMontant = $tabInfos['forfaitExtranetMontant'];
$client->reconductionAuto = $tabInfos['reconductionAuto']; $client->reconductionAuto = $tabInfos['reconductionAuto'];
$client->remarque = $tabInfos['remarque']; $client->remarque = $tabInfos['remarque'];
$client->forfaitPiecesNb = $tabInfos['forfaitPiecesNb']; $client->forfaitPiecesNb = $tabInfos['forfaitPiecesNb'];
$client->forfaitPiecesMt = $tabInfos['forfaitPiecesMt']; $client->forfaitPiecesMt = $tabInfos['forfaitPiecesMt'];
$client->forfaitPiecesDep = $tabInfos['forfaitPiecesDep']; $client->forfaitPiecesDep = $tabInfos['forfaitPiecesDep'];
$client->forfaitInvestigNb = $tabInfos['forfaitInvestigNb']; $client->forfaitInvestigNb = $tabInfos['forfaitInvestigNb'];
$client->forfaitInvestigMt = $tabInfos['forfaitInvestigMt']; $client->forfaitInvestigMt = $tabInfos['forfaitInvestigMt'];
$client->forfaitInvestigDep = $tabInfos['forfaitInvestigDep']; $client->forfaitInvestigDep = $tabInfos['forfaitInvestigDep'];
$client->tarifIndiscore = $tabInfos['tarifIndiscore']; $client->tarifIndiscore = $tabInfos['tarifIndiscore'];
$client->InterSudLogin = $tabInfos['InterSudLogin']; $client->InterSudLogin = $tabInfos['InterSudLogin'];
$client->InterSudPass = $tabInfos['InterSudPass']; $client->InterSudPass = $tabInfos['InterSudPass'];
$params->infos = $client; $params->infos = $client;
try { $client = $this->loadClient('interne');
$client = $this->loadClient('interne'); try {
$reponse = $client->setClient($params); $reponse = $client->setClient($params);
return $reponse->setClientResult; return $reponse->setClientResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
require_once 'soaperror.php'; require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false; return false;
} }
} }
public function getListeClients($idClient = 0){ public function getListeClients($idClient = 0) {
$params = new stdClass(); $params = new stdClass();
$params->idClient = $idClient; $params->idClient = $idClient;
try { $client = $this->loadClient('interne');
$client = $this->loadClient('interne'); try {
$reponse = $client->getListeClients($params); $reponse = $client->getListeClients($params);
return $reponse->getListeClientsResult; return $reponse->getListeClientsResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
require_once 'soaperror.php'; require_once 'soaperror.php';
processSoapFault($client,$fault,$_SESSION['tabInfo']);
return false;
}
}
public function getListeUtilisateurs($login, $idClient=-1){
$params = new stdClass();
$params->login = $login;
$params->idClient = $idClient;
try {
$client = $this->loadClient('interne');
$reponse = $client->getListeUtilisateurs($params);
return $reponse->getListeUtilisateursResult;
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client,$fault,$_SESSION['tabInfo']);
return false;
}
}
public function setInfosLogin($login, $tabInfos){
$params = new stdClass();
$params->login = $login;
$params->tabInfoUserWS = $tabInfos;
try {
$client = $this->loadClient('interne');
$reponse = $client->setInfosLogin($params);
return $reponse->seInfosLoginResult->result;
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client,$fault,$_SESSION['tabInfo']);
return false;
}
}
public function getNextLogin($login = ''){
$params = new stdClass();
$params->login = $login;
try {
$client = $this->loadClient('interne');
$reponse = $client->getNextLogin($params);
return $reponse->getNextLoginResult;
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false; return false;
} }
} }
public function getInfosLogin($login, $ipUtilisateur = ''){ public function getListeUtilisateurs($login, $idClient = -1) {
$params = new stdClass(); $params = new stdClass();
$params->login = $login; $params->login = $login;
$params->ipUtilisateur = $ipUtilisateur; $params->idClient = $idClient;
try { $client = $this->loadClient('interne');
$client = $this->loadClient('interne'); try {
$reponse = $client->getInfosLogin($params); $reponse = $client->getListeUtilisateurs($params);
return $reponse->getInfosLoginResult; return $reponse->getListeUtilisateursResult;
} catch (SoapFault $fault) { } catch (SoapFault $fault) {
if($fault->faultcode != '900') { require_once 'soaperror.php';
require_once 'soaperror.php'; processSoapFault($client, $fault, $_SESSION['tabInfo']);
processSoapFault($client, $fault, $_SESSION['tabInfo']); return false;
} }
return false; }
}
}
protected function loadClient($webservice){ public function setInfosLogin($login, $tabInfos) {
$wsdl = $this->webservices['webservices.'.$webservice.'.wsdl']; $params = new stdClass();
$options['trace'] = isset($this->webservices['webservices.'.$webservice.'options.trace']) ? $params->login = $login;
$this->webservices['webservices.'.$webservice.'options.trace'] : false; $params->tabInfoUserWS = $tabInfos;
$options['soap_version'] = isset($this->webservices['webservices.'.$webservice.'options.soap_version']) ? $client = $this->loadClient('interne');
$this->webservices['webservices.'.$webservice.'options.soap_version'] : SOAP_1_2; try {
$options['features'] = isset($this->webservices['webservices.'.$webservice.'options.features']) ? $reponse = $client->setInfosLogin($params);
$this->webservices['webservices.'.$webservice.'options.features'] : ''; return $reponse->seInfosLoginResult->result;
$options['login'] = $this->login; } catch (SoapFault $fault) {
$options['password'] = $this->password; require_once 'soaperror.php';
$client = new SoapClient($wsdl, $options); processSoapFault($client, $fault, $_SESSION['tabInfo']);
return $client; return false;
} }
}
public function getNextLogin($login = '') {
$params = new stdClass();
$params->login = $login;
$client = $this->loadClient('interne');
try {
$reponse = $client->getNextLogin($params);
return $reponse->getNextLoginResult;
} catch (SoapFault $fault) {
require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']);
return false;
}
}
public function getInfosLogin($login, $ipUtilisateur = '') {
$params = new stdClass();
$params->login = $login;
$params->ipUtilisateur = $ipUtilisateur;
$client = $this->loadClient('interne');
try {
$reponse = $client->getInfosLogin($params);
return $reponse->getInfosLoginResult;
} catch (SoapFault $fault) {
if($fault->faultcode != '900') {
require_once 'soaperror.php';
processSoapFault($client, $fault, $_SESSION['tabInfo']);
}
return false;
}
}
protected function loadClient($webservice) {
$wsdl = $this->webservices['webservices.'.$webservice.'.wsdl'];
$options['trace'] =
isset($this->webservices['webservices.'.$webservice.
'options.trace']) ?
$this->webservices['webservices.'.$webservice.
'options.trace'] : false;
$options['soap_version'] =
isset($this->webservices['webservices.'.$webservice.
'options.soap_version']) ?
$this->webservices['webservices.'.$webservice.
'options.soap_version'] : SOAP_1_2;
$options['features'] =
isset($this->webservices['webservices.'.$webservice.
'options.features']) ?
$this->webservices['webservices.'.$webservice.
'options.features'] : '';
$options['login'] = $this->login;
$options['password'] = $this->password;
try {
$client = new SoapClient($wsdl, $options);
} catch (SoapFault $f) {
require_once 'soaperror.php';
print messageSoapFault();
}
return $client;
}
} }

View File

@ -140,7 +140,7 @@ function scoresws_annonces($siret, $siren, $idEntreprise,
} else { } else {
$fileName = 'annonces-'.$siren; $fileName = 'annonces-'.$siren;
} }
if ($vue != '') { if ($vue != '' && $idan != false) {
$fileName .= '-'.$idan; $fileName .= '-'.$idan;
} }
cache_filename($fileName); cache_filename($fileName);
@ -161,7 +161,7 @@ function scoresws_annonces($siret, $siren, $idEntreprise,
$o = new StdClass; $o = new StdClass;
$o->siren = $siren; $o->siren = $siren;
$o->filtre = $filtre; $o->filtre = $filtre;
if ($idan !== false) { if ($idan != false) {
$o->idAnn = $idan; $o->idAnn = $idan;
} }
//$o->position = ; //$o->position = ;
@ -321,7 +321,7 @@ function scoresws_listeBilans($siret, $siren, $idEntreprise, $mil)
} else { } else {
$fileName = 'liasse-'.$siret; $fileName = 'liasse-'.$siret;
} }
if ($mil !== false) { if ($mil != false) {
$indice = str_replace('/', '', substr($mil[0], 0, 11)); $indice = str_replace('/', '', substr($mil[0], 0, 11));
$fileName .= '-'.$indice; $fileName .= '-'.$indice;
} }
@ -349,7 +349,7 @@ function scoresws_listeBilans($siret, $siren, $idEntreprise, $mil)
cache_delete(); cache_delete();
cache_add('tabBilans', $tabBilans); cache_add('tabBilans', $tabBilans);
if ($mil !== false) { if ($mil != false) {
$o = new StdClass; $o = new StdClass;
$o->siren = $siren; $o->siren = $siren;
$o->millesime = substr($mil[0], -10); $o->millesime = substr($mil[0], -10);
@ -390,25 +390,27 @@ function scoresws_indiscore($siret, $siren, $idEntreprise, $niveau = 2)
$return = cache_get('etab'); $return = cache_get('etab');
} else { } else {
try { try {
$plus = false; $plus = false;
if (hasPerm('INDISCOREP') || hasPerm('INDISCORE2P') || hasPerm('INDISCORE3P')){ if (hasPerm('INDISCOREP') ||
$plus = true; hasPerm('INDISCORE2P') ||
} hasPerm('INDISCORE3P')) {
$plus = true;
}
$params = new StdClass; $params = new StdClass;
$params->siren = $siren; $params->siren = $siren;
if (strlen($siret) == 14) { if (strlen($siret) == 14) {
$params->nic = substr($siret, 9); $params->nic = substr($siret, 9);
} }
$params->accesDist = true; $params->accesDist = true;
if ($niveau != 2) { if ($niveau != 2) {
$params->niveau = $niveau; $params->niveau = $niveau;
} }
//$params->plus = $plus; $params->plus = $plus;
$O = $ws_soap_client_ent->getIndiscore($params); $O = $ws_soap_client_ent->getIndiScore($params);
print '<pre>'; print '<pre>';
print_r($O); print_r($O);
print '</pre>'; print '</pre>';
$return = $O->getIndiscoreResult->result; $return = $O->getIndiScoreResult->result;
cache_delete(); cache_delete();
cache_add('etab', $return); cache_add('etab', $return);
} catch (SoapFault $f) { } catch (SoapFault $f) {
@ -843,12 +845,20 @@ function scorews_setSurveillance($siret, $email, $ref = '',
try { try {
$o = new StdClass; $o = new StdClass;
$o->siret = $siret; $o->siret = $siret;
$o->email = $email; $o->email = $email;
$o->ref = $ref; if ($ref != '') {
$o->source = $source; $o->ref = $ref;
$o->delete = $delete; }
$o->encoursClient = $encoursClient; if ($source != 'annonces') {
$o->source = $source;
}
if ($delete != false) {
$o->delete = $delete;
}
if ($encoursClient != 0) {
$o->encoursClient = $encoursClient;
}
$O = $ws_soap_client_ent->__call('setSurveillance', array($o)); $O = $ws_soap_client_ent->__call('setSurveillance', array($o));
@ -911,9 +921,13 @@ function scorews_searchMandataire($nom, $type = array(), $cpDep = 0)
try { try {
$o = new StdClass; $o = new StdClass;
$o->nom = $nom; $o->nom = $nom;
$o->type = $type; if (empty($type) == false) {
$o->cpDep = $cpDep; $o->type = $type;
}
if ($cpDep != 0) {
$o->cpDep = $cpDep;
}
$O = $ws_soap_client_ent->__call('searchMandataire', array($o)); $O = $ws_soap_client_ent->__call('searchMandataire', array($o));