deleteDepartment
This method allows deleting a department. To delete it, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\admin\DeleteDepartmentRequestType.java |
| Return | web\wwwroot\ws\java\admin\DeleteDepartmentResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| ID | X | Department ID # |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:deleteDepartment>
<urn:ID>?</urn:ID>
</urn:deleteDepartment>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| Return | SUCCESS: Â Primary key of the department (CDDEPARTMENT) FAILURE: -1 |
| Status | SUCCESS: SUCCESS FAILURE: FAILURE |
| Detail | SUCCESS: Record(s) deleted FAILURE: message regarding the error that occurred. |
| Code | SUCCESS: 1. FAILURE: Code regarding the error that occurred: â–ª 15 - Inexistent department. â–ª 43 - The ID # has no value. â–ª 66 - Record cannot be deleted. There is related data. |