ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQ on Unix adding special chars

Post new topic  Reply to topic
 MQ on Unix adding special chars « View previous topic :: View next topic » 
Author Message
apk007
PostPosted: Mon May 17, 2010 4:49 pm    Post subject: MQ on Unix adding special chars Reply with quote

Apprentice

Joined: 23 Mar 2010
Posts: 25

I am using .net client to post mesages to MQ server which is hosted on Unix. It is added some control character before the messages. Like below
^CD<request>

The Queue connection is through SSL Table channel connection.
The code i am using is
MQQueueManager queueManager = new MQQueueManager ;
int openOptions = MQC.MQOO_OUTPUT + MQC.MQOO_BIND_NOT_FIXED + MQC.MQOO_FAIL_IF_QUIESCING;
MQQueue Queue = queueManager.AccessQueue("TestQueue", openOptions);
MQMessage queueMessage = new MQMessage();
queueMessage.WriteUTF("<request>");

MQPutMessageOptions MessageOptions = new MQPutMessageOptions();
Queue.Put(queueMessage, MessageOptions);

please let me know what cause this special chars
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon May 17, 2010 6:12 pm    Post subject: Re: MQ on Unix adding special chars Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

apk007 wrote:
please let me know what cause this special chars


Your use of the WriteUTF method. It's been discussed in here a few times.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ on Unix adding special chars
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.