TT


Click here for a complete list of operations.

GetConnection

Podrobnosti k jednomu z vyhledaných spojení.

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

<?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>
    <GetConnection xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sSubstID>string</sSubstID>
      <iConnHandle>int</iConnHandle>
      <iIndex>int</iIndex>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </GetConnection>
  </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>
    <GetConnectionResponse xmlns="http://ttws.chaps.cz/TT">
      <GetConnectionResult dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string">
        <aoPrice sPrice="string" iStatus="int" iReduction="int" xmlns="http://tempuri.org/">
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
        </aoPrice>
        <aoPrice sPrice="string" iStatus="int" iReduction="int" xmlns="http://tempuri.org/">
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
        </aoPrice>
        <oRemarks xmlns="http://tempuri.org/">
          <aoRemarks iType="int" sText="string" />
          <aoRemarks iType="int" sText="string" />
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
        </oRemarks>
        <aoTrains sDistance="string" iLinkDist="int" iCycle2="int" bHasPreReservation="boolean" sDelayQuery="string" sTimeLength="string" iCycle1="int" iTo="int" iFrom="int" iTTIndex="int" iCycle="int" dtDateTime2="dateTime" dtDateTime1="dateTime" xmlns="http://tempuri.org/">
          <oTrain iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTrain>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int">
            <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">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
        </aoTrains>
        <aoTrains sDistance="string" iLinkDist="int" iCycle2="int" bHasPreReservation="boolean" sDelayQuery="string" sTimeLength="string" iCycle1="int" iTo="int" iFrom="int" iTTIndex="int" iCycle="int" dtDateTime2="dateTime" dtDateTime1="dateTime" xmlns="http://tempuri.org/">
          <oTrain iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTrain>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int">
            <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">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
        </aoTrains>
      </GetConnectionResult>
    </GetConnectionResponse>
  </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>
    <GetConnection xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sSubstID>string</sSubstID>
      <iConnHandle>int</iConnHandle>
      <iIndex>int</iIndex>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </GetConnection>
  </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>
    <GetConnectionResponse xmlns="http://ttws.chaps.cz/TT">
      <GetConnectionResult dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string">
        <aoPrice sPrice="string" iStatus="int" iReduction="int" xmlns="http://tempuri.org/">
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
        </aoPrice>
        <aoPrice sPrice="string" iStatus="int" iReduction="int" xmlns="http://tempuri.org/">
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
          <aoSections sStation2="string" sStation1="string">
            <aoPrices xsi:nil="true" />
            <aoPrices xsi:nil="true" />
          </aoSections>
        </aoPrice>
        <oRemarks xmlns="http://tempuri.org/">
          <aoRemarks iType="int" sText="string" />
          <aoRemarks iType="int" sText="string" />
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
        </oRemarks>
        <aoTrains sDistance="string" iLinkDist="int" iCycle2="int" bHasPreReservation="boolean" sDelayQuery="string" sTimeLength="string" iCycle1="int" iTo="int" iFrom="int" iTTIndex="int" iCycle="int" dtDateTime2="dateTime" dtDateTime1="dateTime" xmlns="http://tempuri.org/">
          <oTrain iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTrain>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int">
            <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">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
        </aoTrains>
        <aoTrains sDistance="string" iLinkDist="int" iCycle2="int" bHasPreReservation="boolean" sDelayQuery="string" sTimeLength="string" iCycle1="int" iTo="int" iFrom="int" iTTIndex="int" iCycle="int" dtDateTime2="dateTime" dtDateTime1="dateTime" xmlns="http://tempuri.org/">
          <oTrain iFlags="int" sTypeName="string" iColor="int" sInfoFile="string" iID="int" iType="int" iIndex="int" iTTIndex="int" sNum1="string" sType="string" sNum2="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTrain>
          <aoRoute sDist="string" iInfo="int" adblCoorY="" adblCoorX="" sDepTime="string" sArrTime="string" iDepCycle="int" iArrCycle="int">
            <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">
            <oStation xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </aoRoute>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </oRemarks>
        </aoTrains>
      </GetConnectionResult>
    </GetConnectionResponse>
  </soap12:Body>
</soap12:Envelope>