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 » attachment's in a XML message

Post new topic  Reply to topic
 attachment's in a XML message « View previous topic :: View next topic » 
Author Message
suri
PostPosted: Tue Aug 03, 2004 1:47 pm    Post subject: attachment's in a XML message Reply with quote

Apprentice

Joined: 16 May 2004
Posts: 39
Location: NewYork

Hi all,
Help please, I have an XML message (Which is an XFDL Form, Is nothing but a XML in the form of Form which can take Attachments, Just like attachments in e-mail) of size 5MB, The schema of the message is It have Header, Body and the attachment inside the body. I am using WBIMB5.
What I am trying to do is, I have to read the information in the Header of message (XML) and write it to a File (which can be viewed in mainframe, at the other end) and add this file as an attachment with in the same message. Is it possible, if so can any one tell me the best way to handle this and will broker handle file I/O operations.

Thanks a lot,
Suri
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Aug 03, 2004 2:53 pm    Post subject: Re: attachment's in a XML message Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

suri wrote:
will broker handle file I/O operations.


Not without a plug-in of some sort.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wooda
PostPosted: Wed Aug 04, 2004 1:32 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

As I understand it XFDL data items (like your attachment) have to be encoded in base64. So you can't even write it directly into a file.
You'll need to decode it before writing it and then write to file.
Neither of these can easily be done using any of the "of the sheld" nodes in the broker.

I think you'll need to write a plugin node to do the decoding of the binary data and the I/O.

What you could do is use the XML domain (or MRM) to parse the XML message. Then extract the base64 encoded binary object and pass that to your plugin. All the plugin will need to do is use a base64 decoding algorhythm and then write to file.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 04, 2004 5:06 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

base64 decoding isn't THAT hard to write in ESQL.

But yeah, do it in a plug-in. You can crib code easier that way.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » attachment's in a XML message
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.