Restart
This operation is used to request a refresh of the database. In the answer, SIHOT sends by default a CI or CO message for each room.
If the tag <TOR>
is set to C
, the interface sends a COS
message for each room.
Whether the restart should contain pseudo and event rooms can be set by using the corresponding tags. By default, all rooms are included. By default, only the data of the current hotel is sent.
A restart can be initiated by sending the operation code RS. If this command is sent, we execute these steps:
-
Send ACK on RS
-
In case of sync mode (see Asynchronous data handling).
- Send a CI or CO message – alternatively, COS messages.
- Wait for the answer of this message
- Send the next message
-
Wait for the answer
-
In case of no sync mode
- Send all CI and CO (resp. COS) messages
- Wait for confirmation of all CI and CO (resp. COS) messages
Operationcode: RS
RS
Direction
IF Partner → SIHOT
Message
The interface requests a restart.
<?xml version= "1.0" encoding="ISO-8859-1" ?>
<SIHOT-Document>
<TN>1234</TN>
<OC>RS</OC>
<HN>4711</HN>
</SIHOT-Document>
Attributes Message
Attribute | Denotation | Type |
---|---|---|
OC | Action Type:RS = Restart | String |
TOR | Type of restart | Char |
IPS | Include „pseudo rooms“ | Uns. Int |
IEV | Include event rooms | Uns. Int |
IAH | Include all hotels | Uns. Int |
Response
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>1234</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
Attributes Response
Example
Example 1 - Sync Mode
- The interface requests a restart.
<?xml version= "1.0" encoding="ISO-8859-1" ?>
<SIHOT-Document>
<TN>1234</TN>
<OC>RS</OC>
<HN>4711</HN>
</SIHOT-Document>
- We send the answer to the Restart:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>1234</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
- Now SIHOT starts to send all CI and CO messages and waits after each message for the ACK.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>CI</OC>
<HN>4711</HN>
<PCIID>538</PCIID>
<SN>Berger</SN>
<CN>Joerg</CN>
<GID>471168</GID>
<ARR>2002-05-31T13:20:00</ARR>
<DEP>2002-06-05T11:00:00</DEP>
<LN>DE</LN>
<RN>101</RN>
<SRC>RS</SRC>
<ORG></ORG>
</SIHOT-Document>
- We wait for the answer on
<TN>4770</TN>
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
- Then SIHOT sends the next message.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4771</TN>
<OC>CI</OC>
<HN>4711</HN>
<PCIID>540</PCIID>
<SN>Wendt</SN>
<CN>Lothar</CN>
<GID>471168</GID>
<ARR>2002-05-31T13:20:00</ARR>
<DEP>2002-06-05T11:00:00</DEP>
<LN>DE</LN>
<RN>102</RN>
<SRC>RS</SRC>
<ORG></ORG>
</SIHOT-Document>
- Now we wait for the ACK of this transaction.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4771</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
Example 2 - Non Sync Mode
- The interface requests a restart.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<SIHOT-Document>
<TN>1234</TN>
<OC>RS</OC>
<HN>4711</HN>
</SIHOT-Document>
- We send the answer to the restart:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>1234</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
- Now we start to send all CI and CO messages. This is the first message:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>CI</OC>
<HN>4711</HN>
<PCIID>538</PCIID>
<SN>Berger</SN>
<CN>Joerg</CN>
<GID>471168</GID>
<ARR>2002-05-31T13:20:00</ARR>
<DEP>2002-06-05T11:00:00</DEP>
<LN>DE</LN>
<RN>101</RN>
<SRC>RS</SRC>
<ORG></ORG>
</SIHOT-Document>
- Now we send directly the next message:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4771</TN>
<OC>CI</OC>
<HN>4711</HN>
<PCIID>540</PCIID>
<SN>Wendt</SN>
<CN>Lothar</CN>
<GID>471168</GID>
<ARR>2002-05-31T13:20:00</ARR>
<DEP>2002-06-05T11:00:00</DEP>
<LN>DE</LN>
<RN>200</RN>
<ROOMSIMPLIED>
<RN>201</RN>
<RN>202</RN>
</ROOMSIMPLIED>
<SRC>RS</SRC>
<ORG></ORG>
</SIHOT-Document>
- Now we wait for the ACK of these transactions.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4771</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
Example 3 - No Sync Mode with <TOR>
set to C
- The interface requests a restart with COS records.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<SIHOT-Document>
<TN>1234</TN>
<OC>RS</OC>
<TOR>C</TOR>
<HN>4711</HN>
</SIHOT-Document>
- We send the answer to the Restart:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>1234</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
- Now we start to send all COS messages. This is the first message:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>COS</OC>
<HN>4711</HN>
<PCIID>538</PCIID>
<SALUTATION>Herr</SALUTATION>
<TITLE>Dr.</TITLE>
<SN>Berger</SN>
<CN>Joerg</CN>
<GID>471168</GID>
<CIO> </CIO>
<CIS>Y</CIS>
<ARR>2002-05-31T13:20:00</ARR>
<DEP>2002-06-05T11:00:00</DEP>
<LN>DE</LN>
<RN>101</RN>
<PASSWD/>
<PH0>00101</PH0>
<IF>
<PTV>
<AR0>0</AR0>
<AR1>1</AR1>
<AR2>2</AR2>
<COS>2</COS>
<MSGLIGHT>1</MSGLIGHT>
</PTV>
<PBX>
<DND>0</DND>
<COS>1</COS>
<MSGLIGHT>0</MSGLIGHT>
</PBX>
</IF>
<ORG>disp_4711</ORG>
<SRC>RS</SRC>
</SIHOT-Document>
- Now we send directly the next message:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>COS</OC>
<HN>4711</HN>
<PCIID>538</PCIID>
<SALUTATION>Herr</SALUTATION>
<TITLE>Prof.</TITLE>
<SN>Berger</SN>
<CN>Joerg</CN>
<GID>471188</GID>
<CIO> </CIO>
<CIS>Y</CIS>
<ARR>2008-03-31T13:20:00</ARR>
<DEP>2008-04-05T11:00:00</DEP>
<LN>DE</LN>
<RN>102</RN>
<PASSWD/>
<PH0>00102</PH0>
<PH0>01102</PH0>
<IF>
<PTV>
<AR0>1</AR0>
<AR1>0</AR1>
<AR2>0</AR2>
<COS>1</COS>
<MSGLIGHT>0</MSGLIGHT>
</PTV>
<PBX>
<DND>0</DND>
<COS>1</COS>
<MSGLIGHT>0</MSGLIGHT>
</PBX>
</IF>
<ORG>disp_4711</ORG>
<SRC>RS</SRC>
</SIHOT-Document>
- Now we wait for the ACK of these transactions.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4770</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>
<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
<TN>4771</TN>
<OC>ACK</OC>
<RC>0</RC>
</SIHOT-Document>