iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > HL7 to Application > Step 5 - Handling Unrecognized Messages |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
In the previous section of the tutorial, you noticed that when your server application received a message that did not match any of the message types defined in your VMD file, an exception was thrown and a hex dump of the message was produced. This section discusses how to handle unrecognized messages more gracefully. To handle unrecognized messages, you need to create a default message definition that will match all messages that fail to match any other defined message type. When an unexpected message type appears, it will be classified as 'default', and will be processed by your default message handler. |