Skip to main content
Version: 2.2.3

getDepartment

This method returns the data of a department.

To search for the data of a department, it is necessary to follow the standard documented below:

Java class
Requestweb\wwwroot\ws\java\admin\GetDepartmentRequestType.java
Returnweb\wwwroot\ws\java\admin\GetDepartmentResponseType.java

Request:

ID #RequiredDescription
iddepartmentID # of the department to be located

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:getDepartment>
<urn:iddepartment>?</urn:iddepartment>
</urn:getDepartment>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
DataSUCESS: Returns an object list with the following data:
ID #: Department ID #
Name: Department name
FAILURE: Field is not returned
ReturnSUCCESS: 1.
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Executed successfully
FAILURE: message regarding the error that occurred.
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred:
▪ 15 - Department does not exist