]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-12886 SOAP server: register moodle_exception (fix for "unknown except...
authorjerome <jerome>
Mon, 4 May 2009 05:26:02 +0000 (05:26 +0000)
committerjerome <jerome>
Mon, 4 May 2009 05:26:02 +0000 (05:26 +0000)
webservice/soap/lib.php

index 5b0d5300093d0efebe0b9b051e73448694bb5236..b3d57dbe7856b56836a09d2252ace55e74f356f3 100644 (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