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 » New version of SendMail (IA07)

Post new topic  Reply to topic
 New version of SendMail (IA07) « View previous topic :: View next topic » 
Author Message
Pozzo
PostPosted: Fri Nov 12, 2004 7:52 am    Post subject: New version of SendMail (IA07) Reply with quote

Novice

Joined: 19 Aug 2004
Posts: 16

Hello, I'm trying to install the updated version of IA07 for WBIMBv5. I downloaded the zip file today (Nov 12), but it's contents don't seem to match the pdf on ibm's website (ftp://ftp.software.ibm.com/software/integration/support/supportpacs/individual/ia07.pdf). The documentation in the zip file says version 1.7, while the online documentation says version 1.8 and lists some files that don't appear in the zip file. Am I accessing an earlier version? Here's the link I followed...

http://www-1.ibm.com/support/docview.wss?rs=203&uid=swg24000600&loc=en_US&cs=utf-8&lang=en

Thanks...
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Fri Nov 12, 2004 8:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I got the same versions on both of them.
Try again.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Pozzo
PostPosted: Fri Nov 12, 2004 1:12 pm    Post subject: Reply with quote

Novice

Joined: 19 Aug 2004
Posts: 16

Yes, you're right.

I wonder what I was looking at before.

So, the reason I was updating to the new version was that I was having trouble sending attachments. I receive the email just fine, but not with the attachment I was expecting.

After installing version 1.8 of the node, I still have the same problem. Here's the code from my Compute node that feeds into the SendMail node:

Code:

      SET OutputRoot.XML.Message.To = 'jsfuller77@hotmail.com';
      SET OutputRoot.XML.Message.Subject = 'Attachment Email';
      SET OutputRoot.XML.Message.Body = 'See attached file.';
      SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'text/plain';
      SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'attachment.txt';
      SET OutputRoot.BLOB.BLOB = InputRoot.BLOB.BLOB;


I've also tried:

Code:

      SET OutputRoot.XML.Message.To = 'jsfuller77@hotmail.com';
      SET OutputRoot.XML.Message.Subject = 'Attachment Email';
      SET OutputRoot.XML.Message.Body = 'See attached file.';
      SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'application/octet-stream';
      SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'attachment.txt';
      SET OutputRoot.XML.Message.EncodingBase64.(XML.CDataSection) = Cast(InputRoot.BLOB.BLOB as CHAR);


I get the email with subject and body correct, but no attachment. What's wrong?
Back to top
View user's profile Send private message Send e-mail
vmcgloin
PostPosted: Wed Nov 24, 2004 4:11 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Hi,

When I did this quite a while ago I had to make sure the fields were in the correct order otherwise the attachment was ignored. Here is the end of my 'costruct email' esql

Code:
/* Explicitly copy across the attachment since setting the MailBody to NULL initially means these fields
 * are out of order therefore the Sendmail node ignores the attachment. */
IF ("OutputRoot"."MRM"."MailBase64" IS NOT NULL) THEN      
   -- Declare the dynamic reference
   DECLARE AttachRef REFERENCE TO "OutputRoot"."MRM"."MailBase64";
   -- Move the dynamic reference to the next item in the array
   DETACH AttachRef;
   ATTACH AttachRef TO "OutputRoot"."MRM"."MailBody" AS NEXTSIBLING;
END IF;


Note I was using the MRM and then a RCD node to convert to generic XML but still the field name is different. Is the one you are using valid for the version of the node you have?

HTH,
Vicky
Back to top
View user's profile Send private message
Pozzo
PostPosted: Wed Nov 24, 2004 7:09 am    Post subject: Reply with quote

Novice

Joined: 19 Aug 2004
Posts: 16

Thanks for the reply.

I'm using version 1.8, so the field names are based on the documentation included in that version. I wasn't using a RCD node because the documentation says "The data input for the base64 encoding must be provided in InputRoot.BLOB.BLOB" So I was just setting the XML fields as above and passing the BLOB along. The elements are in the order that the node is expecting, according to the documentation.

After reading your post I tried it with a RCD and got the same result...email but no attachment.

Same or similar problems have gone unanswered here, here and here. Seems like a tough nut to crack!
Back to top
View user's profile Send private message Send e-mail
rkford11
PostPosted: Wed Nov 24, 2004 9:48 am    Post subject: Reply with quote

Partisan

Joined: 06 Jun 2004
Posts: 316

Pozzo wrote:
Thanks for the reply.

I'm using version 1.8, so the field names are based on the documentation included in that version. I wasn't using a RCD node because the documentation says "The data input for the base64 encoding must be provided in InputRoot.BLOB.BLOB" So I was just setting the XML fields as above and passing the BLOB along. The elements are in the order that the node is expecting, according to the documentation.

After reading your post I tried it with a RCD and got the same result...email but no attachment.

Same or similar problems have gone unanswered here, here and here. Seems like a tough nut to crack!


I have the same problem pozzo. Able to receive email but not attachment .
you are correct, seems like a tough nut to crack

Thanks
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Wed Nov 24, 2004 12:20 pm    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Sorry, my point was that the fields need to be in the right order. Can you post a sample trace of your message?
Back to top
View user's profile Send private message
Pozzo
PostPosted: Mon Nov 29, 2004 6:38 am    Post subject: Reply with quote

Novice

Joined: 19 Aug 2004
Posts: 16

Here's the message as it appears on the output queue after the email is sent:

<Message><To>josh.fuller@state.mn.us</To><Subject>Email attachment</Subject><Body>See attached file.</Body><EncodingBase64 ContentType="text/plain" Name="attachmt.txt"/></Message>attachment text

The "attachment text" at the end is the BLOB which is supposed to contain the data to be encoded. I can also put this before the XML...

attachment text<Message><To>josh.fuller@state.mn.us</To><Subject>Email attachment</Subject><Body>See attached file.</Body><EncodingBase64 ContentType="text/plain" Name="attachmt.txt"/></Message>

...it makes no difference to the outcome. Like I said, the XML elements are in the order that the documentation specifies.
Back to top
View user's profile Send private message Send e-mail
vmcgloin
PostPosted: Tue Nov 30, 2004 5:23 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Sorry if this is an obvious question, but it your attachment data a CDATA section within the EncodingBase64 tags?

Maybe your examples were just type in wrong, but they show the attachment text outside the top level xml tags which I would expect the node to ignore or abend with. see the examples in IA07.pdf.
Back to top
View user's profile Send private message
Pozzo
PostPosted: Tue Nov 30, 2004 6:18 am    Post subject: Reply with quote

Novice

Joined: 19 Aug 2004
Posts: 16

I've also tried a CDATA section inside the XML and didn't have any luck, but the way I understand it the new version has the capability to encode whatever is in InputRoot.BLOB.BLOB. Page 22 of ia07.pdf:

Quote:
Encoding done by the plug-in

<Message>
<From>mqsi@nlrg119</From>
<To>Arjan@nlrg119</To>
<Subject>An e-mail with attachment</Subject>
<Body>See attached file: attachment.xml)</Body>
<EncodingBase64 ContentType="text/plain" Name="attachment.xml"/>
</Message>

The data input for the base64 encoding must be provided in InputRoot.BLOB.BLOB


It's unclear if it matters whether the BLOB is "before or after" the XML, but I've tried it both ways.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » New version of SendMail (IA07)
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.