|
Verifying Any ACK Message in ChameleonThis example shows you how to verify any ACK message in Chameleon. In this example the ack_verify2.vmd (based on the VMD shipped with Iguana) is used to parse the ACK and ensure that it is a valid ACK HL7 message. When verifying any ACK message, your application should check if the acknowledgment is valid using only the message identity. Since ack_verify2.vmd has "ACK" listed as the message type, this means that your application will expect "ACK" to be the message type of the ACK message from the target machine. The following code example shows how you would typically verify any ACK message in your client application using the dynamic interface.
Load and instantiate a dynamic engine object at the beginning of your application:
Insert the methods below into the CHMclient class:
This is the resulting output:
Since the resulting ACK code is a positive ACK, there will be no error text. |