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 » Setting Message.Body for a SendMail node

Post new topic  Reply to topic
 Setting Message.Body for a SendMail node « View previous topic :: View next topic » 
Author Message
hmb
PostPosted: Wed Feb 27, 2002 1:58 am    Post subject: Reply with quote

Newbie

Joined: 10 Oct 2001
Posts: 3

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;
Back to top
View user's profile Send private message Send e-mail MSN Messenger
saini
PostPosted: Fri Mar 01, 2002 8:18 am    Post subject: Reply with quote

Novice

Joined: 28 Feb 2002
Posts: 24

Have you tried:

SET OutputRoot.XML.XMLRoot = InputBody;
Back to top
View user's profile Send private message
amigupta1978
PostPosted: Fri Mar 01, 2002 11:24 am    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

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.

Amit
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
hmb
PostPosted: Fri Apr 19, 2002 4:34 am    Post subject: Reply with quote

Newbie

Joined: 10 Oct 2001
Posts: 3

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.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Setting Message.Body for a SendMail node
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.