• 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



    Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1719084

  • 相关阅读:
    Flask-上传文件和访问上传的文件
    苹果审核加急信
    iTunes Connect 协议更新
    iOS 关于Xcode上的Other linker flags
    cocoaPods
    iOS 支付宝的集成与遇到的问题
    iOS中app在iTunes中更新版本流程
    iOS集成支付宝问题
    iOS 获取键盘下落速度
    iosMD5加密和base64加密
  • 原文地址:https://www.cnblogs.com/cy163/p/1152916.html
Copyright © 2020-2023  润新知