I have a Spring framework based web application running in Tomcat server. Now I need expose some functions as a web service. Question is, in this scenario, what is the easiest way to do this web service ?
Spring WS... Alright. I did some work some time ago on this. Spring WS relies on WSDL for the web service configurations. It also has a lot of config files. Its not easy or difficult. You need to play around with the connectors. Whats your question. Do you want to expose service using Spring WS?.
I haven't tried Spring WS yet, so I cannot say that I have a better alternative.
I just wanted to say that it is possible to install Metro in Tomcat and that you then can develop code-first JAX-WS web services, if you really want to avoid having to deal with a WSDL.
However, to ensure interoperability, you should consider at least examining the WSDL that your code-first web service produces.