This action retrieves a user’s details from ExtraView for the given user ID.
Input
Class |
Name |
Type |
Required |
Details |
GetUserByIdRequest |
userId |
String |
Yes |
The callers user name |
GetUserByIdRequest |
password |
String |
Yes |
The callers password |
GetUserByIdRequest |
getUserId |
String |
Yes |
The user Id of the user your getting |
Output
Class |
Name |
Type |
Required |
Details |
GetUserByIdResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
GetUserByIdResponse |
returnCode |
String |
No |
See Appendix for details |
GetUserByIdResponse |
returnMessage |
String |
No |
Human readable message |
GetUserByIdResponse |
user |
Object |
No |
A Single UserBean Object |
UserBean |
userId |
String |
Yes |
|
UserBean |
userPassword |
String |
No |
|
UserBean |
firstName |
String |
No |
|
UserBean |
lastName |
String |
No |
|
UserBean |
password |
String |
No |
|
UserBean |
|
String |
No |
|
UserBean |
jobTitle |
String |
No |
|
UserBean |
companyName |
String |
No |
|
UserBean |
addressLine1 |
String |
No |
|
UserBean |
addressLine2 |
String |
No |
|
UserBean |
city |
String |
No |
|
UserBean |
state |
String |
No |
|
UserBean |
postalCode |
String |
No |
|
UserBean |
country |
String |
No |
|
UserBean |
workPhoneNumber |
String |
No |
|
UserBean |
homePhoneNumber |
String |
No |
|
UserBean |
cellPhoneNumber |
String |
No |
|
UserBean |
faxNumber |
String |
No |
|
UserBean |
pagerNumber |
String |
No |
|
Example
public static void testGetUserById(EVUserServiceStub stub) {
try {
GetUserByIdDocument reqEnvelope = GetUserByIdDocument.Factory.newInstance();
GetUserByIdRequest request = reqEnvelope.addNewGetUserById().addNewRequest();
request.setGetUserId(ServiceClientHelper.generatedUserId);
request.setUserId(ServiceClientHelper.ADMIN_USER_ID);
request.setPassword(ServiceClientHelper.ADMIN_PASSWORD);
GetUserByIdResponseDocument resEnvelope = stub.getUserById(reqEnvelope);
GetUserByIdResponse response = resEnvelope.getGetUserByIdResponse().getReturn();
if (response.getSuccess()) {
System.out.println("success: [" + response.getReturnCode() + "] : " +
response.getReturnMessage());
} else {
System.out.println("failure: [" + response.getReturnCode() + "] : " +
response.getReturnMessage());
}
} catch (Exception e) {
e.printStackTrace();
System.err.println("nnn");
}
}