Skip to main content
Version: 2.2.0

uploadEletronicFile

This method allows uploading an electronic file. To use it, it is necessary to follow the standard documented below:

Java class
Requestweb/wwwroot/ws/java/document/UploadEletronicFileRequestType.java
Returnweb/wwwroot/ws/java/document/UploadEletronicFileResponseType.java

Request:

ID #RequiredDescription
IDDOCUMENTXDocument ID #.
IDREVISIONRevision ID #.
IDUSERStarting with version 2.0, this parameter became obsolete. During the import, leave it blank.
FILEXFiles 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.
IDCATEGORYDocument category ID #.
info

¹ - Content of the electronic file converted to Base64. If you are testing the usage through the web service 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
returnSUCCESS: 1: Operation successfully performed.
FAILURE: 0: Message with the error found.