Author |
Message
|
achocks |
Posted: Thu Feb 16, 2012 2:03 pm Post subject: Sending Attachments through WMB |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
WMB Guru's,
Need your help and advise in sending an Attachment through the WMB..
As far I as read, it looks like I can use SwA node (SOAP with Attachment). But I am having difficulty understanding the whole concept of an attachment (let us say an image) routing through the broker. If so is there is any limitation of size what WMB can handle?
Also can the image go through if I use MQ protocal? Any direction or explanation of how attachments works would be greatly appreciated.
Thanks in advance. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 16, 2012 2:10 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Soap With Attachments uses the MIME standard to create an MIME document that consists of multiple MIME parts, and this MIME document is then streamed over HTTP. (or JMS)
MIME is the same thing that is used to describe email messages.
You can indeed put a MIME message into an MQ message. It would then be subject to the limit of 100MB that exists for each individual MQ message. |
|
Back to top |
|
 |
achocks |
Posted: Thu Feb 16, 2012 2:14 pm Post subject: Thanks! |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Thanks MQJeff.
Is there any documentation you can direct me to or code samples I can look at? |
|
Back to top |
|
 |
achocks |
Posted: Thu Feb 16, 2012 2:55 pm Post subject: Clarification |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Just a clarification - I do not want to send an email attachment. I want to send the image attachment in the SOAP / HTTP reply back to the requestor.
Please let me know how to proceed.
Thanks for your help! |
|
Back to top |
|
 |
mqsiuser |
Posted: Fri Feb 17, 2012 3:25 am Post subject: Re: Clarification |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
achocks wrote: |
Just a clarification - I do not want to send an email attachment. I want to send the image attachment in the SOAP / HTTP reply back to the requestor.
Please let me know how to proceed.
Thanks for your help! |
MIME once (~30/40 years ago) was the attachment process for eMail (only). Then the web (basically) also picked (or just used(?)) MIME when it came along in 1991. So it is called Mail (eMail) - "Multi purpose Mail extensions" I guess you can say "for historical reasons".
If you can use MIME with web-services then that is a good idea, because eMail(-Clients) and Web(-Clients), e.g. Web-Browsers like IE and Firefox, also understand it. You can likely use this to your advantage during development. Also MIME is mature and proven!
As an alternative there is MTOM. Anybody else's comments/corrections are welcome, esp. when you have a lot of practical experiences with WebServices-Attachments !
There certainly are other methods. Though this is not web services: The file-Adapter from WBI-Framework has also capabilites to read in binary data (into a blob(-field)) and write it out into a file.
mqjeff wrote: |
You can indeed put a MIME message into an MQ message. It would then be subject to the limit of 100MB that exists for each individual MQ message. |
The execgroups are also limited! With Messages that go close to 100 MB this can be an issue! Check the forum here for details if this is relevant for you. _________________ Just use REFERENCEs |
|
Back to top |
|
 |
|