Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Creating users using core_user_create_users WS

$
0
0
by Amit Gairola.  

Hi,

   I am trying to create a new user through the core_user_create_users web services through SOAP protocol (I am new to webservices smile). I am using Moodle 2.9.


I am getting the following error : Invalid Parameter. The error is not detailed enough to let me know which parameter is invalid. Here is the print of the SOAP FaultObject.


The issue is that the error is not detailed enough to let me know which parameter is invalid. 


SoapFault Object
(
    [message:protected] => Invalid parameter value detected | ERRORCODE: invalidparameter
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => C:\xampp2504\htdocs\test\index.php
    [line:protected] => 22
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => C:\xampp2504\htdocs\test\index.php
                    [line] => 22
                    [function] => __soapCall
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => core_user_create_users
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [0] => stdClass Object
                                                (
                                                    [username] => TestUser
                                                    [password] => Abcdefg123#
                                                    [firstname] => User
                                                    [lastname] => Test
                                                    [email] => admin.user@gmail.com
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] =>
    [faultstring] => Invalid parameter value detected | ERRORCODE: invalidparameter
    [faultcode] => Receiver
    [faultactor] => invalidparameter
)



Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>