Amélioration rendu erreur soap

This commit is contained in:
Michael RICOIS 2009-03-02 10:32:08 +00:00
parent 38a67e11ec
commit 21e24d0c7f

View File

@ -17,13 +17,13 @@ require_once(realpath(dirname(__FILE__) . '/../') . '/framework/phpmailer/class.
* @return string
*/
function processSoapFault($clientSoap, $fault, $tabInfo, $debug = FALSE){
$message = 'Request : '. htmlspecialchars($clientSoap->__getLastRequest()) . '<br/>' .
'Response : '. htmlspecialchars($clientSoap->__getLastResponse()) . '<br/>';
$message = 'Request : '. htmlspecialchars($clientSoap->__getLastRequest()) . '<br/><br/>' .
'Response : '. htmlspecialchars($clientSoap->__getLastResponse()) . '<br/><br/>';
foreach ($fault as $key => $value){ $message.= $key .' : '. $value . '<br/>';}
foreach ($fault as $key => $value){ $message.= $key .' : '. $value . '<br/><br/>';}
$message.= '<br/>';
$message.= 'Infomrations de debug : <br/>';
$message.= 'Informations de debug : <br/>';
$message.= '<pre>';
$message.= 'REQUEST : '.print_r($_REQUEST,true).'<br/>';
$message.= 'SERVER : '.print_r($_REQUEST,true).'<br/>';