Does anyone know how to set the OutputRoot.XML.Message.Body to be the entire XML message? I'd like to generate an email which contains the whole message. I've tried InputRoot.XML.(XML.tag)indices (indices being the root element of the xml message) but I receive a blank email every time.
The From,To and Subject settings work fine.
My code is as follows in a compute node with the Copy Message Headers radio button on.
-- Email header configuration info --
SET OutputRoot.XML.Message."From" = 'FROM HMB';
SET OutputRoot.XML.Message."To" = 'aperson@hotmail.com'; SET OutputRoot.XML.Message.Subject = 'SUBJECT';
-- Email body information --
SET OutputRoot.XML.Message.Body = InputRoot.XML.(XML.tag)indices;
hi,
U cannot get the whole body of the XML message as a String in the ESQL directly... but if u really wanna do that there is a way out. Just cast ur message as a Bitstream in a Blob object.Reset contents to Blob and in the compute node add a dummy tag of cdata by using the Hex notations like and then reset contents back to XML and get the message back as in the CDATA content. U can see how to change the message to BLOB and convert back in some of more message posted in this forum.
Thanks for the help.
I worked through as far as your explanation in quotes below:
"add a dummy tag of cdata by using the Hex notations like"
This sounds very complicated can you give me an example please? (It's basically the hex bit that I haven't got a clue about)
Many thanks again. I'd never have got this myself.
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