---
title: "Axis2和现有项目的集成"
author: "wlh269"
date: "2011-08-11T10:08:45Z"
tags: []
categories: ["编程语言"]
slug: "axis2"
draft: false
lastmod: "2011-08-11T10:08:45Z"
id: 1145358
url: "https://wlh269.iteye.com/blog/1145358"
---

axis2和现有项目集成 1.下载axis2-1.5-war.zip，解压后拷贝axis2/WEB-INF下面的conf和lib到现有项目的WEB-INF下， （注意lib中的jar包不要和现有项目中得冲突） 2.在现有项目WEB-INF下创建目录\\services\\TestService\\META-INF，在其中添加 MANIFEST.MF和services.xml，services.xml中配置有服务类名以及全路径 \[code="xml"] 传输对象 sample.ws.service.ServiceTest \[/code] 3.在现有项目中得web.xml中添加AxisServlet启动配置： \[code="xml"] AxisServlet org.apache.axis2.transport.http.AxisServlet 1 AxisServlet /services/* \[/code] 4.部署情况如下： \[img]http://dl.iteye.com/upload/attachment/534441/7a21093b-6bef-3997-92a5-9eaecfe80ac9.png\[/img]