Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » What to specify for "servlet" in the web.xml for a web service: The Implementation or Inte
What to specify for "servlet" in the web.xml for a web service: The Implementation or Inte [message #223297] Thu, 30 October 2008 19:41
Eclipse UserFriend
Originally posted by: les.adventure.com

Assume I have a Interface class and a Implementation class similar to the example below for a web service.

What should I specify in web.xml descriptor for servlet-name and servlet-class?
Is the following correct? Or do I have to replace "myWs" by "myWsImpl" ??

------------ web.xml ------------------------
....
<servlet>
<servlet-name>myWs</servlet-name>
<servlet-class>mytest.myWs</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myWs</servlet-name>
<url-pattern>/myWs</url-pattern>
</servlet-mapping>


-------- myWsImpl.java ----------------------------
@javax.jws.WebService(endpointInterface="callWs.myWs")
public class myWsImpl implements myWs {
....

-------- myWs.java ----------------------------
@WebService(name = "myWs", targetNamespace = "http://mytest.com/")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface myWs {
....
}

Leslie
Previous Topic:Contributing a Web service CLIENT runtime with UI in WTP
Next Topic:Re: How to make Server/Tomcat pick up dynamic properties file in WEB-INF/classes
Goto Forum:
  


Current Time: Tue Mar 19 04:53:45 GMT 2024

Powered by FUDForum. Page generated in 0.02513 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top