This action allows the user to update the attributes of an existing user within ExtraView.
Input
Class |
Name |
Type |
Required |
Details |
UpdateUserRequest |
userId |
String |
Yes |
The callers user name |
UpdateUserRequest |
password |
String |
Yes |
The callers password |
UpdateUserRequest |
updateUserId |
String |
Yes |
The desired new user id (must be unique) |
UpdateUserRequest |
newPassword |
String |
No |
The desired new password |
UpdateUserRequest |
oldPassword |
String |
No |
The users old password |
UpdateUserRequest |
firstName |
String |
No |
The users first name |
UpdateUserRequest |
lastName |
String |
No |
The users last name |
UpdateUserRequest |
|
String |
No |
The users email address |
UpdateUserRequest |
jobTitle |
String |
No |
The users job title |
UpdateUserRequest |
companyName |
String |
No |
The users Company name |
UpdateUserRequest |
addressLine1 |
String |
No |
The users address (line 1) |
UpdateUserRequest |
addressLine2 |
String |
No |
The users address (line 2) |
UpdateUserRequest |
city |
String |
No |
The users city |
UpdateUserRequest |
state |
String |
No |
The users state |
UpdateUserRequest |
postalCode |
String |
No |
The users postal code |
UpdateUserRequest |
country |
String |
No |
The users country |
UpdateUserRequest |
workPhoneNumber |
String |
No |
The users work phone number |
UpdateUserRequest |
homePhoneNumber |
String |
No |
The users home phone number |
UpdateUserRequest |
cellPhoneNumber |
String |
No |
The users cell phone number |
UpdateUserRequest |
faxNumber |
String |
No |
The users fax phone number |
UpdateUserRequest |
pagerNumber |
String |
No |
The users pager phone number |
Output
Class |
Name |
Type |
Required |
Details |
UpdateUserResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
UpdateUserResponse |
returnCode |
String |
No |
See Appendix for details |
UpdateUserResponse |
returnMessage |
String |
No |
Human readable message |
Example
public static void testUpdateUser(EVUserServiceStub stub) {
try {
UpdateUserDocument reqEnvelope = UpdateUserDocument.Factory.newInstance();
UpdateUserRequest request = reqEnvelope.addNewUpdateUser().addNewParam0();
request.setUserId(ServiceClientHelper.ADMIN_USER_ID);
request.setPassword(ServiceClientHelper.ADMIN_PASSWORD);
request.setUpdateUserId(ServiceClientHelper.generatedUserId);
request.setOldPassword(ServiceClientHelper.generatedPassword);
request.setNewPassword("UP" + ServiceClientHelper.generatedPassword);
UpdateUserResponseDocument resEnvelope = stub.updateUser(reqEnvelope);
UpdateUserResponse response = resEnvelope.getUpdateUserResponse().getReturn();
if (response.getSuccess()) {
System.out.println("success: [" + response.getReturnCode() + "] : " +
response.getReturnMessage());
System.out.println
("user [" + ServiceClientHelper.generatedUserId + "] user has been inserted.");
} else {
System.out.println("failure: [" + response.getReturnCode() + "] : " +
response.getReturnMessage());
}
} catch (Exception e) {
e.printStackTrace();
System.err.println("nnn");
}
}