I have created an application where i am fetching some data from a webservice,which gives the output in xml form.The url is given by a third person ..now i want to create my own webservice ,which should give me the output into the xml format.
I am totally new in webservice and advance java programming ,but i am quite experienced in core java.
My question is where should i start to learn this , i tried to search some example to create webservice in java but i was not able to get any good tutorial.
It would be appreciated, if any body help me understand the flow of invoking a webservice in java,that how a webservice fetch the data from a database ,and how it works..?
Thanks..
I’m sure you can find a lot of working tutorials to develop your web service. I would recommend you going with REST and mark your methods with @Produce(“application/xml”) if you want to return data in XML format.
Just google smth like RestEasy, JAX-RS, REST with Tomcat etc and I’m sure you will find smth that best suits your needs.
Eg. have a look at netbeans tutorial for generation REST web service for your database tables: http://netbeans.org/kb/docs/websvc/rest.html