|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Insering CDATA in XML messages with ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
lunobili |
Posted: Wed Nov 07, 2001 10:00 am Post subject: |
|
|
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 |
|
 |
Outdesign |
Posted: Thu Nov 08, 2001 4:51 am Post subject: |
|
|
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 |
|
 |
lunobili |
Posted: Thu Nov 08, 2001 5:02 am Post subject: |
|
|
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 |
|
 |
wendy |
Posted: Fri May 16, 2003 4:51 am Post subject: Insering CDATA in XML messages with ESQL |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri May 16, 2003 6:22 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|