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 » mqmessage.setStringProperty adds dt="string"

Post new topic  Reply to topic
 mqmessage.setStringProperty adds dt="string" « View previous topic :: View next topic » 
Author Message
msarvankmr
PostPosted: Tue Apr 18, 2017 5:55 am    Post subject: mqmessage.setStringProperty adds dt="string" Reply with quote

Newbie

Joined: 18 Apr 2017
Posts: 2

I am new to MQ. I am trying to create and send a RFH2 message. However, after created, the attributes in RFH2 usr folder showing the data type, [dt="string"] which I do not want.

For example, instead of
<DataLength>1034</DataLength>
I got this:
<DataLength dt="string" >1034</DataLength>

Is there anyway to get rid of [dt="string"] in the message that I want to send out?

Or is there any way to that I can set to get rid of [dt="string"] in the message?

I have referred a forum which says this problem will be resolved by writing the RFH properties instead of setting the message properties. As I am new to contact admin me how to set RFH properties from c#?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Apr 18, 2017 6:21 am    Post subject: Re: mqmessage.setStringProperty adds dt="string" Reply with quote

Grand High Poobah

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

msarvankmr wrote:
I am new to MQ. I am trying to create and send a RFH2 message.


Don't.

msarvankmr wrote:
However, after created, the attributes in RFH2 usr folder showing the data type, [dt="string"] which I do not want.


Why not? What problem would that cause? Doesn't change the value.

msarvankmr wrote:
I have referred a forum which says this problem will be resolved by writing the RFH properties instead of setting the message properties.


What problem did you have setting message properties (which are the preferred way of conveying this data in newer versions of MQ)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Apr 18, 2017 6:21 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9392
Location: US: west coast, almost. Otherwise, enroute.

Other than posting here, what research have you done?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Apr 18, 2017 12:11 pm    Post subject: Re: mqmessage.setStringProperty adds dt="string" Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3251
Location: London, ON Canada

msarvankmr wrote:
I am new to MQ. I am trying to create and send a RFH2 message. However, after created, the attributes in RFH2 usr folder showing the data type, [dt="string"] which I do not want.

That is meta-data and leave it alone. "dt" == Data Type. It tells the receiving framework that "1034" should be treated as a "string" because you did:
Code:
sendMsg.setStringProperty("DataLength", "1034");

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » mqmessage.setStringProperty adds dt="string"
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.