aspose file tools*
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 Spring in Action this week in the Spring 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Documents as parameter in web service