$params ) { if ($params['actif']) { $wsServices[$section] = $params; } } //Parcourir les webservices foreach($wsServices as $serviceName => $serviceInfo) { if ( !isset($wsServices[$serviceName]['idClient']) || $wsServices[$serviceName]['idClient'] == $auth->getIdentity()->idClient) { $serviceVersions = array(); $configServiceVersions = $wsServices[$serviceName]['versions']; foreach( $configServiceVersions as $section => $params ) { $serviceVersions[$section] = $params; $this->serviceList[$serviceName]['version'] = $serviceVersions; } } } //Lecture des webservices Clients $clients = include APPLICATION_PATH . '/../library/WsScore/Clients/ClientsConfig.php'; foreach( $clients as $section => $params ){ if ($params['actif']) { $wsClients[$section] = $params; } } //Parcourir les webservices clients foreach($wsClients as $serviceName => $serviceInfo) { if ($wsClients[$serviceName]['idClient'] == $auth->getIdentity()->idClient) { $this->serviceList = array(); } if ($wsClients[$serviceName]['idClient'] == $auth->getIdentity()->idClient || in_array($auth->getIdentity()->username, $wsClients[$serviceName]['user']) ) { $serviceVersions = array(); $configServiceVersions = $wsClients[$serviceName]['versions']; foreach( $configServiceVersions as $section => $params ) { $serviceVersions[$section] = $params; $this->serviceList[$serviceName]['version'] = $serviceVersions; $this->serviceList[$serviceName]['type'] = 'client'; } } } } public function indexAction() { $displayWs = array(); if (count($this->serviceList)>0) { foreach($this->serviceList as $key => $ws) { $displayWs[$key] = $ws; } } $this->view->assign('ws', $displayWs); } public function testAction() { //Connexion au service - Faire comme ci on charger le WSDL de l'extérieur //getFunctions / getTypes //Pour chaque Function, identifier les Types puis proposer les champs associés //Valider les formulaires pour executer la requête du service //Utiliser le jeux de tests disponible } }