java2wsdl+Axis2+hibernate开发webservice学习(2) -自定义module
来源:互联网 发布:linux java打开excel 编辑:程序博客网 时间:2024/06/05 16:11
接上一篇 java2wsdl+Axis2+hibernate开发webservice学习(1)
一、自定义module
---com.mywebservice.ws.module
---AuditLogModule.java
---AuditInHandler.java
---AuditOutHandler.java
AuditLogModule.java
AuditInHandler.java
AuditOutHandler.java
二、编译并copy build/classes mode文件到WebConten/WEB-INF/modules下,并创建module.xml
---mymodule
---com
---...
---META-INF
---module.xml
三、修改axis2.xml
打开/conf/axis2.xml,增加module的配置:
其中<phase name="auditLogPhase"/> 为自定义的。
四、修改services.xml
增加<module ref="auditLogger"/>
五:deploy工程
以Tomcat为例
六:测试,run the test
OnePassTester.java/@Test testGetUserProfile1()
测试结果:
后台打印信息
--- initializing AuditLogModule
--- AuditInHandler beginning...
--- AuditOutHandler beginning...
- java2wsdl+Axis2+hibernate开发webservice学习(2) -自定义module
- java2wsdl+Axis2+hibernate开发webservice学习(1) - custom header
- java2wsdl+Axis2+hibernate开发webservice学习(3) - 定制soap header
- axis2开发webservice之编写Axis2模块(Module)
- axis2开发webservice之编写Axis2模块(Module)
- axis2开发webservice之编写Axis2模块(Module)
- WebService开发axis1.4 java2wsdl 完备命令
- Hibernate Axis2 Webservice
- Axis2 Eclipse 开发webservice(2)
- java+axis2-1.6.2 webservice接口开发
- myeclipse 10 + Axis2-1.6.2 开发WebService
- Spring + axis2 开发 webservice
- Spring + axis2 开发 webservice
- Axis2开发webservice总结
- axis2 webService开发
- Axis2.x WebService开发
- Axis2.x WebService开发
- Axis2开发webservice总结
- ubuntu10启动window
- 分享一个C#获取网络链接状态的几种方法
- sqlite 中判断某个表是否存在的方法
- Ubuntu 下设置自己的“超级计算机集群”
- perl 正则内插变量
- java2wsdl+Axis2+hibernate开发webservice学习(2) -自定义module
- 一步一步学Linq to sql(九):其它补充
- 如何在vc中编写 WebService
- android横竖屏总结
- Linux Mount NTFS分区造成的权限问题的解决方案
- 让Apache支持cURL
- Task synchronization
- Java字符串跟ASCII码互转
- 获取3d max模型的包围盒