uploadEletronicFile
This method allows uploading an electronic file. To use it, it is necessary to follow the standard documented below:
| Java class | |
|---|---|
| Request | web/wwwroot/ws/java/document/UploadEletronicFileRequestType.java |
| Return | web/wwwroot/ws/java/document/UploadEletronicFileResponseType.java |
Request:
| ID | Required | Description |
|---|---|---|
| IDDOCUMENT | X | Document ID #. |
| IDREVISION | Revision ID #. | |
| IDUSER | Starting with version 2.0, this parameter became obsolete. During the import, leave it blank. | |
| FILE | X | Files array: ▪ NMFILE: String; File name;▪ BINFILE: Stream; Electronic file binary¹.▪ CONTAINER: Container structure item ID #.▪ ERROR: Starting from version 2.0, this parameter became obsolete. During the import, leave it blank. |
| IDCATEGORY | Document category ID #. |
info
¹ - Content of the electronic file converted to Base64. If you are testing the
use through the SOAP data source, we suggest converting a small text through a
website of your choosing.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:document">
<soapenv:Header/>
<soapenv:Body>
<urn:uploadEletronicFile>
<!--You may enter the following 6 items in any order-->
<urn:iddocument>?</urn:iddocument>
<urn:idrevision>?</urn:idrevision>
<urn:iduser>?</urn:iduser>
<urn:file>
<!--0 to 1000 repetitions:-->
<urn:item>
<!--You may enter the following 4 items in any order-->
<urn:NMFILE>?</urn:NMFILE>
<urn:BINFILE>cid:664655187739</urn:BINFILE>
<urn:CONTAINER>?</urn:CONTAINER>
<urn:ERROR>?</urn:ERROR>
</urn:item>
</urn:file>
<urn:container>?</urn:container>
<urn:idcategory>?</urn:idcategory>
</urn:uploadEletronicFile>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID | Description |
|---|---|
| return | SUCCESS:Â 1: Operation successfully performed. FAILURE: 0: Message with the error found. |