Anomalie #14315 » IParapheurController.diff
modules/visa/class/IParapheurController.php | ||
---|---|---|
'options' => [
|
||
CURLOPT_SSLCERT => $config['data']['certPath'],
|
||
CURLOPT_SSLCERTTYPE => $config['data']['certType'],
|
||
CURLOPT_SSL_VERIFYPEER => 'false',
|
||
CURLOPT_SSL_VERIFYPEER => FALSE,
|
||
CURLOPT_USERPWD => $config['data']['userId'] . ':' . $config['data']['password'],
|
||
],
|
||
'delete_header' => true
|
||
... | ... | |
echo $curlReturn['error'];
|
||
return false;
|
||
}
|
||
$response = $curlReturn['response']->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children('http://www.adullact.org/spring-ws/iparapheur/1.0
|
||
//var_dump($curlReturn);
|
||
try {
|
||
if (is_bool($curlReturn['response']) === true) {
|
||
echo "error" . PHP_EOL;
|
||
var_dump($aArgs['config']);
|
||
var_dump($noVersion);
|
||
var_dump($curlReturn);
|
||
break;
|
||
}
|
||
//var_dump($curlReturn);
|
||
$response = $curlReturn['response']->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children('http://www.adullact.org/spring-ws/iparapheur/1.0')->GetHisto
|
||
} catch (Exception $e) {
|
||
echo 'Exception : ', $e->getMessage(), "\n";
|
||
}
|
||
if ($response->MessageRetour->codeRetour == $aArgs['config']['data']['errorCode']) {
|
||
// TODO gestion d'une potentielle erreur
|
||
echo 'retrieveSignedMails noVersion : [' . $response->MessageRetour->severite . ']' . $response->MessageRetour->message;
|
||
return false;
|
||
//return false;
|
||
break;
|
||
} else {
|
||
$noteContent = '';
|
||
foreach ($response->LogDossier as $res) { // Loop on all steps of the documents (prepared, send to signature, signed etc...)
|
||
... | ... | |
if (!empty($curlReturn['response'])) {
|
||
// TODO gestin d'une erreur
|
||
echo $curlReturn['error'];
|
||
echo 'error : ' . $curlReturn['error'];
|
||
return false;
|
||
}
|
||