Friday, May 25, 2007

Can't use DIME attachment method in WSE 3.0

I have been exploring the Amazon Web Services using .Net SOAP, especially the Amazon S3 service. One of the issues with using SOAP (as opposed to REST) is that inline file uploads are limited to 1 megabyte in size. If you want to send larger attachments via SOAP, Amazon supports WSE 2.0's DIME technology.

All other things being equal, I prefer to develop in the latest version of any toolset. Since WSE 3.0 has been released, I was curious to know if I could use DIME from within WSE 3.0 instead of WSE 3.0's MTOM technology. The answer is no. As far as I can determine, in order to use DIME, you must use WSE 2.0.

I hope you find this helpful. Often I have what I believe is a simple question and when I Google for the expected simple answer, all I find is a 10+ page article. While is it nice to have lots of background information, at times it is nice to get a simple answer to a simple question.

Joe Kunk

DIME - Direct Internet Message Encapsulation
MTOM - Message Transmission Optimization Mechanism
WSE - Web Services Enhancements for Microsoft .NET

Amazon Web Services
How to: Add Attachments to a SOAP Message by Using DIME
What's New in WSE Version 3.0