_setBookPurposeSett2
(API version 2.0)int _setBookPurposeSett2 ( string kodf , string username , string pass , WDS_BookPurposeSettItem BookPurposeSettItem )
Description
The function edit trip purpose. The function is available for SŽDC customer only.
Categories
Parameters
- string kodf
- company code
- string username
- username
- string pass
- password
-
WDS_BookPurposeSettItem BookPurposeSettItem
-
int
IdP
Unique purpose identification
-
string
TextCZ
Text of purpose in Czech language
-
string
TextEN
Text of purpose in English language
-
int
IdUser
Unique user identification
-
string
TextSK
Text of purpose in Slovak language
-
string
TextDE
Text of purpose in German language
-
string
TextPL
Text of purpose in Polish language
-
string
TextHU
Text of purpose in Hungarian language
-
string
TextRO
Text of purpose in Romanian language
-
int
IdP
Return value
The return value:
1 | Successfully edited
-1 | Incorrect username or password
-2 | User does not have permissions (not a role user)
-3 | User does not have permission to edit the purpose of the journey
-4 | User does not have permission to edit the company purpose of the journey
-5 | Editing failed
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_setBookPurposeSett2($kodf, $username, $pass, $BookPurposeSettItem);
Test
To test the function, enter parameters in form below and press Try it out button.