I have created a client file to use the role_assign function located in /moodle/enrol/externallib.php
I manged to pass the parameters to the function as the following
Althought it works fine without objections on the parameters but when it excutes it show the following error
Invalid parameter value detected, execution can not continue.
I can't figure out the problem, any thoughts anyone!
Thanks for help in advance