當SOAP function有exception發生時,可使用var_dump去顯示error msg
{
throw new SoapFault('code', 'string', 'actor', 'detail', 'name', 'header');
}
throw new SoapFault('code', 'string', 'actor', 'detail', 'name', 'header');
}
catch( Exception $ex )
{
var_dump($ex->faultcode, $ex->faultstring, $ex->faultactor, $ex->detail, $ex->_name, $ex->headerfault);
var_dump($ex->faultcode, $ex->faultstring, $ex->faultactor, $ex->detail, $ex->_name, $ex->headerfault);
// or
var_dump($ex);
}?>
}?>
沒有留言:
張貼留言