This program sends a message with a header to a messaging queue. The parameters and return value for the WMQ.SendMessageWithHeader program are:
|
|
Queue Handle
|
Numeric (18). Input. The numeric value that was returned from the WMQ.Open Destination program
|
Message
|
BLOB input, containing the message data.
|
Buffer Identifier index
|
Numeric (4). Input. When this parameter evaluates to zero, the message must be in the BLOB. If it evaluates to greater than zero, the message structure and values are in the memory table, the Buffer Table, and this is the index. For more information, see Buffer Table.
|
Transacted Msg
|
Logical (5). Input. When True, this will be part of a transaction. If there is no open transaction, WebSphere MQ automatically begins one.
|
Message type
|
Numeric (1). Input. The Message Type parameter specifies the message type:
-
0: Message (MQ Datagram)
-
1: Request
-
2: Response
The component sends messages according to the specified Message Type. This parameter is not relevant for Publish.
|
Broadcast This Message
|
Logical (5). Input. If a queue handle is not sent, i.e. zero, this should be True, and then the same message will be sent to all queues that are open for broadcasting. For more information, see the explanation on the Broadcast parameter in the section on the Open program. When the queue handle is sent and this value is True, an error is generated. If a queue handle is not sent and the value is False, an error is also generated.
|
Retain
|
Logical (5). The valid values are:
This parameter is only relevant for Publishing.
|
Correlation ID
|
BLOB. Optional input and output. For input, this parameter specifies a specific Correlation ID. For output, this parameter receives the Correlation ID of the message that was sent. For Publish/Subscribe mode, identifies subscriptions for a specific subscriber in a shared queue. Note: The maximum size is 24 bytes.
|
Message ID
|
BLOB. Optional input and output. For input, this parameter specifies a specific Message ID. For output, this parameter receives the Message ID of the message that was sent. Note: The maximum size is 24 bytes.
|
Reply 2 Queue Manager
|
Alpha (48). Optional input. The name of the Queue Manager where the replies will be sent. This parameter is valid for Request and Publishing messages.
|
Reply 2 Queue Name
|
Alpha (48). Optional input. The name of the queue where the replies should be sent. This parameter is valid for Request and Publishing messages.
|
Message Format
|
Numeric (2). Optional input. This defines the message format as described below:
-
0: No format (default)
-
1: MQ Series performs the conversion (MQSTR)
-
2: Admin (MQADMIN)
-
3: CHANNEL_COMPLETED (MQCHCOM)
-
4: Dead letter header (MQDEAD)
-
5: Trigger (MQTRIG)
-
6: XMIT_Q_Header (MQXMIT)
-
7: RFH2 Header message (MQRFH2)
|
MQMsgHeader
|
BLOB. Optional input. If the message format is 7, the header BLOB must be in the format of an RFH2 structure. To populate the header, use WMQ.SetRFH2Header.
|
GetFromFile
|
Numeric (1). Input/Output: Input values: 0=No, 1=Yes.
When set to Yes, the message BLOB body will hold the file path and the message content will be read by the DLL from the file system.
|
FilePath
|
Alpha (1000). Input. A valid file path.
|