Overview for MQRFH2
Availability
All WebSphere® MQ systems, plus WebSphere MQ MQI clients connected to these systems.
Purpose
The MQRFH2 header
is based on the MQRFH header, but it allows Unicode
strings to be transported without translation, and it can carry numeric
data types.
The MQRFH2 structure defines the
format of the version-2 rules and formatting header. Use this header
to send data that has been encoded using an XML-like syntax. A message
can contain two or more MQRFH2 structures in series,
with user data optionally following the last MQRFH2 structure in the series.
Format name
MQFMT_RF_HEADER_2
Syntax
Character set and encoding
MQRFH2 structure: - Fields other than
NameValueDataare in the character set and encoding given by theCodedCharSetIdandEncodingfields in the header structure that precedesMQRFH2, or by those fields in theMQMDstructure if theMQRFH2is at the start of the application message data.The character set must be one that has single-byte characters for the characters that are valid in queue names.
When
MQGMO_CONVERTis specified on the MQGET call, the queue manager converts the MQRFH2 fields, other thanNameValueData, to the requested character set and encoding. NameValueDatais in the character set given by theNameValueCCSIDfield. Only the listed Unicode character sets are valid forNameValueCCSID; see the description ofNameValueCCSIDfor details.Some character sets have a representation that depends on the encoding. If
NameValueCCSIDis one of these character sets,NameValueDatamust be in the same encoding as the other fields in theMQRFH2.When MQGMO_CONVERT is specified on the
MQGETcall, the queue manager convertsNameValueDatato the requested encoding, but does not change its character set.
