Two Laptop Bag*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services and DIME" Watch "Web Services and DIME" New topic
Author

Web Services and DIME

Lindsay Morsillo
Greenhorn

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?
Sincerely,
LJM
Ramesh Nagappan
Author
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 />nramesh@post.harvard.edu<br /><a href="http://www.coresecuritypatterns.com" target="_blank" rel="nofollow">www.coresecuritypatterns.com</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: http://aspose.com/file-tools
 
subject: Web Services and DIME
 
Similar Threads
Book Promotion : Hacking Exposed: J2EE and Java
DIME, SOAP-RPC
Urgent SOAP and DIME question
Scrabble... it only takes a minute...
How to use java to invoke an external webservices (soap, soap1.2)?