MSMQ Send Message (Magic xpa 3.x)
The MSMQ Send Message program sends a message to a messaging queue. The parameters and return value for the MSMQ Send program are:
|
|
Queue Handle
|
Numeric (18). The numeric value that was returned from the Open program.
|
Message
|
BLOB. Input. Contains the message data, that should be defined as a Rich Edit BLOB.
|
Data type
|
Alpha (1). The valid values are:
-
A: Alpha
-
N: Numeric
-
D: Date – This is really DateTime, which must be in the format of date space time; for example, 31/12/2002 14:39:46
-
L: Logical
-
V: Vector, array of bytes. A Magic xpa vector defined as having a numeric cell of 3
-
B: BLOB, broken down and sent as an array of bytes
-
O: Object, sent as-is
|
Picture
|
Alpha (30). Input optional. Magic xpa picture of the variable, which can be sent using the VarPic function. This parameter is only valid if the Data type parameter is Numeric. In this case, the Picture parameter is mandatory.
|
Transaction Mode
|
Alpha (1). Input. The valid values are:
|
Transaction Handle
|
Numeric (18). Input optional. The numeric value that was returned from the MSMQ Begin Transaction program, which is mandatory when sent within a defined transaction.
|
Correlation Id
|
Vector (array of bytes). Input optional. For Send / Reply implementations. A Magic xpa vector defined as having a numeric cell of 3 and must be a vector of 20 cells.
|
Message Id
|
Vector (array of bytes). Output. A Magic xpa vector defined as having a numeric cell of 3, which results in a vector of 20 cells.
|
Return value
|
Numeric: 0 for success and a negative value for failure.
|
Note:
|
An XML file may be sent as a string.
|