Skip to main content
Version: 2.2.2

newPosition

This method allows adding the data of a position. For this addition, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\admin\NewPositionRequestType.java
Returnweb\wwwroot\ws\java\admin\NewPositionResponseType.java

Request:

ID #RequiredDescription
IDXPosition ID #.
DESCXPosition description.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:newPosition>
<!--You may enter the following 2 items in any order-->
<urn:ID>?</urn:ID>
<urn:DESC>?</urn:DESC>
</urn:newPosition>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: Primary key of the position (CDPOSITION).
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred.
RecordIdSUCCESS: Position ID #.
FAILURE: N/A
RecordKeySUCCESS: Position primary key.
FAILURE: N/A
DetailSUCCESS: Record(s) added successfully.
FAILURE: message regarding the error that occurred.
CodeDescription
3ID: The maximum size for this field is 50.
DESC: The maximum size for this field is 255.
13Null position ID #.
16Inexistent position.
22Null position name field.
23Existing position.