TT


Click here for a complete list of operations.

SearchTrainData

Vyhledání spojů dle masky.

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/SearchTrainData"

<?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>
    <SearchTrainData xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <aiTypeID>
        <int>int</int>
        <int>int</int>
      </aiTypeID>
      <iTTIndex>int</iTTIndex>
      <sMask>string</sMask>
      <dtDate>dateTime</dtDate>
      <bIgnoreDia>boolean</bIgnoreDia>
      <iMaxCount>int</iMaxCount>
      <iStartTrain>int</iStartTrain>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </SearchTrainData>
  </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>
    <SearchTrainDataResponse xmlns="http://ttws.chaps.cz/TT">
      <SearchTrainDataResult>
        <TrainDataInfo>
          <oInfo iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string" xmlns="http://tempuri.org/">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oInfo>
          <oRemarks xmlns="http://tempuri.org/">
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
        </TrainDataInfo>
        <TrainDataInfo>
          <oInfo iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string" xmlns="http://tempuri.org/">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oInfo>
          <oRemarks xmlns="http://tempuri.org/">
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
        </TrainDataInfo>
      </SearchTrainDataResult>
    </SearchTrainDataResponse>
  </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>
    <SearchTrainData xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <aiTypeID>
        <int>int</int>
        <int>int</int>
      </aiTypeID>
      <iTTIndex>int</iTTIndex>
      <sMask>string</sMask>
      <dtDate>dateTime</dtDate>
      <bIgnoreDia>boolean</bIgnoreDia>
      <iMaxCount>int</iMaxCount>
      <iStartTrain>int</iStartTrain>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </SearchTrainData>
  </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>
    <SearchTrainDataResponse xmlns="http://ttws.chaps.cz/TT">
      <SearchTrainDataResult>
        <TrainDataInfo>
          <oInfo iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string" xmlns="http://tempuri.org/">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oInfo>
          <oRemarks xmlns="http://tempuri.org/">
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
        </TrainDataInfo>
        <TrainDataInfo>
          <oInfo iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string" xmlns="http://tempuri.org/">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oInfo>
          <oRemarks xmlns="http://tempuri.org/">
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int" xmlns="http://tempuri.org/">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
        </TrainDataInfo>
      </SearchTrainDataResult>
    </SearchTrainDataResponse>
  </soap12:Body>
</soap12:Envelope>