This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Documents as parameter in web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Documents as parameter in web service" Watch "Documents as parameter in web service" New topic
Author

Documents as parameter in web service

rajat mani
Greenhorn

Joined: Jul 09, 2006
Posts: 21
hi,
thanks for reading this post,

I want to create a webservice that will accept a csv file as parameter, process on it and return the result as a xml or a csv file,

Could anybody help me what is the best technology and approach to solve this,
I searached on net and saw, document based webservice is there and SOAP attachment is there,
i am prettu new to webservice, please help me in the apporach and or any links tutorials examples available on net,
michael warren
Ranch Hand

Joined: Oct 20, 2006
Posts: 50
I've not done this, but I think using attachments would best -
it would be possible pass the CSV inside an XML document in the SOAP body, but would that would require extra work, making it more complicated and slower.

SAAJ is the J2EE API that lets you do SOAP with Attachments (SwA) - search for documention on that.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Documents as parameter in web service
 
Similar Threads
How to download a csv file through java without using input and output streams
using JFileChooser
Want to convert xml to csv format
Help Needed regarding reading the csv file
field mapping