First, I'm very new to moodle. And, I'm using moodle 2.1. So I may be missing something obvious. I've poked around here for a couple of days and tried everything in my installation that makes sense to me. What I'm trying to do is create a user with the ability to access the default moodle webservices. Here's what I've done so far;
1) I enabled web services for ordinary users as per http://docs.moodle.org/20/en/How_to_enable_web_services_for_ordinary_users ... I'm sure this step is wrong for what I'm trying to do.
2) I created a new role named web-service-client. And checked 'allow' for all of the "webservice related items".
3) Then I create a new user and assigned the web-service-client
role to that user. When I check "This user's role assignments" , web-service-client is assigned to the user.
That's where things break down. When I go to admin/roles/check.php I see that none of the webservice permissions are allowed, e.g. "Use REST protocol". And, of course, when I try to test any of the webservices from admin/webservice/testclient.php .. they all fail with an "Access control exception". I assume that's my problem. What I'm not getting is why the "Check permissions in System" "Permissions for user XXX" isn't allowing the webservices premissions which are related to the web-service-client role which the user clearly has.
Any help would be appreciated.