TT


Click here for a complete list of operations.

GetConnections

Podle handle znovu vrátí seznam 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/GetConnections"

<?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>
    <GetConnections xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <iConnHandle>int</iConnHandle>
      <aiIndex>
        <int>int</int>
        <int>int</int>
      </aiIndex>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </GetConnections>
  </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>
    <GetConnectionsResponse xmlns="http://ttws.chaps.cz/TT">
      <GetConnectionsResult bAllowNext="boolean" bAllowPrev="boolean" iSearchTime="int" dtSearchDate="date" dtRangeTo="dateTime" sCombID="string" iHandle="int" dtRangeFrom="dateTime" iActConn="int">
        <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string" xmlns="http://tempuri.org/">
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </aoTrains>
        </aoConnections>
        <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string" xmlns="http://tempuri.org/">
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </aoTrains>
        </aoConnections>
        <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" xmlns="http://tempuri.org/" />
        <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" xmlns="http://tempuri.org/" />
      </GetConnectionsResult>
    </GetConnectionsResponse>
  </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>
    <GetConnections xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <iConnHandle>int</iConnHandle>
      <aiIndex>
        <int>int</int>
        <int>int</int>
      </aiIndex>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </GetConnections>
  </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>
    <GetConnectionsResponse xmlns="http://ttws.chaps.cz/TT">
      <GetConnectionsResult bAllowNext="boolean" bAllowPrev="boolean" iSearchTime="int" dtSearchDate="date" dtRangeTo="dateTime" sCombID="string" iHandle="int" dtRangeFrom="dateTime" iActConn="int">
        <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string" xmlns="http://tempuri.org/">
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </aoTrains>
        </aoConnections>
        <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string" xmlns="http://tempuri.org/">
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <aoPrice sPrice="string" iStatus="int" iReduction="int">
            <aoSections xsi:nil="true" />
            <aoSections xsi:nil="true" />
          </aoPrice>
          <oRemarks>
            <aoRemarks xsi:nil="true" />
            <aoRemarks xsi:nil="true" />
            <aoLegend xsi:nil="true" />
            <aoLegend xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </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">
            <oTrain xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <aoRoute xsi:nil="true" />
            <oRemarks xsi:nil="true" />
          </aoTrains>
        </aoConnections>
        <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" xmlns="http://tempuri.org/" />
        <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" xmlns="http://tempuri.org/" />
      </GetConnectionsResult>
    </GetConnectionsResponse>
  </soap12:Body>
</soap12:Envelope>