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?