Posted: Fri Jul 06, 2007 5:21 am Post subject: conversion of XML Message to String
Voyager
Joined: 06 Jul 2007 Posts: 85
I am converting XML message to the String like below but am not able to success.
Declare msgblob BLOB;
SET Environment.Variables.TXML6 =InputRoot.XML;
SET msgblob =ASBITSTREAM(Environment.Variables.TXML6 options FolderBitStream);
set Environment.Variables.msgchar = cast (msgblob as char CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
Any suggestions regarding how to convert XML message to String?
Posted: Fri Jul 06, 2007 5:23 am Post subject: Re: conversion of XML Message to String
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
mvs wrote:
I am converting XML message to the String like below but am not able to success.
What goes wrong? Error codes, messages, unexpected results? If so, what error codes, messages or results? _________________ Honesty is the best policy.
Insanity is the best defence.
Posted: Fri Jul 06, 2007 6:04 am Post subject: Conerting XML to String
Voyager
Joined: 06 Jul 2007 Posts: 85
I am not getting any error.
Please find the code and trace results and its not giving any error.
-------------
CALL CopyMessageHeaders();
SET OutputRoot.Properties.MessageSet='JM30L2O002001';
SET OutputRoot.Properties.MessageFormat='XML';
SET OutputRoot.Properties.MessageType ='Envelope';
SET Environment.Variables.TXML6 = InputRoot.BLOB.BLOB;
DECLARE msgblob BLOB;
SET msgblob =ASBITSTREAM(Environment.Variables.TXML6 options FolderBitStream);
set Environment.Variables.msgchar = cast (msgblob as char CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
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