Skip to main content
Version: 2.2.0

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
DataID #: Department ID #
Department: Department name
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:
â–ª 16 - Department does not exist