IBM MQ

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

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

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:

  • UTF8: Character set for the message.

  • ISO88591: Character set for the message.

  • WindowsLatin1: Character set for the message.

  • Unicode: Character set for the message.

  • Other: Character set for the message.

  • Automatic: Character set for the message.

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.

An unhandled error has occurred. Reload 🗙