|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
<,/> etc in message |
« View previous topic :: View next topic » |
Author |
Message
|
mvs |
Posted: Mon Jul 16, 2007 5:24 am Post subject: <,/> etc in message |
|
|
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 <,>.
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 |
|
 |
pyrus |
Posted: Fri Jul 20, 2007 6:05 am Post subject: Re: <,/> etc in message |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Jul 20, 2007 7:09 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|