Good morning.
I have a platform, recently updated to version 2.3.1, and web services that was in version 2.2 I have started to fail, even the new ones give me the same error.
I looked at the web trying to find information and can not find anything and would appreciate help if someone has done the same.
I commented.
Version: 2.3.1
The web service that worked in version 2.2 such as:
core_group_get_course_groups
core_files_get_files
And those included in version 2.3.1:
core_course_duplicate_cours
I get the following error:
[faultCode] => 28194976
[faultString] => Calling parameters do not match signature | errorcode:
I do not know where you can be the fault.
Attached files, if I can help.
Thank you very much and best regards.
Javier Gonzalez
I am Trying To create User using moodle_user_create_user webservice
and getting error
faultCode28194976faultStringCalling parameters do not match signature | ERRORCODE
I am attaching Xml PLease Help
<?xml version="1.0"?>
<methodCall>
<methodName>core_user_create_users</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>username</name>
<value>
<string>jujjbjjjb</string>
</value>
</member>
<member>
<name>password</name>
<value>
<string>Admine51*</string>
</value>
</member>
<member>
<name>firstname</name>
<value>
<string>Test 1</string>
</value>
</member>
<member>
<name>lastname</name>
<value>
<string>Test 1</string>
</value>
</member>
<member>
<name>email</name>
<value>
<string>testing@mail.com</string>
</value>
</member>
<member>
<name>country</name>
<value>
<string>NZ</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
Dear Tushar Bhatia!
Have you tried this
<?php
/// SETUP - NEED TO BE CHANGED
$token = '663c70e3034930ded9a3287fc1716213';
$domainname = 'http://10.0.0.18/moodle209';
$functionname = 'core_enrol_get_users_courses';
//////// core_enrol_get_users_courses ////////
$userid2 = 73;
/// PARAMETERS - NEED TO BE CHANGED IF YOU CALL A DIFFERENT FUNCTION
$params = array($userid2);
/// XML-RPC CALL
header('Content-Type: text/plain');
$serverurl = $domainname . '/webservice/xmlrpc/server.php'. '?wstoken=' . $token;
require_once('./curl.php');
$curl = new curl;
$post = xmlrpc_encode_request($functionname, $params);
$resp = xmlrpc_decode($curl->post($serverurl, $post));
print_r($resp);
?>
From page
Dear Javier González Díaz!
I found same error on
https://tracker.moodle.org/browse/MDL-34177
I hope it will helpful for you.