TT


Click here for a complete list of operations.

ZJRBuild

Generování zastávkových JŘ.

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

<?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>
    <ZJRBuild xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <iTTIndex>int</iTTIndex>
      <aiTypeID>
        <int>int</int>
        <int>int</int>
      </aiTypeID>
      <iTrain>int</iTrain>
      <iFrom>int</iFrom>
      <iTo>int</iTo>
      <sDate>string</sDate>
      <bWholeWeek>boolean</bWholeWeek>
      <sStation>string</sStation>
      <iStationIndex>int</iStationIndex>
      <bPrefereBack>boolean</bPrefereBack>
      <iMaxTimes>int</iMaxTimes>
      <bSkipRemCheck>boolean</bSkipRemCheck>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </ZJRBuild>
  </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>
    <ZJRBuildResponse xmlns="http://ttws.chaps.cz/TT">
      <ZJRBuildResult iMinHour="int" iTrainUsed="int" bExclusion="boolean" iMaxHour="int" sValidFromTo="string" bIsBack="boolean" dtSearchDate="date" aiStRemarks="" aiStDist="">
        <aoStations xmlns="http://tempuri.org/">
          <StationInfo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </StationInfo>
          <StationInfo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </StationInfo>
        </aoStations>
        <asStZones xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asStZones>
        <acStRemarksAbbr xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </acStRemarksAbbr>
        <asStRemarks xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asStRemarks>
        <asRemarksAbbr xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asRemarksAbbr>
        <asRemarks xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asRemarks>
        <oFCLowDeck sText="string" sTTText="string" sDesc="string" sDescExt="string" xmlns="http://tempuri.org/" />
        <asTabValidity xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asTabValidity>
        <asTimes xmlns="http://tempuri.org/">
          <ArrayOfString>
            <s>string</s>
            <s>string</s>
          </ArrayOfString>
          <ArrayOfString>
            <s>string</s>
            <s>string</s>
          </ArrayOfString>
        </asTimes>
        <aoAltDirections 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>
          <oStation dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oStation>
          <oTo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTo>
        </aoAltDirections>
        <aoAltDirections 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>
          <oStation dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oStation>
          <oTo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTo>
        </aoAltDirections>
      </ZJRBuildResult>
      <iStationIndex>int</iStationIndex>
    </ZJRBuildResponse>
  </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>
    <ZJRBuild xmlns="http://ttws.chaps.cz/TT">
      <sSessionID>string</sSessionID>
      <sUserDesc>string</sUserDesc>
      <sCombID>string</sCombID>
      <sSubstID>string</sSubstID>
      <iTTIndex>int</iTTIndex>
      <aiTypeID>
        <int>int</int>
        <int>int</int>
      </aiTypeID>
      <iTrain>int</iTrain>
      <iFrom>int</iFrom>
      <iTo>int</iTo>
      <sDate>string</sDate>
      <bWholeWeek>boolean</bWholeWeek>
      <sStation>string</sStation>
      <iStationIndex>int</iStationIndex>
      <bPrefereBack>boolean</bPrefereBack>
      <iMaxTimes>int</iMaxTimes>
      <bSkipRemCheck>boolean</bSkipRemCheck>
      <iTTDetails>long</iTTDetails>
      <iLang>int</iLang>
    </ZJRBuild>
  </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>
    <ZJRBuildResponse xmlns="http://ttws.chaps.cz/TT">
      <ZJRBuildResult iMinHour="int" iTrainUsed="int" bExclusion="boolean" iMaxHour="int" sValidFromTo="string" bIsBack="boolean" dtSearchDate="date" aiStRemarks="" aiStDist="">
        <aoStations xmlns="http://tempuri.org/">
          <StationInfo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </StationInfo>
          <StationInfo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </StationInfo>
        </aoStations>
        <asStZones xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asStZones>
        <acStRemarksAbbr xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </acStRemarksAbbr>
        <asStRemarks xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asStRemarks>
        <asRemarksAbbr xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asRemarksAbbr>
        <asRemarks xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asRemarks>
        <oFCLowDeck sText="string" sTTText="string" sDesc="string" sDescExt="string" xmlns="http://tempuri.org/" />
        <asTabValidity xmlns="http://tempuri.org/">
          <s>string</s>
          <s>string</s>
        </asTabValidity>
        <asTimes xmlns="http://tempuri.org/">
          <ArrayOfString>
            <s>string</s>
            <s>string</s>
          </ArrayOfString>
          <ArrayOfString>
            <s>string</s>
            <s>string</s>
          </ArrayOfString>
        </asTimes>
        <aoAltDirections 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>
          <oStation dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oStation>
          <oTo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTo>
        </aoAltDirections>
        <aoAltDirections 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>
          <oStation dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oStation>
          <oTo dblCoorX="double" sInfoFile="string" aiTrTypeID="" dblCoorY="double" iReservKey="int" iStation="int" iTTIndex="int" iKey="int" sName="string">
            <aoFixedCodes xsi:nil="true" />
            <aoFixedCodes xsi:nil="true" />
          </oTo>
        </aoAltDirections>
      </ZJRBuildResult>
      <iStationIndex>int</iStationIndex>
    </ZJRBuildResponse>
  </soap12:Body>
</soap12:Envelope>