@MTOM
public class FileService
extends java.lang.Object
Constructor and Description |
---|
FileService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
uploadFile(java.lang.String userName,
java.lang.String password,
java.lang.String outputFormat,
javax.activation.DataHandler attachment,
java.lang.String outputFileName)
Uploads the given file to the server and returns the relative path of
uploaded file.The uploaded path will be available in userObject of
RequestStatus object.
|
public java.lang.String uploadFile(java.lang.String userName, java.lang.String password, java.lang.String outputFormat, javax.activation.DataHandler attachment, java.lang.String outputFileName)
userName
- - Stringpassword
- - StringoutputFormat
- - String - Valid values: JSON or XMLattachment
- - DataHandler objectoutputFileName
- - String - Name of the file that will be saved in
the server.