webservice MDL-12886 SOAP server: register moodle_exception (fix for "unknown exception" )

This commit is contained in:
jerome 2009-05-04 05:26:02 +00:00
parent cbe40df778
commit fdae69373e

View File

@ -77,6 +77,7 @@ final class soap_server extends webservice_server {
$soap = new Zend_Soap_Server($CFG->wwwroot."/webservice/soap/server.php?wsdl"); // this current file here
$soap->setClass('ws_authentication');
$soap->registerFaultException(moodle_exception);
$soap->handle();
}
} else { // if token exist, do the authentication here