Example: Accessing MQCIH header data

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-01-20 10:38
This example shows you how to access MQCIH header data in a message.

Context

The following information tells you about accessing the MQCIH header data within an inbound message.

Requirements

The message must contain valid MQCIH header data.

Basic flow of events

  1. The MQExport receives an inbound MQ request message, or the MQImport receives an inbound MQ response message. The message contains an MQCIH header.
  2. The MQExport or MQImport uses the MQCIH header data binding to parse the message, and propagates the data into the SCA MQHeader.
  3. Within a mediation, the MQCIH header data can be obtained from the MQHeader. The MQHeader has a value field, containing the MQCIH structure.

Results

There are several ways the MQCIH header data can be accessed and used from the MQHeader. For example, a user application can use a Message Logger mediation primitive to log the contents of the MQCIH, or use a Set Message Type mediation primitive to set the type of the value field to a MQCIH. A user application can also use a mapping node to copy data from the MQCIH to another field in the same message.