OkTech WS Error. Unable to execute test_add_user

OkTech WS Error. Unable to execute test_add_user

by shubham makharia -
Number of replies: 0

Warm Regards!

To my luck i found OKTech WS Plugin which serves all my primary requirements. 

Kudos to PP for such a great work, much thanks.

I have successfully installed v 1.5.5 on moodle 2.7 . Copied ws into moodle root, and copied ws & oktech folder into the moodle local folder.


Setup Specs:
1) WAMP Enabled with php_soap and moodle 2.7


Steps Taken.
1) Renamed auth.php.dist to auth.php
2) Changed Login Values to the admin login credentials of Moodle.
3) I am trying to execute the test script test_add_user under the wspp/clients/test folder but i encounter the foloowing error:-
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://vm107-04.insa-lyon.fr/moodle/wspp/wsdl_pp2.php' : failed to load external entity "http://vm107-04.insa-lyon.fr/moodle/wspp/wsdl_pp2.php" in C:\wamp\www\moodle\wspp\test\classes\mdl_soapserver.php:229 Stack trace: #0 C:\wamp\www\moodle\wspp\test\classes\mdl_soapserver.php(229): SoapClient->SoapClient('http://vm107-04...', Array) #1 C:\wamp\www\moodle\wspp\test\tests\test_add_user.php(4): mdl_soapserver->mdl_soapserver() #2 {main} thrown in C:\wamp\www\moodle\wspp\test\classes\mdl_soapserver.php on line 229

Further If i change the line 225 of mdl_soapserver.php from 

"public function mdl_soapserver($wsdl = "http://vm107-04.insa-lyon.fr/moodle/wspp/wsdl_pp2.php", $uri=null, $options = array()) {" 
to 
": public function mdl_soapserver($wsdl = "http://localhost/moodle/wspp/wsdl_pp2.php", $uri=null, $options = array()) {"

then I encounter the following error. Please Look into the issue and advise. 
( ! ) Notice: Use of undefined constant LOGIN - assumed 'LOGIN' in C:\wamp\www\moodle\wspp\test\tests\test_add_user.php on line 13
Call Stack
#TimeMemoryFunctionLocation
10.0011156632{main}egg..\test_add_user.php:0

( ! ) Notice: Use of undefined constant PASSWORD - assumed 'PASSWORD' in C:\wamp\www\moodle\wspp\test\tests\test_add_user.php on line 13
Call Stack
#TimeMemoryFunctionLocation
10.0011156632{main}egg..\test_add_user.php:0

( ! ) Fatal error: Uncaught SoapFault exception: [MOODLE:error] Wspp Base Server :Invalid username and / or password. in C:\wamp\www\moodle\wspp\test\classes\mdl_soapserver.php:3428 Stack trace: #0 C:\wamp\www\moodle\wspp\test\classes\mdl_soapserver.php(3428): SoapClient->__call('login', Array, Array) #1 C:\wamp\www\moodle\wspp\test\tests\test_add_user.php(13): mdl_soapserver->login('LOGIN', 'PASSWORD') #2 {main} thrown in C:\wamp\www\moodle\wspp\test\classes\mdl_soapserver.php on line 3428
Much Obliged.
Shubham

Average of ratings: -