Axis releases WSDL

Source: Internet
Author: User

 

Deploy the axis project first

Copy the project class file to Axis
Start Tomcat

Publish a service under cmd

Create deploy. WSDD under webinf of Tomcat
F:
Cd f: \ Apache Software \ apache-Tomcat-6.0.30 \ webapps \ ffwebservice \ WEB-INF
Java-djava. Ext. dirs = lib org. Apache. axis. Client. adminclient deploy. WSDD
 
Get WEB-INF under Axis \ server-config.wsdd copy to ffwebservice \ WEB-INF
Test
Http: // localhost: 8080/ffwebservice/servlet/axisservlet
Http: // 192.168.11.62: 8080/ffwebservice/services/portalservices? WSDL
 
Click here to obtain the service address, for example, http: // localhost: 8080/ffwebservice/services/portalservices.

 

Cancel service under cmd

Create undeploy. WSDD under webinf
H:
Cd h: \ apachesoftwarefoundation \ apache-Tomcat-6.0.30 \ webapps \ ffwebservice \ WEB-INF
Java-djava. Ext. dirs = lib org. Apache. axis. Client. adminclient undeploy. WSDD

 

 

Web. XML is as follows

<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD WebApplication 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"><web-app>  <display-name>FFCS WebService</display-name>        <listener>        <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class>    </listener>      <servlet>    <servlet-name>AxisServlet</servlet-name>    <display-name>Apache-Axis Servlet</display-name>    <servlet-class>        org.apache.axis.transport.http.AxisServlet    </servlet-class>  </servlet>  <servlet>    <servlet-name>AdminServlet</servlet-name>    <display-name>Axis Admin Servlet</display-name>    <servlet-class>        org.apache.axis.transport.http.AdminServlet    </servlet-class>    <load-on-startup>100</load-on-startup>  </servlet>  <servlet>    <servlet-name>SOAPMonitorService</servlet-name>    <display-name>SOAPMonitorService</display-name>    <servlet-class>        org.apache.axis.monitor.SOAPMonitorService    </servlet-class>    <init-param>      <param-name>SOAPMonitorPort</param-name>      <param-value>5001</param-value>    </init-param>    <load-on-startup>100</load-on-startup>  </servlet>  <servlet-mapping>    <servlet-name>AxisServlet</servlet-name>    <url-pattern>/servlet/AxisServlet</url-pattern>  </servlet-mapping>  <servlet-mapping>    <servlet-name>AxisServlet</servlet-name>    <url-pattern>*.jws</url-pattern>  </servlet-mapping>  <servlet-mapping>    <servlet-name>AxisServlet</servlet-name>    <url-pattern>/services/*</url-pattern>  </servlet-mapping>  <servlet-mapping>    <servlet-name>SOAPMonitorService</servlet-name>    <url-pattern>/SOAPMonitor</url-pattern>  </servlet-mapping> <!-- uncomment this if you want the admin servlet --> <!--  <servlet-mapping>    <servlet-name>AdminServlet</servlet-name>    <url-pattern>/servlet/AdminServlet</url-pattern>  </servlet-mapping> -->    <session-config>        <!-- Default to 5 minute session timeouts -->        <session-timeout>5</session-timeout>    </session-config>    <!-- currently the W3C havent settled on a media type for WSDL;http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft    for now we go with the basic 'it's XML' response -->  <mime-mapping>    <extension>wsdl</extension>     <mime-type>text/xml</mime-type>  </mime-mapping>    <mime-mapping>    <extension>xsd</extension>    <mime-type>text/xml</mime-type>  </mime-mapping>  <welcome-file-list id="WelcomeFileList">    <welcome-file>index.jsp</welcome-file>    <welcome-file>index.html</welcome-file>    <welcome-file>index.jws</welcome-file>  </welcome-file-list></web-app>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.