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 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "file to and from web service" Watch "file to and from web service" New topic

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, 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?
Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
can anybody please help with this issue? thanks
subject: file to and from web service
Similar Threads
Running web service behind httpd
web service that displays jpg files on html
event propagation from database to app server java component
wrapping a class
jsp as web service client