|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MIME message help |
« View previous topic :: View next topic » |
Author |
Message
|
special_agent_Queue |
Posted: Thu Jul 27, 2006 10:04 am Post subject: MIME message help |
|
|
 Centurion
Joined: 27 Jul 2006 Posts: 102
|
I am using the v5 broker, and I am trying a create a message with MIME headers and soap with attachment form.
I know that the v5 doesn't support this by itself. I worked around the issue of receiving a MIME message by parsing it as a blob and stripping the MIME headers, and using a RCD to "change" it to xml.
Is there a workaround for creating the MIME headers for an XML out? Or is there a plugin/parser already written for this? Or how would I go about writing a plugin/parser for this?
Thanks |
|
Back to top |
|
 |
special_agent_Queue |
Posted: Mon Jul 31, 2006 8:24 am Post subject: |
|
|
 Centurion
Joined: 27 Jul 2006 Posts: 102
|
hello?
any ideas other than to upgrade to v6?
Thanks! |
|
Back to top |
|
 |
msukup |
Posted: Tue Aug 01, 2006 11:27 am Post subject: |
|
|
Acolyte
Joined: 11 Feb 2002 Posts: 56
|
here is what i would try in version 5 (untested, but i would start here):
look up MimeMessage in this forum, there is some code for creating a MimeMessage in a java compute node or java plug-in in the following post:
http://www.mqseries.net/phpBB2/viewtopic.php?t=29753&highlight=mimemessage
With this as example, you can create MIME headers/etc. Then, instead of transporting MimeMessage in email, you can use the writeTo method of MimeMessage to write to a ByteArrayOutputStream. Once it is in ByteArrayOutputStream, append to Message body as BLOB. Hopefully, the MimeMessage serialized to outputStream will be in correct format. |
|
Back to top |
|
 |
special_agent_Queue |
Posted: Wed Aug 02, 2006 11:24 am Post subject: |
|
|
 Centurion
Joined: 27 Jul 2006 Posts: 102
|
Thanks. I will have to look into that. |
|
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
|
|
|
|