|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
attachment's in a XML message |
« View previous topic :: View next topic » |
Author |
Message
|
suri |
Posted: Tue Aug 03, 2004 1:47 pm Post subject: attachment's in a XML message |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Aug 03, 2004 2:53 pm Post subject: Re: attachment's in a XML message |
|
|
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 |
|
 |
wooda |
Posted: Wed Aug 04, 2004 1:32 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Aug 04, 2004 5:06 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|