您的位置:首页 > 其它

axis2的安装与部署,以及实例下载

2008-04-14 16:12 507 查看
一. axis2的安装与部署

1.下载axis2-1.2.zip并 unzip

2.引入到eclipse并用ant build一下,在dist目录生成axis2.war文件

3.将axis2.war文件放到tomcat下运行。

4。然后再写客户端,比如sapmle\quickstart中的代码

加入bulid.xml,用ant生成StockQuoteService.aar文件

4,然后在Axis2的Administrator page页面默认(username/password)admin/axis2

进入后,点击upload services 上传StockQuoteService.aar就可以了。

5。访问测试:

http://localhost:8080/axis2/services/StockQuoteService/getPrice?symbol=IBM

You will get the following response:

<ns:getPriceResponse><ns:return>42.0</ns:return></ns:getPriceResponse>

注意:

1。程序通过build.xml自动生成.aar文件并copy到web server下的axis2下的services才能访问.

2. Axis2 中,服务部署信息包含在 services.xml 文件

3.

Using the 'Disengage' link, you can disengage the corresponding module as long as the module is not globally engaged (i.e.,

engaged to all the services and operations).

4。

Click on a specific service and it will give you the WSDL file of that particular service.

Axis Data Binding (ADB)

5.

创建一个服务分 4 个步骤:

a. 编写实现代码

b. 用 service.xml 来解释这个服务

c. 创建一个 *.aar 的服务部署包

d. 发布服务

6.附一个web service实例下载

用法:采用build.xml自动生成xXX.aar文件放到web server下的axis2下,运行ant rpc.client,然后就可以在远程访问了。 http://dl2.csdn.net/down4/20070731/31134634141.rar
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1719084
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: