This action retrieves a list of the roles for an existing user within ExtraView.
Class |
Name |
Type |
Required |
Details |
GetUserRolesRequest |
userId |
String |
Yes |
The callers user name |
GetUserRolesRequest |
password |
String |
Yes |
The callers password |
Class |
Name |
Type |
Required |
Details |
GetUserRolesResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
GetUserRolesResponse |
returnCode |
String |
No |
See Appendix for details |
GetUserRolesResponse |
returnMessage |
String |
No |
Human readable message |
GetUserRolesResponse |
roles |
Array[] |
No |
A list of Role Objects |
Role |
roleId |
String |
Yes |
|
Role |
currentRole |
boolean |
Yes |
|
Role |
roleName |
String |
Yes |
|
public static void testGetUserRoles(EVUserServiceStub stub) {
try { GetUserRolesDocument reqEnvelope = GetUserRolesDocument.Factory.newInstance(); GetUserRolesRequest request = reqEnvelope.addNewGetUserRoles().addNewRequest(); request.setUserId(ServiceClientHelper.generatedUserId); GetUserRolesResponseDocument resEnvelope = stub.getUserRoles(reqEnvelope); if (response.getSuccess()) { } catch (Exception e) { |