TT


Click here for a complete list of operations.

Login

Přihlášení uživatele.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /tt.asmx HTTP/1.1
Host: ttws.timetable.cz
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ttws.chaps.cz/TT/Login"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Login xmlns="http://ttws.chaps.cz/TT">
      <sUserName>string</sUserName>
      <sPassword>string</sPassword>
      <iLang>int</iLang>
    </Login>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <LoginResponse xmlns="http://ttws.chaps.cz/TT">
      <LoginResult>
        <sSessionID>string</sSessionID>
        <oTTData dtDataLoadTime="dateTime" sTTVer="string" sTTServerVer="string">
          <aoComb dtValidFrom="date" bHasAir="boolean" bHasCity="boolean" iGlobalListsDefault="int" bHasMoreTrainTypes="boolean" dtValidTo="date" bHasBus="boolean" iUsageFlags="int" aiTTIndex="" sCombID="string" bHasTrain="boolean" iDistPenal="int" iFlags="int" xmlns="http://tempuri.org/">
            <asName xsi:nil="true" />
            <asNameExt xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <oConnectionParms xsi:nil="true" />
          </aoComb>
          <aoComb dtValidFrom="date" bHasAir="boolean" bHasCity="boolean" iGlobalListsDefault="int" bHasMoreTrainTypes="boolean" dtValidTo="date" bHasBus="boolean" iUsageFlags="int" aiTTIndex="" sCombID="string" bHasTrain="boolean" iDistPenal="int" iFlags="int" xmlns="http://tempuri.org/">
            <asName xsi:nil="true" />
            <asNameExt xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <oConnectionParms xsi:nil="true" />
          </aoComb>
          <aoTTInfo bHasDist="boolean" bHasStRem="boolean" bHasTrStRem="boolean" sHomeState="string" iStCount="int" iTrCount="int" bHasDefaultMinTime="boolean" iOwnersCount="int" bQMapAvail="boolean" aiFCSearchID="" bHasLineRem="boolean" bHasOwners="boolean" iLinesCount="int" iTTID="int" iTrCategory="int" iTrSubCategory="int" sTTName="string" sTTResName="string" iTTIndex="int" dtUpdateDate="date" dtTTValidTo="date" iLangCount="int" sLangID="string" dtDataValidFrom="date" dtDataValidTo="date" dtTTValidFrom="date" xmlns="http://tempuri.org/">
            <asLangTitle xsi:nil="true" />
            <asLangDescription xsi:nil="true" />
            <asLangDecoration xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
          </aoTTInfo>
          <aoTTInfo bHasDist="boolean" bHasStRem="boolean" bHasTrStRem="boolean" sHomeState="string" iStCount="int" iTrCount="int" bHasDefaultMinTime="boolean" iOwnersCount="int" bQMapAvail="boolean" aiFCSearchID="" bHasLineRem="boolean" bHasOwners="boolean" iLinesCount="int" iTTID="int" iTrCategory="int" iTrSubCategory="int" sTTName="string" sTTResName="string" iTTIndex="int" dtUpdateDate="date" dtTTValidTo="date" iLangCount="int" sLangID="string" dtDataValidFrom="date" dtDataValidTo="date" dtTTValidFrom="date" xmlns="http://tempuri.org/">
            <asLangTitle xsi:nil="true" />
            <asLangDescription xsi:nil="true" />
            <asLangDecoration xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
          </aoTTInfo>
        </oTTData>
      </LoginResult>
    </LoginResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /tt.asmx HTTP/1.1
Host: ttws.timetable.cz
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Login xmlns="http://ttws.chaps.cz/TT">
      <sUserName>string</sUserName>
      <sPassword>string</sPassword>
      <iLang>int</iLang>
    </Login>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <LoginResponse xmlns="http://ttws.chaps.cz/TT">
      <LoginResult>
        <sSessionID>string</sSessionID>
        <oTTData dtDataLoadTime="dateTime" sTTVer="string" sTTServerVer="string">
          <aoComb dtValidFrom="date" bHasAir="boolean" bHasCity="boolean" iGlobalListsDefault="int" bHasMoreTrainTypes="boolean" dtValidTo="date" bHasBus="boolean" iUsageFlags="int" aiTTIndex="" sCombID="string" bHasTrain="boolean" iDistPenal="int" iFlags="int" xmlns="http://tempuri.org/">
            <asName xsi:nil="true" />
            <asNameExt xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <oConnectionParms xsi:nil="true" />
          </aoComb>
          <aoComb dtValidFrom="date" bHasAir="boolean" bHasCity="boolean" iGlobalListsDefault="int" bHasMoreTrainTypes="boolean" dtValidTo="date" bHasBus="boolean" iUsageFlags="int" aiTTIndex="" sCombID="string" bHasTrain="boolean" iDistPenal="int" iFlags="int" xmlns="http://tempuri.org/">
            <asName xsi:nil="true" />
            <asNameExt xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <aoGlobalLists xsi:nil="true" />
            <oConnectionParms xsi:nil="true" />
          </aoComb>
          <aoTTInfo bHasDist="boolean" bHasStRem="boolean" bHasTrStRem="boolean" sHomeState="string" iStCount="int" iTrCount="int" bHasDefaultMinTime="boolean" iOwnersCount="int" bQMapAvail="boolean" aiFCSearchID="" bHasLineRem="boolean" bHasOwners="boolean" iLinesCount="int" iTTID="int" iTrCategory="int" iTrSubCategory="int" sTTName="string" sTTResName="string" iTTIndex="int" dtUpdateDate="date" dtTTValidTo="date" iLangCount="int" sLangID="string" dtDataValidFrom="date" dtDataValidTo="date" dtTTValidFrom="date" xmlns="http://tempuri.org/">
            <asLangTitle xsi:nil="true" />
            <asLangDescription xsi:nil="true" />
            <asLangDecoration xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
          </aoTTInfo>
          <aoTTInfo bHasDist="boolean" bHasStRem="boolean" bHasTrStRem="boolean" sHomeState="string" iStCount="int" iTrCount="int" bHasDefaultMinTime="boolean" iOwnersCount="int" bQMapAvail="boolean" aiFCSearchID="" bHasLineRem="boolean" bHasOwners="boolean" iLinesCount="int" iTTID="int" iTrCategory="int" iTrSubCategory="int" sTTName="string" sTTResName="string" iTTIndex="int" dtUpdateDate="date" dtTTValidTo="date" iLangCount="int" sLangID="string" dtDataValidFrom="date" dtDataValidTo="date" dtTTValidFrom="date" xmlns="http://tempuri.org/">
            <asLangTitle xsi:nil="true" />
            <asLangDescription xsi:nil="true" />
            <asLangDecoration xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
            <aoTrTypes xsi:nil="true" />
          </aoTTInfo>
        </oTTData>
      </LoginResult>
    </LoginResponse>
  </soap12:Body>
</soap12:Envelope>