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

newDocument

Previous  Top  Next

This method makes it possible to create a document. To use it, it is necessary to follow the standard documented below:

 

Java class

Request

web/wwwroot/ws/java/document/NewDocumentRequestType.java

Return

web/wwwroot/ws/java/document/NewDocumentResponseType.java

 

Request

ID #

Required

Description

IDCATEGORY

X

Category ID #.

IDDOCUMENT

 

Document ID #.

TITLE

X

Document title.

DSRESUME

X

Document summary.

DTDOCUMENT

 

Document date. Date format must be Y-M-D (Year-Month-Day)

ATTRIBUTES

 

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_

do_atributo1,valor3_do_atributo1.

Note: For attributes with a numerical value, the

the decimal point separator should be ’.’. For date fields, the value

must have the format "Y-M-D" (Year-Month-Day)

IDUSER

 

User responsible for the document .

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

FGMODEL

 

Template ID #.

1 - For the default template of the category

FILE

 

Files array:

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.

KEYWORD

 

Keyword array:

KeywordID: String; Keyword 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_DOCUMENT_CREATED: Document created successfully.

FAILURE: 0: Message with error.