TT


Click here for a complete list of operations.

Connection2

Vyhledání spojení, verze 2.

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

<?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>
    <Connection2 xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <aoFrom>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoFrom>
      <aiFromDist>
        <int>int</int>
        <int>int</int>
      </aiFromDist>
      <aoTo>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoTo>
      <aiToDist>
        <int>int</int>
        <int>int</int>
      </aiToDist>
      <aoVia>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoVia>
      <aoChange>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoChange>
      <sDate>string</sDate>
      <sTime>string</sTime>
      <iAlgorithm>int</iAlgorithm>
      <bIsDepTime>boolean</bIsDepTime>
      <aiTypeID>
        <i>int</i>
        <i>int</i>
      </aiTypeID>
      <oParms bNodeTo="boolean" bLimitWalkArcs="boolean" bLowDeckConn="boolean" bNodeFrom="boolean" bLimitOnTarget="boolean" iMaxArcLengthFrom="int" iMaxArcLengthTo="int" aiFCSearchID="" iDistPenal="int" sOwnerMask="string" bAutoStrategy="boolean" bLowDeckConnValid="boolean" bLowDeckConnTr="boolean" bLowDeckConnTrValid="boolean" bUseSearchCoors="boolean" iDeltaMaxType="int" iDeltaPMax="int" iDeltaMMax="int" bStopsInVia="boolean" iMaxChange="int" iIntervalDirect="int" iIntervalChanges="int" bPrefereTrainsValid="boolean" iMaxArcLength="int" iMaxArcLengthCity="int" bPrefereTrains="boolean" iFailRetryDirect="int" iFailRetryChanges="int" iUseBeds="int">
        <aiMaxTime xmlns="http://tempuri.org/">int</aiMaxTime>
        <aiMaxTime xmlns="http://tempuri.org/">int</aiMaxTime>
        <aiMinTime xmlns="http://tempuri.org/">int</aiMinTime>
        <aiMinTime xmlns="http://tempuri.org/">int</aiMinTime>
        <abDefaultMinTime xmlns="http://tempuri.org/">boolean</abDefaultMinTime>
        <abDefaultMinTime xmlns="http://tempuri.org/">boolean</abDefaultMinTime>
      </oParms>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iMaxCount>int</iMaxCount>
      <iLang>int</iLang>
      <iRegMode>int</iRegMode>
      <iSearchMode>long</iSearchMode>
      <iTTInfoDetails>long</iTTInfoDetails>
      <iCoor>int</iCoor>
      <iConnHandle>int</iConnHandle>
    </Connection2>
  </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>
    <Connection2Response xmlns="http://ttws.chaps.cz/TT">
      <Connection2Result iResult="int">
        <aoFromObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoFromObjects>
        <aoFromObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoFromObjects>
        <aoToObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoToObjects>
        <aoToObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoToObjects>
        <aoViaObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoViaObjects>
        <aoViaObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoViaObjects>
        <aoChangeObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoChangeObjects>
        <aoChangeObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoChangeObjects>
        <oConnInfo bAllowNext="boolean" bAllowPrev="boolean" iSearchTime="int" dtSearchDate="date" dtRangeTo="dateTime" sCombID="string" iHandle="int" dtRangeFrom="dateTime" iActConn="int" xmlns="http://tempuri.org/">
          <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string">
            <aoPrice xsi:nil="true" />
            <aoPrice xsi:nil="true" />
            <oRemarks xsi:nil="true" />
            <aoTrains xsi:nil="true" />
            <aoTrains xsi:nil="true" />
          </aoConnections>
          <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string">
            <aoPrice xsi:nil="true" />
            <aoPrice xsi:nil="true" />
            <oRemarks xsi:nil="true" />
            <aoTrains xsi:nil="true" />
            <aoTrains xsi:nil="true" />
          </aoConnections>
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
        </oConnInfo>
      </Connection2Result>
    </Connection2Response>
  </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>
    <Connection2 xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <aoFrom>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoFrom>
      <aiFromDist>
        <int>int</int>
        <int>int</int>
      </aiFromDist>
      <aoTo>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoTo>
      <aiToDist>
        <int>int</int>
        <int>int</int>
      </aiToDist>
      <aoVia>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoVia>
      <aoChange>
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
        <VirtListItemInfo iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
      </aoChange>
      <sDate>string</sDate>
      <sTime>string</sTime>
      <iAlgorithm>int</iAlgorithm>
      <bIsDepTime>boolean</bIsDepTime>
      <aiTypeID>
        <i>int</i>
        <i>int</i>
      </aiTypeID>
      <oParms bNodeTo="boolean" bLimitWalkArcs="boolean" bLowDeckConn="boolean" bNodeFrom="boolean" bLimitOnTarget="boolean" iMaxArcLengthFrom="int" iMaxArcLengthTo="int" aiFCSearchID="" iDistPenal="int" sOwnerMask="string" bAutoStrategy="boolean" bLowDeckConnValid="boolean" bLowDeckConnTr="boolean" bLowDeckConnTrValid="boolean" bUseSearchCoors="boolean" iDeltaMaxType="int" iDeltaPMax="int" iDeltaMMax="int" bStopsInVia="boolean" iMaxChange="int" iIntervalDirect="int" iIntervalChanges="int" bPrefereTrainsValid="boolean" iMaxArcLength="int" iMaxArcLengthCity="int" bPrefereTrains="boolean" iFailRetryDirect="int" iFailRetryChanges="int" iUseBeds="int">
        <aiMaxTime xmlns="http://tempuri.org/">int</aiMaxTime>
        <aiMaxTime xmlns="http://tempuri.org/">int</aiMaxTime>
        <aiMinTime xmlns="http://tempuri.org/">int</aiMinTime>
        <aiMinTime xmlns="http://tempuri.org/">int</aiMinTime>
        <abDefaultMinTime xmlns="http://tempuri.org/">boolean</abDefaultMinTime>
        <abDefaultMinTime xmlns="http://tempuri.org/">boolean</abDefaultMinTime>
      </oParms>
      <iRemMask>int</iRemMask>
      <iTTDetails>long</iTTDetails>
      <iMaxCount>int</iMaxCount>
      <iLang>int</iLang>
      <iRegMode>int</iRegMode>
      <iSearchMode>long</iSearchMode>
      <iTTInfoDetails>long</iTTInfoDetails>
      <iCoor>int</iCoor>
      <iConnHandle>int</iConnHandle>
    </Connection2>
  </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>
    <Connection2Response xmlns="http://ttws.chaps.cz/TT">
      <Connection2Result iResult="int">
        <aoFromObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoFromObjects>
        <aoFromObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoFromObjects>
        <aoToObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoToObjects>
        <aoToObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoToObjects>
        <aoViaObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoViaObjects>
        <aoViaObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoViaObjects>
        <aoChangeObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoChangeObjects>
        <aoChangeObjects iInitIndex="int" xmlns="http://tempuri.org/">
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <aoMasks iTTIndex="int" iVirtList="int" iVirtListID="int" iItem="int" sName="string" />
          <oTimetableObject sRegion="string" sState="string" bRegion="boolean" sTrCategory="string" sType="string" aiTrTypeID="" sLines="string" iStCount="int" dblCoorY="double" dblCoorX="double">
            <oItem xsi:nil="true" />
            <aoStations xsi:nil="true" />
            <aoStations xsi:nil="true" />
          </oTimetableObject>
        </aoChangeObjects>
        <oConnInfo bAllowNext="boolean" bAllowPrev="boolean" iSearchTime="int" dtSearchDate="date" dtRangeTo="dateTime" sCombID="string" iHandle="int" dtRangeFrom="dateTime" iActConn="int" xmlns="http://tempuri.org/">
          <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string">
            <aoPrice xsi:nil="true" />
            <aoPrice xsi:nil="true" />
            <oRemarks xsi:nil="true" />
            <aoTrains xsi:nil="true" />
            <aoTrains xsi:nil="true" />
          </aoConnections>
          <aoConnections dtSearchDate="date" sPrice="string" iOpposite="int" iID="int" sDistance="string" sTimeLength="string">
            <aoPrice xsi:nil="true" />
            <aoPrice xsi:nil="true" />
            <oRemarks xsi:nil="true" />
            <aoTrains xsi:nil="true" />
            <aoTrains xsi:nil="true" />
          </aoConnections>
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
          <aoLegend sText="string" sTTText="string" sDesc="string" sDescExt="string" />
        </oConnInfo>
      </Connection2Result>
    </Connection2Response>
  </soap12:Body>
</soap12:Envelope>