Author |
Message
|
pg35581 |
Posted: Tue Dec 11, 2007 3:52 am Post subject: can we put message with attachment |
|
|
Novice
Joined: 05 Nov 2007 Posts: 10 Location: India
|
Hi Everyone,
Need one information
can we put a XML message with attachment in to a queue , how the queue
accept the attachment , Attachment can be a .doc file or . jpeg file
Thanks
G.Prashanth |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 11, 2007 3:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
How can an XML document have an attachment?
It might have binary data in the document structure but if the W3C standard on XML includes attachments it's news to me _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pg35581 |
Posted: Tue Dec 11, 2007 4:12 am Post subject: |
|
|
Novice
Joined: 05 Nov 2007 Posts: 10 Location: India
|
Hi
it is like a mail with attachment , mail consist of XML information |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 11, 2007 4:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
But just for the extra clarity, the queue doesn't know or care what the content of the message is - XML, Word document, JPeg, MP3, to the queue it's a message containing data. How the message is coded is between the sending application and the receiving application. If they've agreed a fomat and both use it all's well.
I presume your question comes from using a SOAP format message with an included attachment? Which if you notice is encoded in the SOAP XML as a single document? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pg35581 |
Posted: Tue Dec 11, 2007 4:29 am Post subject: |
|
|
Novice
Joined: 05 Nov 2007 Posts: 10 Location: India
|
Hi jedi,
thanks , i will get back to you |
|
Back to top |
|
 |
JosephGramig |
Posted: Tue Dec 11, 2007 5:11 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
Of course you can do this!
Build the message as SOAP with Attachments (SwA). Basically, the message is a Multi-Part MIME message with the SOAP message as the first part.
WMQ does not care what the message content is but I would be sure to mark it as data and not a string.
It is easy to do using WebSphere Message Broker.
I posted something about how to build MIME messages with broker on this site once... _________________ Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3 |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 11, 2007 11:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
And remember with attachements you have a BytesMessage....  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Nigelg |
Posted: Tue Dec 11, 2007 2:42 pm Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
Look up reference messages... _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
|