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 » WebSphere Message Broker (ACE) Support » Insering CDATA in XML messages with ESQL

Post new topic  Reply to topic
 Insering CDATA in XML messages with ESQL « View previous topic :: View next topic » 
Author Message
lunobili
PostPosted: Wed Nov 07, 2001 10:00 am    Post subject: Reply with quote

Novice

Joined: 06 Nov 2001
Posts: 17

Hi everybody, I'm trying to have MQSI building the following message:
<?xml version="1.0" standalone="yes"?><WfMessage><ProcessTemplateCreateAndStartInstance><ProcTemplName>SIA</ProcTemplName><ProcInstName>111d111111d111111f1111111111111f11111f3111111111</ProcInstName><ProcInstInputData><SiaXmlHub><Testa><![CDATA[<Mittente/><DataCreazione>151001</DataCreazione><TipoRichiesta>Bonifico_Logistica</TipoRichiesta>]]></Testa></SiaXmlHub></ProcInstInputData></ProcessTemplateCreateAndStartInstance></WfMessage>
which is the correct ESQL statement to acive this?
What I'm trying to do is to pass to WorkFlow some XML which doesn't neet to be read within WorkFlow but must be passed as it is. Any suggestion would be greatly appreciated.
Thanks in advance, Luca.
Back to top
View user's profile Send private message
Outdesign
PostPosted: Thu Nov 08, 2001 4:51 am    Post subject: Reply with quote

Apprentice

Joined: 16 Sep 2001
Posts: 38
Location: Hampshire, UK

Luca,

-- Compute node ESQL

SET OutputRoot.XML.(XML.XmlDecl) = '';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Standalone) = 'yes';

SET OutputRoot.XML.WfMessage.ProcessTemplateCreateAndStartInstance.ProcInstInputData.SiaXmlHub.Testa.(XML.CDataSection) =
'<Mittente/><DataCreazione>151001</DataCreazione><TipoRichiesta>Bonifico_Logistica</TipoRichiesta>';

-- Output message created

<?xml version="1.0" standalone="yes"?>
<WfMessage>
<ProcessTemplateCreateAndStartInstance>
<ProcInstInputData>
<SiaXmlHub>
<Testa><![CDATA[<Mittente/><DataCreazione>151001</DataCreazione><TipoRichiesta>Bonifico_Logistica</TipoRichiesta>]]>
</Testa>
</SiaXmlHub>
</ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>


Note, the following type of statement will not work because the rhs of
the SET needs to be a character string :

SET OutputRoot.XML.Test.(XML.CDataSection) = InputRoot.XML.MyMsg;

You have to use an explicit character string on the rhs of the SET :

SET OutputRoot.XML.Test.(XML.CDataSection) = '<MyMsg><F1>some data</F1></MyMsg>';
Back to top
View user's profile Send private message Visit poster's website
lunobili
PostPosted: Thu Nov 08, 2001 5:02 am    Post subject: Reply with quote

Novice

Joined: 06 Nov 2001
Posts: 17

Thank you so much for the reply, it is a step forward, but I actually have to put in the CDATA section some dinamic created XML. Does anybody has some suggestion on how to do it?

Thanks, Luca.
Back to top
View user's profile Send private message
wendy
PostPosted: Fri May 16, 2003 4:51 am    Post subject: Insering CDATA in XML messages with ESQL Reply with quote

Apprentice

Joined: 10 Dec 2001
Posts: 47

I am having the same problem.Does anyone know how to insert an XML message as a CDataSection dynamically.


Please help ASAP.


Regards,


Wendy
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri May 16, 2003 6:22 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Code:
SET OutputRoot.XML.Test.(XML.CDataSection) = InputRoot.XML.MyMsg;


changes to
Code:
SET OutputRoot.XML.Test.(XML.CDataSection) = ASBITSTREAM(InputRoot.XML.MyMsg);
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 » WebSphere Message Broker (ACE) Support » Insering CDATA in XML messages with ESQL
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.