Skip to content

Read Card

If a key card is found, it can be helpful to read the card to get the information about the card details. This message is implemented for this purpose. The Key Card system will return a string (with all relevant information) that is displayed to the user.

Operationcode: RC

RC

Direction

SIHOT.PMS → IF Partner

Message

With this action, we request from the card system to read the card using coding station 2 and to send back the content and rights of the card. This action was created from the workstation with the id disp_4711.

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4815</TN>
  <OC>RC</OC>
  <HN>4711</HN>
  <ORG>disp_4711</ORG>
  <CS>2</CS>
</SIHOT-Document>

Attributes Message

Attribute Denotation Type
OC Action Type:
RC = Read Card
String
HN Hotel number uns. Long
CS Coding Station String
ORG Origin, this is the identifier of the SIHOT workstation that processed this operation. String

Response

In the response, we receive the text that will be displayed on the client with id disp_4711:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SIHOT-Document>
  <TN>4815</TN>
  <OC>ACK</OCK>
  <RC>0</RC>
  <MSG>
    Heinz Meier
    #101 01.01.2002 – 03.02.2002
    AP: 1,4,6
  </MSG>
  <DEST>disp_4711</DEST>
</SIHOT-Document>

Attributes Response

Attribute Denotation Type
OC ACK String
TN Transaction Number uns. Long.
RC Return Code. Here we refer to the content of the MSG tag. uns. Long
MSG Message Text, error message in plain text (optional) String
ORG Origin, this is the identifier of the SIHOT workstation that processed this operation. String

If an operation used the <TN> tag, this tag has also to be returned to the sender. The same applies to the <ORG> tag.