Deployment of Web service war created using JAX-WS
Joined: Sep 23, 2009
I am beginning to learn jax-ws web services. I have got a hang of the annotations to use, how to create a webservice. however i am very confused regarding the artifacts required for successful web service deployment as a war file.
My question is what are the exact files required for deployment on web service in a war.
And i would also appreciate if it can be elaborated what entries are required on these files.
Joined: Oct 04, 2006
I have no experience with WebLogic, but in GlassFish, which contains the reference implementation (Metro) of JAX-WS, you do not need neither web.xml nor sun-jaxws.xml, you just need an annotated web service endpoint implementation class. Even the artifacts you mention are generated by the server, when the web service is deployed.
Take a look at the following tutorial: http://netbeans.org/kb/docs/websvc/jax-ws.html Some old version of WebLogic also used Metro, I've heard, but I do not know about the newer versions.