Web services test client Error

Web services test client Error

by Silambhu govind -
Number of replies: 3

hai friends,

pls help me i have to implement web services concept in my localhost moodle.

when test web service i got this error, pls help me ..






Your assistance highly appreciated. 

Attachment save.png
Average of ratings: -
In reply to Silambhu govind

Re: Web services test client Error

by nikhil jagatiya -

Hello Silambhu govind,

 

 I'm also interested in this topic. But I'm just new can you guide how you start with web service with SOAP.

  I have done all the settings in Web service but how to test it with SOAP.

 Can you please share you experience so may be your problem can be solve.


 Thank you. ['}



 

In reply to Silambhu govind

Re: Web services test client Error

by David Monllaó -
Hi Silambhu,

Ensure that the service you created contains that function.

You could use https://github.com/moodlehq/sample-ws-clients for SOAP web services testing.
Average of ratings: Useful (1)
In reply to David Monllaó

Re: Web services test client Error

by Elano yo -
Hello All @David I am trying to use https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-SOAP could you give me clue why the following error is displayed? Thank you Warning: SimpleXMLElement::xpath(): Undefined namespace prefix in /Applications/XAMPP/xamppfiles/htdocs/HRM/soap.php on line 54 Warning: SimpleXMLElement::xpath(): xmlXPathEval: evaluation failed in /Applications/XAMPP/xamppfiles/htdocs/HRM/soap.php on line 54 SoapFault Object ( [message:protected] => Invalid parameter value detected | ERRORCODE: invalidparameter [string:Exception:private] => [code:protected] => 0 [file:protected] => /Applications/XAMPP/xamppfiles/htdocs/HRM/soap.php [line:protected] => 69 [trace:Exception:private] => Array ( [0] => Array ( [file] => /Applications/XAMPP/xamppfiles/htdocs/HRM/soap.php [line] => 69 [function] => __soapCall [class] => SoapClient [type] => -> [args] => Array ( [0] => core_user_create_users [1] => Array ( [0] => Array ( [0] => stdClass Object ( [username] => testusername1 [password] => Testpassword1! [firstname] => testfirstname1 [lastname] => testlastname1 [email] => testemail1@moodle.com [auth] => manual [idnumber] => testidnumber1 [lang] => en [theme] => standard [timezone] => -12.5 [mailformat] => 0 [description] => Hello World! [city] => testcity1 [country] => au [preferences] => Array ( [0] => Array ( [type] => preference1 [value] => preferencevalue1 ) [1] => Array ( [type] => preference2 [value] => preferencevalue2 ) ) ) [1] => stdClass Object ( [username] => testusername2 [password] => Testpassword2! [firstname] => testfirstname2 [lastname] => testlastname2 [email] => testemail2@moodle.com [timezone] => Pacific/Port_Moresby ) ) ) ) ) ) [previous:Exception:private] => [faultstring] => Invalid parameter value detected | ERRORCODE: invalidparameter [faultcode] => Receiver [faultactor] => invalidparameter [detail] => Invalid theme: standard ) here is the token: $token = '21f9cc43fff73f06d408a447554ddb2c'; $domainname ='http://localhost/moodle'; $functionname ='core_user_create_users';