Navigation:  Integration via SOAP web services > Published web services > Document >

newRevision

Previous  Top  Next

This method enables to create a new revision for the document. To use it, it is necessary to follow the standard documented below:

 

Java class

Request

web/wwwroot/ws/java/document/NewRevisionRequestType.java

Return

web/wwwroot/ws/java/document/NewRevisionResponseType.java

 

Request

ID #

Required

Description

IDDOCUMENT

X

Document ID #.

IDUSER

 

From version 2.0 this parameter has become obsolete. During the import, leave it blank.

PARTICIPANTS

 

Revision participants:

CONTROL: Control type

1 arrowrgray User;

2 arrowrgray Department;

3 arrowrgray Position;

4 arrowrgray Department/Position;

5 arrowrgray Team;

ENTCONTROL: ID #. E.g.: User ID # for user control.

STEP: Step. E.g.:1,2,3,4

1-Draft;

2-Review;

3-Approval;

4-Release.

SEQUENCE: Sequence. E.g.: 2,2,2,2

QTDEADLINE: Deadline (days). E.g.: 5

DOCUMENTDATA

 

Matrix; Document data;

NMTITLE: String; Document title;

ATTRIBUTTES: String; Document attributes.

Example:

identifier_of_attribute1=value_of_attribute1;identifier_of_attribute2=value_of_attribute2;identifier_of_attribute3=value_of_attribute3.

Example with a multivalued attribute:

identifier_of_attribute1=value1_of_attribute1,value2_of_attribute1,value3_of_attribute1.

Note: For attributes with a numeric value, the decimal place separator must be '.'.

Note: For date fields, the value must have the Y-M-D (Year-Month-Day) format.

FILE

 

FILE: Matrix; Files;

NMFILE: String; File name;

BINFILE: Stream; Electronic file binary1.

CONTAINER: Item ID # of the container structure.

ERROR: Starting from version 2.0, this parameter became obsolete. During the import, leave it blank.

FGSTATUS

 

Revision status: 0 - In progress; 1- Closed

DSJUSTIFY

 

Revision explanation

IDCATEGORY

 

Document category ID #.

IDREVISION

 

Revision ID #

 

1 - Content of the electronic file converted to Base64. If you are testing the use through web service data source, we suggest converting a small text using a website of your choosing.

 

Return

ID #

Description

return

SUCCESS: ID_REVISION_CREATED: Operation successfully performed.

FAILURE: returns a message with the error that occurred.