File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web Services and DIME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services and DIME" Watch "Web Services and DIME" New topic

Web Services and DIME

Lindsay Morsillo

Joined: Jul 17, 2002
Posts: 4
I'm concerned about using a web service to send what amounts to send an array of shorts - about 600,000 to 1M elements.
I've tried this with a straight SOAP encoding, and it was a nightmare.
I've investigated DIME, which would allow me to add the binary data as an attachment to the SOAP message. What support is there now, and what is coming down the pike for DIME attachments?
Ramesh Nagappan
Ranch Hand

Joined: May 06, 2003
Posts: 159
DIME packaging is already part of SOAP 1.2 specifications, which is currently released as "Candidate recommendation". Only few SOAP implementations support DIME. But think about SOAP Interoprability before choosing DIME.

Ramesh Nagappan CISSP<br />Co-Author of "Core Security Patterns"<br /><br /><a href="" target="_blank" rel="nofollow"></a>
Michael Zalewski
Ranch Hand

Joined: Apr 23, 2002
Posts: 168
Another alternative which worked for me.
Put the 1M shorts into a 4M binary file, and put a URL to the file into the SOAP message. It will be pretty easy to code your SOAP implementation to pick up the file.
Or variations on that idea. For example, upload a file to a webserver on the same machine that runs the web service, then give the name of the uploaded file in the SOAP message.
I agree. Here's the link:
subject: Web Services and DIME
It's not a secret anymore!