It worked after I added the roles to 'Allow role assignments' option in edit role page.
Web services
Cannot assign role to user using web service
This discussion has been locked so you can no longer reply to it.
It worked after I added the roles to 'Allow role assignments' option in edit role page.