十、Axis WebService常用命令和调试工具
2010-12-21 14:27
555 查看
上面我们在发布wsdd服务的时候都会在dos窗口写上一段命令,下面还介绍下其他的几个命令:
A、
AdminClient
命令
java org.apache.axis.client.AdminClient c:/deploy.wsdd
这样就可以用AdminClient发布一个WebService了,如果你对AdminClient的参数信息不是很了解输入:java org.apache.axis.client.AdminClient就可以查看帮助了。
帮助信息如上所示,如果你有下载axis的源码,可以看看AdminClient的源码就知道是怎么回事了。如果上述命令找不到AdminClient,请设置dirs
java org.apache.axis.client.AdminClient c:/deploy.wsdd –p8081
上面的-p8081设置端口信息,默认AdminClient会使用8080端口。当你的端口换成其他的可以用-p设置端口
java org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axiswebProject/services/AdminService deploy.wsdd
通过-l指定你的AdminService的url路径完成发布wsdd,这个很有效
B、
调试工具,监听WebService的通讯信息
在dos窗口输入:
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是一个端口监听的工具类,它可以监听到指定host、port的WebService通信信息
在listen port填写你要监听的端口即可,是监听的端口不实服务器的端口。也就是你请求服务器的端口。
C、
查看发布的WebService服务信息
通过在WebBrowser地址栏输入:
http://localhost:8080/[Project]/servlet/AxisServlet
可以查看你发表过的WebService,Project是你的axis的web工程
作者:hoojo
出处: http://www.cnblogs.com/hoojo/archive/2010/12/20/1911390.html
blog:http://blog.csdn.net/IBM_hoojo
A、
AdminClient
命令
java org.apache.axis.client.AdminClient c:/deploy.wsdd
这样就可以用AdminClient发布一个WebService了,如果你对AdminClient的参数信息不是很了解输入:java org.apache.axis.client.AdminClient就可以查看帮助了。
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<hostName sets the AxisServlet host -p<portNumber> sets the AxisServlet port -s<servletPath> sets the path to the AxisServlet -f<fileName> specifies that a simple file protocol should be used -u<username> sets the username -w<password> sets the password -d sets the debug flag (for instance, -ddd would set it to 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 |
java org.apache.axis.client.AdminClient c:/deploy.wsdd –p8081
上面的-p8081设置端口信息,默认AdminClient会使用8080端口。当你的端口换成其他的可以用-p设置端口
java org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axiswebProject/services/AdminService deploy.wsdd
通过-l指定你的AdminService的url路径完成发布wsdd,这个很有效
B、
调试工具,监听WebService的通讯信息
在dos窗口输入:
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是一个端口监听的工具类,它可以监听到指定host、port的WebService通信信息
在listen port填写你要监听的端口即可,是监听的端口不实服务器的端口。也就是你请求服务器的端口。
C、
查看发布的WebService服务信息
通过在WebBrowser地址栏输入:
http://localhost:8080/[Project]/servlet/AxisServlet
可以查看你发表过的WebService,Project是你的axis的web工程
作者:hoojo
出处: http://www.cnblogs.com/hoojo/archive/2010/12/20/1911390.html
blog:http://blog.csdn.net/IBM_hoojo
相关文章推荐
- 十、Axis WebService常用命令和调试工具
- 十、Axis WebService常用命令和调试工具
- [zz]Linux调试工具strace和gdb常用命令小结
- Windows调试工具入门-5(WinDbg内核调试常用命令)
- java Web Service axis (实例四) 客户端代码生成工具
- Linux调试工具strace和gdb常用命令小结-转
- Linux下常用网络故障调试工具介绍之Tcpdump命令使用
- gdb调试工具常用命令
- Linux调试工具strace和gdb常用命令小结
- Android常用调试命令、工具汇总 (一)命令篇
- Linux web项目部署调试常用命令行
- 基于Linux调试工具strace与gdb的常用命令总结
- WebService调试工具.Net WebService studio
- dbx调试工具,下面介绍一些常用的命令
- Linux调试工具strace和gdb常用命令小结
- Linux调试工具strace和gdb常用命令小结
- Web常用调试工具
- 基于Linux调试工具strace与gdb的常用命令总结
- Linux调试工具strace和gdb常用命令小结
- UTF-8 和 GB2312 编码转换 & 在IE中使用常用Web调试工具 Firebug