Skip to main content
Version: 2.2.2

uploadEletronicFile

This method allows adding multiple electronic files to an item.

To use this method, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\item\UploadEletronicFileFileRequestType.java
Returnweb\wwwroot\ws\java\item\UploadEletronicFileFileResponseType.java

Request:

IDRequiredDescription
IDOBJECTXItem ID #.
IDREVISIONItem revision ID #.
FILELISTXMatrix; Grouper of multiple electronic files that will be included.
FILEXMatrix; Grouper of the electronic file that will be inserted.
FILEHASHXElectronic file hash¹.
NMFILEFile name.
IDCONTAINERContainer structure item ID #.
info
  • ¹ - The hash of the electronic file will be the filehash obtained in the return of the upload, using the upload method.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:item">
<soapenv:Header/>
<soapenv:Body>
<urn:uploadEletronicFile>
<!--You may enter the following 3 items in any order-->
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:IDREVISION>?</urn:IDREVISION>
<urn:FILELIST>
<!--0 to 1000 repetitions:-->
<urn:FILE>
<!--You may enter the following 3 items in any order-->
<urn:FILEHASH>?</urn:FILEHASH>
<urn:NMFILE>?</urn:NMFILE>
<urn:IDCONTAINER>?</urn:IDCONTAINER>
</urn:FILE>
</urn:FILELIST>
</urn:uploadEletronicFile>
</soapenv:Body>
</soapenv:Envelope>

Return:

IDDescription
STATUSFAILURE: FAILURE
CODEFAILURE: Negative return code
DETAILFAILURE: Description of the error that was found
FILELISTRESPONSESUCCESS: Returns a vector with the metadata of the sent electronic files:
• FILELISTRESPONSE: Matrix; Electronic files
•• FILE: Matrix; Electronic file
••• FILEHASH: Electronic file hash
••• STATUS: SUCCESS: SUCCESS or FAILURE: FAILURE
••• CODE: SUCCESS: 1 or FAILURE: -X (negative return code)
••• DETAIL: SUCCESS: Operation carried out successfully, or FAILURE: Description of the error found