10. Common commands and debugging tools for Axis WebService

Source: Internet
Author: User

When we publish the wsdd service, we will write a command in the dos window. The following also describes several other commands:

 

A,AdminClientCommand

Java org. apache. axis. client. AdminClient c:/deploy. wsdd

In this way, you can use AdminClient to publish a WebService. If you are not familiar with AdminClient parameter information, enter java org. apache. axis. client. AdminClient to view the help information.

Usage: AdminClient [Options] [list | <deployment-descriptor-files>]

 

Processes a set of administration commands.

 

The following Options are available:

 

-L <url> sets the AxisServlet URL

-H

-P <portNumber> sets the AxisServlet port

-S <servletPath> sets the path to the AxisServlet

-F <fileName> specifies that a simple file protocol shocould be used

-U <username> sets the username

-W <password> sets the password

-D sets the debug flag (for instance,-ddd wocould set it

3)

-T <name> sets the transport chain touse

 

Commands:

 

List will list the currently deployed services

Quit will send a quit message to SimpleAxisServer

Passwd value changes the admin password

 

Deployment Descriptor files:

 

<Deployment-descriptor-files> deploys or undeploys Axis components and

Web services described in these files

 

If-l or-h-p-s are not set, the AdminClient will invoke

Http: /localhost: 8080/axis/servlet/AxisServlet

The help information is shown above. If you have downloaded the axis source code, you can check the AdminClient source code to find out what is going on. If the above command cannot find AdminClient, set dirs

 

Java org. apache. axis. client. AdminClient c:/deploy. wsdd-p8081

The above-p8081 sets the port information. The default AdminClient uses port 8080. If your port is changed to another one, you can use-p to set the port.

 

Java org. apache. axis. client. AdminClient

-Lhttp: // localhost: 8080/axiswebProject/services/AdminService deploy. wsdd

You can use-l to specify the url path of your AdminService to publish wsdd. This is very effective.

 

B,Debugging tool, listening for WebService communication information

 

In the dos window, enter:

C: \ SoftWare \ tomcat-5.0.28 \ tomcat-5.0.28 \ webapps \ AxisWebService \ WEB-INF> java-Djava. ext. dirs = lib org. apache. axis. utils. tcpmon

Org. apache. axis. utils. tcpmon is a tool class for port monitoring. It can listen to the WebService communication information of the specified host and port.

 

Enter the port you want to listen to in the listen port, which is the port of the server where the listening port is invalid. That is, the port on which you request the server.

C,View published WebService Information

 

Enter the following in the WebBrowser address bar:

Http: /localhost: 8080/[Project]/servlet/AxisServlet

You can view the published WebService. The Project is your axis web Project.

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.