Zum Inhalt

OTA_TestRQ

Hierbei handelt es sich um keine offizielle OTA Message!

Diese Methode kann zu Testzwecken per REST-API mittels GET oder per POST aufgerufen werden.

OTA_TestRQ - Anfrage per GET - REST-API

Verwendete Parameter:

  • AgentDutyCode (optional, sofern IP WhiteList oder HTTP Basic Auth verwendet wird)
  • HotelCode (mandatory)

Beispiel:

GET /ota/api/Test?AgentDutyCode=1&HotelCode=4

OTA_TestRQ - Anfrage per POST

Verwendete Attribute:

  • @AgentDutyCode (optional, sofern IP WhiteList oder HTTP Basic Auth verwendet wird)
  • RequestorID@ID (mandatory)

Beispiel OTA_TestRQ (Request)

<?xml version="1.0" encoding="UTF-8"?>
<OTA_TestRQ EchoToken="1" PrimaryLangID="de" Target="Production" TimeStamp="" Version="1.0">
    <POS>
        <Source AgentDutyCode="1">
            <RequestorID ID="4" Type="4"/>
        </Source>
    </POS>
    <EchoData>Are you there and receiving this?</EchoData>
</OTA_TestRQ>

OTA_TestRS - Antwort

In der Response werden keine OTA Standard Attribute verwendet.

Es sollte immer ein <Success/> in der Antwort enthalten sein.

Beispiel OTA_TestRS (Response)

<?xml version="1.0" encoding="UTF-8"?>
<OTA_TestRS xmlns="http://www.opentravel.org/OTA/2003/05" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    EchoToken="7736596b32724c96482ab6958f7e7986" 
    PrimaryLangID="de" 
    TimeStamp="2022-01-26T11:34:41+01:00" 
    Target="Production" 
    Version="1.000">
  <Success/>
  <EchoData>test message</EchoData>
  <TestDateRange dateFrom="2022-01-26" dateTo="2022-01-27">
    <text>OTA test response - using date range (dateFrom - dateTo) from config params</text>
  </TestDateRange>
</OTA_TestRS>

OTA_TestRS - Fehler (Error Response)

In der Response werden im ErrorCode und ErrorMessage evetuelle Probleme ausgegeben.

Hiermit kann auch die korrekte Einstellung AgentDutyCode und HotelCode getestet werden.

Beispiel:

GET /ota/api/Test?AgentDutyCode=1&HotelCode=12345

Erzeugt einen Fehler mit Fehlermeldung:

HotelNotLinked - Hotel (HotelCode 12345) linked to another channel manager (your AgentDutyCode is 1)

Beispiel OTA_TestRS (Response) mit Fehler

<?xml version="1.0" encoding="UTF-8"?>
<OTA_ErrorRS xmlns="http://www.opentravel.org/OTA/2003/05" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             EchoToken="9ead72018c5f2f2cb5de7a5c9d77b2d2" 
             PrimaryLangID="de" 
             TimeStamp="2025-01-16T12:54:43+01:00" 
             Target="Production" 
             Version="2.000" 
             ErrorCode="375" 
             ErrorMessage="HotelNotLinked - Hotel (HotelCode 12345) linked to another channel manager (your AgentDutyCode is 1)"/>