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

一. 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

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值