aspose file tools*
The moose likes Web Services and the fly likes SOAP with attachment vs RESTful with attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP with attachment vs RESTful with attachment" Watch "SOAP with attachment vs RESTful with attachment" New topic
Author

SOAP with attachment vs RESTful with attachment

J Dig
Greenhorn

Joined: Jun 05, 2009
Posts: 1
Hi,

Did anyone try transferring huge objects (excel data in MBs) through RESTful web services.I know that is achievable through SOAP , but am new to the RESTful approach.It would be great if anyone can let know the recommended approach.

Thanks
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
With the RESTful approach, a big data transfer would become something like a HTTP download. Read a chunk of data you want to transfer and write it to the response, repeat until finished. Note that you do not need to wrap the data if you do not want to.
Adding some optional parameters, like in the example request below, can allow you to select a part of the data to retrieve. This may not be applicable to Excel documents.
http://www.myserver.com/bigdata/somedocuments/1234?start=10&end=45
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP with attachment vs RESTful with attachment