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

addUserDepartment

Previous  Top  Next

This method enables to add a relationship between user, department and position. For this addition, it is necessary to follow the standard documented below.

 

Java class

Request

web\wwwroot\ws\java\admin\AddUserDepartmentRequestType.java

Return

web\wwwroot\ws\java\admin\AddUserDepartmentResponseType.java

 

Request

ID #

Required

Description

ID

X

User's reg. code #.

IDAREA

X

Department ID #.

IDFUNC

X

Position ID #.

 

Return

ID #

Description

Return

SUCCESS:  Primary key of the user (CDUSER)

FAILURE: -1

Status

SUCCESS: SUCCESS

FAILURE: FAILURE

Detail

SUCCESS: Record successfully associated.

FAILURE: Message regarding the error that occurred.

Code

SUCCESS: 1

FAILURE: Code regarding the error that occurred:

7 - Null user ID #.

12 - Inexistent user.

13 - Null position ID #.

14 - Null department ID #.

15 - Inexistent department.

16 - Inexistent position.

19 - Inexistent relationship between department and position.