This API call inserts a new record into the ExtraView database. All fields are treated as optional, and all defined business rules are executed and checked before and after the record is inserted.
Class |
Name |
Type |
Required |
Details |
InsertItemRequest |
userId |
String |
Yes |
The callers user name |
InsertItemRequest |
password |
String |
Yes |
The callers password |
InsertItemRequest |
sendEmail |
boolean |
Yes |
|
InsertItemRequest |
itemFields |
Array[] |
Yes |
An array of ItemRecordField objects |
ItemRecordField |
fieldId |
String |
Yes |
|
ItemRecordField |
fieldTitle |
String |
Yes |
|
ItemRecordField |
fieldValue |
String |
No |
|
ItemRecordField |
row |
int |
No |
|
Optional parameters for handling document and image files:
Class |
Name |
Type |
Required |
Details |
ItemFileField |
itemImages |
Array[] |
No |
The array of image files and data |
ItemFileField |
itemDocuments |
Array[] |
No |
The array of document files and data |
ItemFileField |
ddName |
String |
No |
The data dictionary name of the file |
ItemFileField |
fileName |
String |
No |
The target file name to be saved |
ItemFileField |
file |
String |
No |
The file |
ItemFileField |
description |
String |
No |
The description of the file |
ItemFileField |
charset |
String |
No |
The charset of the file |
ItemFileField |
contentType |
String |
No |
The content type - e.g. "image/GIF" |
ItemFileField |
rowId |
The repeating row Id |
||
ItemFileField |
rowNumber |
int |
No |
The row number - currently not supported |
Class |
Name |
Type |
Required |
Details |
InsertItemResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
InsertItemResponse |
returnCode |
String |
No |
See Appendix for details |
InsertItemResponse |
returnMessage |
String |
No |
Human readable message |
InsertItemResponse |
itemId |
String |
Yes |
The Id of the insertd item |
public static void testInsertItem(EVItemServiceStub stub) {
try { InsertItemDocument reqEnvelope = InsertItemDocument.Factory.newInstance(); InsertItemRequest request = reqEnvelope.addNewInsertItem().addNewRequest(); request.setUserId(ServiceClientHelper.ADMIN_USER_ID); request.setPassword(ServiceClientHelper.ADMIN_PASSWORD); List request.setItemFieldsArray(items.toArray(new ItemRecordField[items.size()])); InsertItemResponseDocument resEnvelope = stub.insertItem(reqEnvelope); if (response.getSuccess()) { } catch (Exception e) { |
public static void testInsertItem(EVItemServiceStub stub) {
try { File imageFile = new File("./test.GIF"); DataInputStream dis = new DataInputStream(new FileInputStream(imageFile)); BufferedReader br = new BufferedReader(new InputStreamReader(dis)); List List List if (response.getSuccess()) { public static void testUpdateItem(EVItemServiceStub stub) { List List List UpdateItemResponseDocument resEnvelope = stub.updateItem(reqEnvelope); if (response.getSuccess()) { |