Hi All,
I think this is the perfect forum to ask my questions/issues that I am facing and looks like its going to be a long post.So please have patience.I am a
java developer with 4+ years of experience.Basically I was in JSF+EJB development.Now I am into a project wherein I have to develop web services from the scratch and all alone

.It looked interesting,so I agreed to take up the project.Now I know the basics of web services (
SOAP,Rest), when to use which web services etc.I have even consumed a web service before , but this would be the first time that I would be writing the webservice and that too from the scratch.
The requirement is as below :
1.We will have a CSV file with around 5 columns and around 350 rows of data in it.It is located in a unix machine in a directory(say opt/application).
2.The data in the CSV file gets updated every night (through a script).
3.The file is used by another system (say System A).Currently we are manually sharing the updated CSV file everyday via FTP.
Now my requirement is that I need to write a web service which will be used by other system ( System A) , so that we dont have to transfer the file manually.What would be my approach?
I can tell how I am approaching the problem.Please correct me if I am wrong anywhere:
1.I know how to read the CSV file using a external library (POI).
2.I will be able to iterate through the data and convert them into XML or JSON data depending on what other system(System A) is expecting.
3.Expose my web service.
But I do have a couple of questions though :
Our current system is basically a Swing+EJB application deployed in a remote unix machine(Same machine where the CSV file is located)on weblogic 9.2 server.
1.How do I integrate my newly written web service into existing EAR.The EAR is build using
ANT , can I use the same build tool? If yes how?
2.I thought it might be a good idea to use another plain web server(
Tomcat) , just to deploy the web service ,so that I dont have to worry about changing the current build process.Is it a good idea?
3.And since the data is not too much I thought of using REST rather than SOAP.Correct?
Any insight from the you experienced people would be very helpful.
Thanks
Udaya Krishna A