aspose file tools*
The moose likes Web Services and the fly likes file to and from web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "file to and from web service" Watch "file to and from web service" New topic
Author

file to and from web service

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
I want to make a web app that will then call a web service to spell check document and the web service will returned the spell checked file to the web app to be presented to user in jsp. So I'm thinking of uploading file from user's PC to web app server and then the web app server will send the file to web service server. and then web service server will return yet another file (spell checked). My question here,
1. is this good practice? sending around files like this
2. if it's good practice, how do I send the file (in what format)? bytestream, outputstream, or as java.io.File, or what?
3. can anybody give link to code for this particular task? preferrably the ones using only java library, not third party library. but third party is fine.
4. do I send it as attachment, or just put the xml objects in the soap message body?
thanks
Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
can anybody please help with this issue? thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file to and from web service