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 » Mailing List and Attachment

Post new topic  Reply to topic Goto page Previous  1, 2
 Mailing List and Attachment « View previous topic :: View next topic » 
Author Message
srailkar
PostPosted: Wed Jun 01, 2005 8:10 am    Post subject: Reply with quote

Apprentice

Joined: 01 Jun 2005
Posts: 37

Here's my esql in the compute node :

DECLARE EFROM CHAR;
SET EFROM = 'sha.railkar@to.com';
DECLARE ESUB CHAR;
SET ESUB = 'An e-mail from OF for validation sent by WBIMB';
SET OutputRoot.XML.Message.From = EFROM;
SET OutputRoot.XML.Message.To = TRIM(InputRoot.XML.MessageHDR.UserValidatoremail);
SET OutputRoot.XML.Message.Subject = ESUB;
DECLARE L INTEGER 1;
DECLARE M INTEGER CARDINALITY(InputRoot.XML.MessageHDR.*[]);
WHILE L < M DO
SET OutputRoot.XML.Message.Body.Line[L] = InputRoot.XML.MessageHDR.*[L];
SET L = L + 1;
END WHILE;
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'text/plain';
SET OutputRoot.XML.Message.EncodingBase64.(XML.CDataSection) = Cast(InputRoot.BLOB.BLOB as CHAR);
END;

I am getting Part of my XML into the body of the email, however, I would like to get all the XML with its elements into the body.


email body output:
http://tempuri.org/InBnd WrkStationHeaderXML.xsd


railkarsh


railkarsh2005052210020045.req


OF


OFREQ


TMM


04709389S


ACTIVE


OFREQ


OFREQ


5


247


C:\railkash\oc\in


vvvvvvvvv


bodej


sha.railkar@to.com


bodej





Guidance appreciated.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed Jun 01, 2005 8:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Your problem, if I understand it, is not a problem with the sendmail plug-in.

It is that you do not understand what
Code:
SET OutputRoot.XML.Message.Body.Line[L] = InputRoot.XML.MessageHDR.*[L];
does.

The output you posted shows that that line is doing exactly what it says it does - and you want something else.

Try searching here for 'ASBITSTREAM'.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
srailkar
PostPosted: Wed Jun 01, 2005 8:48 am    Post subject: Reply with quote

Apprentice

Joined: 01 Jun 2005
Posts: 37

Thanks so much .....It works my code is :
DECLARE myString CHARACTER CAST(ASBITSTREAM(InputRoot.XML OPTIONS RootBitStream) AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
SET OutputRoot.XML.Message.Body = myString;
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'text/plain';
SET OutputRoot.XML.Message.EncodingBase64.(XML.CDataSection) = Cast(InputRoot.BLOB.BLOB as CHAR);



Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mailing List and Attachment
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.