by Hajo Emch.
Hi Tim
thanks for help.
I use data transfer objects with xml Attributes and had a space after userid.
Now it works better, but I get:
{"exception":"require_login_exception","errorcode":"requireloginerror","message":"Kurs oder Aktivit\u00e4t nicht benutzbar","debuginfo":"Not enrolled"}
I use a call with https://<my-site>/webservice/rest/server.php?wstoken=<mytoken>&wsfunction=enrol_manual_enrol_users&moodlewsrestformat=json&application/x-www-form-urlencoded=enrolments…
This works for me for example for the method core_course_update_courses
Do I also have to submit username and Password?
Hajo