The addItemAttachment service attaches a file to an existing item in the ExtraView database.
Class |
Name |
Type |
Required |
Details |
AddItemAttachmentRequest |
userId |
String |
Yes |
The caller's user ID |
AddItemAttachmentRequest |
password |
String |
Yes |
The caller's password |
AddItemAttachmentRequest |
attachment |
Object |
The data handler object as defined by the soap product your using |
|
AddItemAttachmentRequest |
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 |
AddItemAttachmentRequest |
itemIdStr |
String |
? |
The String item Id. This field is optional if itemId is used. It is recommended that you use itemIdStr |
AddItemAttachmentRequest |
attachmentName |
String |
No |
|
AddItemAttachmentRequest |
attachmentDesc |
String |
No |
List of filters for the history |
AddItemAttachmentRequest |
charset |
String |
No |
|
AddItemAttachmentRequest |
contentType |
String |
No |
|
AddItemAttachmentRequest |
fieldName |
String |
No |
|
AddItemAttachmentRequest |
attachmentDesc |
String |
No |
|
AddItemAttachmentRequest |
rowNumber |
String |
No |
Class |
Name |
Type |
Required |
Details |
AddItemAttachmentResponse |
success |
boolean |
Yes |
True is succeeded False if failed |
AddItemAttachmentResponse |
returnCode |
String |
No |
See Appendix for details |
AddItemAttachmentResponse |
returnMessage |
String |
No |
Human readable message |
public static void testAddItemAttachment(EVItemServiceStub stub) {
try { // next setup the data source DataInputStream dis = new DataInputStream(new FileInputStream(tempFile)); List try { // and now we can send the file request.setUserId(ServiceClientHelper.ADMIN_USER_ID); AddItemAttachmentResponseDocument resEnvelope = if (response.getSuccess()) { |