Frends.IBMMQ.PutMessage / 2.0.0
Summary
Puts a message on a queue as text or bytes, with control over the character set and over the properties, descriptors and RFH2 headers that travel with it.
Typical use — handing work to mainframe and legacy systems, where the headers often matter as much as the body
Input parameters.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| MessageAsBytes | Boolean |
False |
false |
Content as a byte array (true) or string (false). |
| MessageContentBytes | Byte[] |
– | {72, 101, 108, 108, 111, 32, 70, 114, 101, 110, 100, 115, 33} |
Message content as byte array. |
| MessageContent | String |
– | {72, 101, 108, 108, 111, 32, 70, 114, 101, 110, 100, 115, 33} |
Message content as byte array. |
| CharacterSet | CharacterSet |
UTF8 |
CharacterSet.UTF8 |
Character set for the message. Possible values:
|
| CharacterSetValue | Nullable<Int32> |
– | 1208 |
Character set for the message as an integer code value (CCSID). Can be left empty to use the queue manager default. |
| Properties | MessageProperty[] |
– | [{ "Name": "ReplyToQ", "Value": "DEV.QUEUE.2" }] |
Individual message properties as key-value pairs. Some values are derived and cannot be set explicitly. |
| Descriptors | MessageDescriptorProperty[] |
– | [{ "Name": "Format", "Value": "MQSTR" }] |
Message descriptors (MQMD) as key-value pairs. Some values are derived and cannot be set explicitly. |
| RFH2Headers | RFH2HeaderProperty[] |
– | [{ "Name": "NameValueData", "Value": "TestDataÄÄ" }] |
RFH2 header properties for the message. Can be left empty to use defaults. NB: Only one NameValueData field is allowed. |