本文主要介绍了将Axis2整合到自己的Web应用程序中的过程。
1.将axis2.war发布到%TOMCAT_HOME%\webapps中,发布后的目录为%TOMCAT_HOME%\webapps\axis2
,该目录定义为%AXIS2_HOME%.
2.拷贝%AXIS2_HOME%\WEB-INF目录下所有内容到%MY_APPS%\WEB-INF目录下。
3.修改%MY_APPS%\WEB-INF目录下的web.xml文件,其中需要保留的axis2的配置内容如下:
<!-- Axis2 Service Servlet and servlet mappings -->
<!-- =========================================== -->
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>
org.apache.axis2.transport.http.AxisServlet
</servlet-class>
<load-on-startup>1</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>
<!-- =========================================== -->
4.发布%MY_APPS%应用程序,发布Web Service到%MY_APPS%\WEB-INF\services\下,一般为.aar文件。
5.可以从客户端访问:http://localhost:8080/My_APPS/services/SomeService访问该Web Service.
分享到:
相关推荐
Axis2与Eclipse整合开发的Web Service的服务端
axis2和已有web项目集成方法,axis2和已有web项目集成 axis2.war中的内容作为Web Project的基础, 来进行开发.
Spring整合axis2经典
java web项目和axis2整合文档,其中有详细图解
Chapter 1, Apache Web Services and Axis2 - Gives you an introduction to web services and the web service stack at Apache. Chapter 2, Looking inside Axis2 - Learn about Axis2 architecture and the ...
spring与axis的整合
axis1.3官网web应用,apache官网已经不提供下载了
一、Axis的安装 <br/>应用Axis开发Web Services,你需要安装如下软件: 1.JDK1.4.2或以上 2.http://ws.apache.org/axis/dist/1_1/下载得到 3.一个支持Servlet的服务器引擎,比如广为人知的Tomcat。...
spring3.2.5与axis2 1.6.2整合
axis教程 axis教程 axis教程 axis教程 axis教程
axis2 开发 axis webservice web 服务
也可以自行去 apache官网下载 ,另外还包含一个已经集成了axis2的web工程源码 使用的jdk1.6开发,可以直接把web工程导入到myeclipse,部署到tomcat可运行后,浏览器输入 http://localhost:端口号/Axis2Web/services/...
Axis2与Eclipse整合开发Web Service之一:简单的计算服务例子
web service 使用 axis2 框架使用的插件 必不可少的
axis2_web_1.7.4整合
包括3本Axis2的书(英文),實為2本(第1本有...1.Developing Web Services with Apache CXF and Axis2, 3rd Edition 2.Packt.Publishing.Quickstart.Apache.Axis2 3.Develop Web Services With Apache Axis2 PDF格式
用axis2开发web service,过程比用axis1开发web service简单
MyEclipse+Axis2插件开发Web服务 java axis2 axis webservice axis2 myeclipse 插件
基于AXIS2实现Web Service开发
MyEclipse下开发Web Service(Axis)