mirror of
https://github.com/moodle/moodle.git
synced 2025-05-02 14:28:30 +02:00
webservice MDL-12886 SOAP server: register moodle_exception (fix for "unknown exception" )
This commit is contained in:
parent
cbe40df778
commit
fdae69373e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user