JDK 6 WebServices seem to be pretty cool.
According to the JDK 6 Web Services tutorials, it is possible to publish web services in a "built-in lightweight container" that is a standard in JDK 6. However, I could not find the way to publish my JDK 6 WebService in tomcat. Is there any way to do it?
JAX-WS has a servlet to support webservice.
MOst if not all of the new containers have or will support the GlassFish reference implementation for JAX-WS web services. The RI includes a listener servlet defined in the web.xml and you supply the URI mapping. There is also a sun-jaxws.xml that maps the URI to the annotated class.
This is very much like Struts MVC pattern. The GlassFish documentation will walk you through the setup on Tomcat and a sample application.
Best of Luck!!!!
i had lots of issues with JAX-WS but found solutions using axis2, which i have blogged here: