core_user_update_users returnes nothing and doesnt update user

core_user_update_users returnes nothing and doesnt update user

by Lior regev -
Number of replies: 2

Here is my code

    $user1 = new stdClass();
    $user1->id = 16;
    $user1->city = 'some city';

   $params = array('users'=>array($user1));

     $functionname = 'core_user_update_users';
    /// SOAP CALL
    $serverurl = $domainname . '/webservice/soap/server.php' . '?wsdl=1&wstoken=01f08c3c85b69758f03d6xxxx';

$client = new SoapClient($serverurl);

$resp = $client->__soapCall($functionname, array($params));

 

the reply im getting is blank and nothing happens

what is wrong here ?

Average of ratings: -
In reply to Lior regev

Re: core_user_update_users returnes nothing and doesnt update user

by Nik Okuntseff -

Check web server logs, you should see something there hopefully.

Most likely there is an exception thrown because of insufficient permissions or something not properly set up in Moodle - either your web service or the account it is using. It took me a while to sort this out. See http://www.rumours.co.nz/manuals/using_moodle_web_services.htm

A quick check would be in Moodle to look at the Home - Site administration - Plugins - Web services - Manage tokens page. If capabilities are missing you should see it right there.

In reply to Lior regev

Re: core_user_update_users returnes nothing and doesnt update user

by lital l -

Hi,


Did you succeeded find out where you were wrong?

I'm having the same problem..


Thanx