2011-03-30 14:04:17 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param $soapClient Adresse du client SOAP
|
|
|
|
* @param $fault Le retour du catch ( SOAP )
|
|
|
|
* @param $debug En mode debug ( a false par defaut ).
|
|
|
|
*/
|
|
|
|
function getErreurSoap(&$soapClient, &$fault, $debug = false)
|
|
|
|
{
|
|
|
|
if ($debug == true || DEBUG_SOAP)
|
|
|
|
{
|
|
|
|
echo '<xmp><br />';
|
|
|
|
echo 'Derniére Requete :' . htmlspecialchars($soapClient->__getLastRequest());
|
|
|
|
echo '</xmp><br />';
|
|
|
|
echo 'Message d\'erreur : ' . $fault . '<br />';
|
|
|
|
|
|
|
|
//send email !
|
|
|
|
}
|
2011-04-11 12:31:46 +00:00
|
|
|
}
|