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 » General IBM MQ Support » can we put message with attachment

Post new topic  Reply to topic
 can we put message with attachment « View previous topic :: View next topic » 
Author Message
pg35581
PostPosted: Tue Dec 11, 2007 3:52 am    Post subject: can we put message with attachment Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Dec 11, 2007 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
pg35581
PostPosted: Tue Dec 11, 2007 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Dec 11, 2007 4:15 am    Post subject: Reply with quote

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
View user's profile Send private message
pg35581
PostPosted: Tue Dec 11, 2007 4:29 am    Post subject: Reply with quote

Novice

Joined: 05 Nov 2007
Posts: 10
Location: India

Hi jedi,

thanks , i will get back to you
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Dec 11, 2007 5:11 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Tue Dec 11, 2007 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Nigelg
PostPosted: Tue Dec 11, 2007 2:42 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Look up reference messages...
_________________
MQSeries.net helps those who help themselves..
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 » General IBM MQ Support » can we put message with attachment
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.