37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
header('Content-Type: text/html; charset=ISO-8859-1');
|
|
$tribunal = (isset($_REQUEST['tribunal'])? $_REQUEST['tribunal'] : '');
|
|
|
|
//Connection au webservice
|
|
$client = new SoapClient(null, array( 'trace' => 1,
|
|
'soap_version' => SOAP_1_1,
|
|
'location' => WEBSERVICE_URL,
|
|
'uri' => WEBSERVICE_URI,
|
|
'login' => $_SESSION['tabInfo']['login'],
|
|
'password' => $_SESSION['tabInfo']['password'],
|
|
// 'encoding' => 'UTF-8'
|
|
));
|
|
|
|
//Sélection de la cour d'appel en fonction du tribunal
|
|
include(realpath(dirname(__FILE__)).'/coursAppel.php');
|
|
|
|
//La cour d'appel suivant le tribunal sélectionné
|
|
$codeCourAppel=$client->getIdCoursAppel($tribunal);
|
|
$firephp->log($codeCourAppel, 'IdCourAppel');
|
|
foreach ($coursAppel as $value){
|
|
if ($codeCourAppel == $value['triId']){
|
|
$tribunal = $value['triCode'];
|
|
break;
|
|
}
|
|
}
|
|
try {
|
|
$tmp=$client->getMandataires($tribunal);
|
|
//$firephp->log($tmp, 'Test Mandataires');
|
|
$mandataires = $tmp['result'];
|
|
asort($mandataires);
|
|
} catch (SoapFault $fault) {
|
|
$firephp->log($client->__getLastRequest(), 'Request');
|
|
$firephp->log($client->__getLastResponse(), 'Response');
|
|
}
|
|
|
|
?>
|