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 » General Discussion » &lt,/&gt etc in message

Post new topic  Reply to topic
 &lt,/&gt etc in message « View previous topic :: View next topic » 
Author Message
mvs
PostPosted: Mon Jul 16, 2007 5:24 am    Post subject: &lt,/&gt etc in message Reply with quote

Voyager

Joined: 06 Jul 2007
Posts: 85

HI All,
I am using the message set with MRM domain.
my flow looks like

InputeNode->ComputeNode->outputnode

I am receiving the input message as XML and converting the XML message to blob and converting to the String. The string assigned to the element in the output message.
after completion of all the process, the message puts into the queue but all the <,> symbols replace the &lt,&gt.

I have read some of the posts, WBIMB adds automatically escape character.
What i understood from post, its possible to remove this using CDATA for XMLNS/XMLNSC domain but not for MRM.

Is there any way to remove this in the MRM domain, if so can u please help me.
Code:

CALL CopyMessageHeaders();
      
SET OutputRoot.Properties.MessageSet='JM30L2O002001';
SET OutputRoot.Properties.MessageFormat='XML';
SEt OutputRoot.Properties.MessageType='Envelope';

 SET Environment.Variables.msgblob = ASBITSTREAM(InputRoot.XML.TXLifeRequest OPTIONS FolderBitStream);
SET Environment.Variables.msgchar = CAST(Environment.Variables.msgblob as char CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);

SET OutputRoot.MRM.soap:Body.RequestTaxYears.node = Environment.Variables.msgchar;



[/code]
Back to top
View user's profile Send private message
pyrus
PostPosted: Fri Jul 20, 2007 6:05 am    Post subject: Re: &lt,/&gt etc in message Reply with quote

Novice

Joined: 20 Jul 2007
Posts: 16
Location: Belgium

You might want to try another message set, maybe make one yourself, you can use much more than MRM.

I am surprised to see this though:
mvs wrote:
SET Environment.Variables.msgblob = ASBITSTREAM(InputRoot.XML.TXLifeRequest OPTIONS FolderBitStream);
SET Environment.Variables.msgchar = CAST(Environment.Variables.msgblob as char CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);


When I try this it says that FolderBitStream can't be used for an MRM

I WANT these escaped characters in a string, I just want an xml to be transformed to a string with escaped characters and I can't seem to get there....

I hope you get somewhere with this so maybe you can help me out.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jul 20, 2007 7:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Please don't use XML domain.

It's not clear how mvs intends the receiving parser to differentiate the "string" XML from the "regular" XML, without using a CDATA section.
_________________
I am *not* the model of the modern major general.
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 » General Discussion » &lt,/&gt etc in message
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.