I have a web service and I was deploying it on GlassFish. I accessed its wsdl through http://localhost:10697/APIService/APIServiceService?wsdl.
Now I ported the WAR
The way to access a WSDL is not really container specific, it's more WS-stack specific. The WS-stack in GlassFish is Metro (Metro = JAX-WS RI + WSIT). Did you install/deploy Metro or JAX-WS RI on Tomcat? See Metro on Tomcat 6.x or Running JAX-WS Samples with Tomcat 6.x (JAX-WS RI might be enough in your case) for the steps.
Update: You need to declare the WSServlet
in the web.xml
(see Deploying Metro endpoint):
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
WebServicePort
com.sun.xml.ws.transport.http.servlet.WSServlet
1
WebServicePort
/services/*
60
And then in the sun-jaxws.xml
(also packaged in WEB-INF), declare your Service Endpoint Interface (SEI):
And you access the WSDL at:
http://localhost:8080//services/hello?wsdl
A B C D