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 Documents as parameter in web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Documents as parameter in web service" Watch "Documents as parameter in web service" New topic

Documents as parameter in web service

rajat mani

Joined: Jul 09, 2006
Posts: 21
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.
I agree. Here's the link:
subject: Documents as parameter in web service
It's not a secret anymore!