My question is in reference to Ivan's notes (Chapter 9). I'm comparing the setup between generating service and client artifacts from WSDL and the implementing XML Based, Document style WS.
Under section 9.3 "Create WSDL and Generate Service Implementation from XMLSchema", there is no explicit inclusion of WSServletContextListeners and Servlet mapping is not included in web.xml. Also, there is no reference to the usage of sun-jaxws.xml in this case.
But under section 9.4, "XML-Based, Document Style JAX-WS Web Service", there is a reference to the usage of Listeners, Servlet Mappings and the usage of sun-jaxws.xml.
Why there is a difference here? In what way having or not having the listeners configured in web.xml, will have impact on the Web Service.
Dan Drillich wrote:
It's interesting to see that in section 9.3 we see a shell web.xml -
Whereas in section 9.4, we see a full fledged web.xml -
A very good observation!
Section 9.4 has a more complete web.xml deployment descriptor due to the fact that the Metro deployment descriptor, sun-jaxws.xml, is also used in the example.
At that time, I were not able to make the example work without the web.xml deployment descriptor configured as seen in the study notes. This may have changed with GlassFish v3 - I haven't tried.