OTA_ErrorRQ
Diese Methode kann zum Testen von FehlerCode unf Format per GET oder POST aufgerufen werden.
OTA_ErrorRQ - Anfrage per GET - REST-API
Diese Anfrage kann ohne Parameter gesendet werden.
GET /ota/api/Error
und erzeugt dann eine Fehlermeldung während der Authentifizierung oder alternativ mit Parameter für ein bestimmtes Hotel.
Verwendete Parameter:
AgentDutyCode(optional, sofern IP WhiteList oder HTTP Basic Auth verwendet wird)HotelCode(mandatory)
Beispiel:
GET /ota/api/Error?AgentDutyCode=1&HotelCode=4
OTA_ErrorRQ - Anfrage per POST
Beispiel: OTA_PingRQ (Request)
and falschen Endpunkt Error (/ota/api/Error gesendet
<?xml version="1.0" encoding="UTF-8"?>
<OTA_PingRQ EchoToken="1" PrimaryLangID="de" Target="Production" TimeStamp="" Version="1.0">
<EchoData>Are you there</EchoData>
</OTA_PingRQ>
Erzeugt eine Fehlermeldung / Response falscher Endpunkt mit den Attributen
@ErrorCode="550"
@ErrorMessage="CustomError - RequestMessage (OTA_PingRQ) and Endpoint (OTA_ErrorRQ) not match.
OTA_ErrorRS - Antwort
Es sollte immer ein <Success/> in der Antwort enthalten sein.
Beispiel ** OTA_ErrorRS** (Response) - mit Fehlermeldung
(siehe Attribute @ErrorCode und @ErrorMessage)
<?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="188d04c25fb620a05c7d2416f208e9ee"
PrimaryLangID="de"
TimeStamp="2022-01-26T13:28:53+01:00"
Target="Production"
Version="1.000"
ErrorCode="100"
ErrorMessage="UnknownError"/>
Beispiel ** OTA_ErrorRS** (Response) - mit Fehlermeldung im besonderen XML Format
(siehe <Errors> und Attribute Error@Code, Error@Type und Error@ShortText)
<?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="b1e7755fe1557e71acfa1297b8899f38"
PrimaryLangID="de"
TimeStamp="2022-01-26T12:05:16+01:00"
Target="Production"
Version="2.0">
<Errors>
<Error
Code="507"
Type="Authentication error"
ShortText="Hotel not found (HotelCode 12345 / AgentDutyCode 1)"/>
</Errors>
</OTA_ErrorRS>