I am using .NET client to post mesages on the MX server that is hosted on UNIX . Before the messages, it adds some control characters like
** ^ CD **
The line connection is through the channel connection connection. The code I'm using
MQQueueManager queueManager = New MQQueueManager; En open ocean = mcc MQUUTUtUP + MQCMQOIBIIBIIMIBIMIIFIADID + MQCMMUUUOOF MQQueue Queue = queueManager.AccessQueue ("TestQueue", openOptions); MQMessage queue message = new MQMessage (); QueueMessage.WriteUTF ("& lt; request & gt;"); MQPutMessageOptions MessageOptions = New MQPutMessageOptions (); Queue.text (qi messages, messops);
Please tell me what this particular character is
From IBM itself takes an ActiveX string on its own WriteUTF
:
and writes it in the current state of the UTF format in the message data buffer. The written data contains 2-byte length after the character data If the method is not successful, then the data offset has increased by the length of the string.
If you do not want that length, consider using WriteString
instead (follow that doc link in the above and just in the navigation pane. Some lines go up) ..
Comments
Post a Comment