Discussions

XML & Web services: How to embed Axis into Web application?????

  1. How to embed Axis into Web application????? (1 messages)

    Does any one know how to add axis to web application in tomcat, instead of separate Axis deployment on tomcat.

    Thanks.

    Sithu
  2. Do you meana web service endpoint as another servlet:
    simply add the axis jars to the war and declare an axis servlet:

      <servlet>
        <description>Axis web services servlet</description>
        <display-name>Apache-Axis Servlet</display-name>
        <servlet-name>AxisServlet</servlet-name>
        &ltservlet-class>org.apache.axis.transport.http.AxisServlet&lt/servlet-class>
      </servlet>

    the server-config.xml can just be put in the WEB-INF dir

    There is some fun to be had with the mapping, depending on what you want to do.

    Taking a look at the axis deployment in toe distribution is probably a good start.