_setTrailer2

(API version 2.0)

int _setTrailer2 ( string kodf , string username , string pass , WDS_Trailer2Item TrailerItem )

Description

The feature adjusts the list of company semitrailers

Categories

Tags

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
WDS_Trailer2Item TrailerItem
  • int IdT

    Trailer Id

  • string Identify

    Trailer registration number

  • string TName

    registration number

  • int IdCar

    Starting vehicle ID

  • int Cargroupid

    Group ID

  • string Divize

    division

  • string Stredisko

    Center

  • string Firma

    Company

  • string Provozovna

    Establishment

  • int Druh

    Type

    Dial:
    1 - Semi-trailer
    2 - Trailer
    0 - .. Not entered

  • int Naprav

    Number of axles

  • string Kateg

    Category

  • string Kateg2

    Subcategory

  • string KategV

    Vehicle category

  • float Objem

    Capacity [m3]

  • string Vyrobce

    Producer

  • string VyrC

    Serial number

  • string RokV

    Year of manufacture

  • int Hm

    Weight without load [kg]

  • string Pozn1

    Note 1

  • string Pozn2

    Note 2

  • int Disabled

    eliminate

  • string DatDis

    eliminated date GMT

If the entry IdT> 0 is entered in the WDS_Trailer2Item object - it is an update to an existing record if IdT = 0 - it is a new entry

Return value

int

> 0 - Id of the semi-trailer

-1 - User not logged in
-2 - User does not have admin rights
-3 - Editing failed, please try again later
-5 - The record with the specified IdT is not found
-6 - Inserting a new db record failed

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_setTrailer2($kodf, $username, $pass, $TrailerItem);

Test

To test the function, enter parameters in form below and press Try it out button.

Company code
Login username
Login password
WDS_Trailer2Item TrailerItem
Trailer Id
Trailer registration number
registration number
Starting vehicle ID
Group ID
division
Center
Company
Establishment
Type

Dial:
1 - Semi-trailer
2 - Trailer
0 - .. Not entered
Number of axles
Category
Subcategory
Vehicle category
Capacity [m3]
Producer
Serial number
Year of manufacture
Weight without load [kg]
Note 1
Note 2
eliminate
eliminated date GMT
If the entry IdT> 0 is entered in the WDS_Trailer2Item object - it is an update to an existing record if IdT = 0 - it is a new entry

* Required field