deleteItem
This action allows you to delete an existing record within ExtraView’s database. Note that you must have permission to delete records before you can execute this action. The security key that controls this is named PR_RESOLUTION.DELETE_BUTTON.
Input
Class |
Name |
Type |
Required |
Details |
DeleteItemRequest |
userId |
String |
Yes |
The callers user name |
DeleteItemRequest |
password |
String |
Yes |
The callers password |
DeleteItemRequest |
itemId |
int |
? |
The int item id. This field is optional if itemIdStr is given, else it is required. It is recommended that you use itemIdStr |
DeleteItemRequest |
itemIdStr |
String |
? |
The String item Id. This field is optional if itemId is used. It is recommended that you use itemIdStr |
Output
Class |
Name |
Type |
Required |
Details |
DeleteItemResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
DeleteItemResponse |
returnCode |
String |
No |
See Appendix for details |
DeleteItemResponse |
returnMessage |
String |
No |
Human readable message |
Example
public static void testDeleteItem(EVItemServiceStub stub) {
try {
DeleteItemDocument reqEnvelope = DeleteItemDocument.Factory.newInstance();
DeleteItemRequest request = reqEnvelope.addNewDeleteItem().addNewRequest();
request.setUserId(ServiceClientHelper.ADMIN_USER_ID);
request.setPassword(ServiceClientHelper.ADMIN_PASSWORD);
request.setItemId(CREATED_Item_ID);
DeleteItemResponseDocument resEnvelope = stub.deleteItem(reqEnvelope);
DeleteItemResponse response = resEnvelope.getDeleteItemResponse().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");
}
}