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 | |
---|---|
Request | web\wwwroot\ws\java\item\UploadEletronicFileFileRequestType.java |
Return | web\wwwroot\ws\java\item\UploadEletronicFileFileResponseType.java |
Request:
ID | Required | Description |
---|---|---|
IDOBJECT | X | Item ID #. |
IDREVISION | Item revision ID #. | |
FILELIST | X | Matrix; Grouper of multiple electronic files that will be included. |
FILE | X | Matrix; Grouper of the electronic file that will be inserted. |
FILEHASH | X | Electronic file hash¹. |
NMFILE | File name. | |
IDCONTAINER | Container 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:
ID | Description |
---|---|
STATUS | FAILURE: FAILURE |
CODE | FAILURE: Negative return code |
DETAIL | FAILURE: Description of the error that was found |
FILELISTRESPONSE | SUCCESS: 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 |