Skip to main content
Version: 2.2.0

setAttributeValue

This method allows assigning a value to an attribute of a certain document. To use it, it is necessary to follow the standard documented below:

Java class
Requestweb/wwwroot/ws/java/document/SetAttributeValueRequestType.java
Returnweb/wwwroot/ws/java/document/SetAttributeValueResponseType.java

Request:

ID #RequiredDescription
IDDOCUMENTXDocument ID #.
IDREVISIONRevision ID #.
Note: If not entered, the current revision will be considered.
IDATTRIBUTEXAttribute ID #.
VLATTRIBUTEXAttribute value.
SEPARATORWhen the attribute is multivalued, it is necessary to inform which characters indicate separation between values. E.g.: SEPARATOR = "#$" indicates that the values are separated by these characters. If none is entered, the system will break the values at the comma.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:document">
<soapenv:Header/>
<soapenv:Body>
<urn:setAttributeValue>
<!--You may enter the following 5 items in any order-->
<urn:iddocument>?</urn:iddocument>
<urn:idrevision>?</urn:idrevision>
<urn:idattribute>?</urn:idattribute>
<urn:vlattribute>?</urn:vlattribute>
<urn:separator>?</urn:separator>
</urn:setAttributeValue>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: 1: Action successfully executed.
FAILURE: 0: Message with the error found.