Apache Axis2 环境搭配详解

    WebService概念:它可以让一个程序透明的调用互联网程序,不用管具体实现细节,只要WebService公开了服务接口,远程客户端就可以调用服务。Webservice基于HTTP协议,它是分布式应用程序的发展趋势。

    Apache Axis是一个开源的WebSerbive运行引擎,现在拥有1.x和2.x两个版本。本文讲解Axis2.x版本,该版本较Axis1.x版本在体系结构上进行了重写,具有更高的效率、更加模块化也更加面向XML。Axis应该是最早一批SOAP(简单对象访问协议),该协议提供了标准的RPC方法来调用WebService。SOAP、RPC是建立在HTTP请求响应模式上的。

1.环境准备:

IDE:Eclipse3.5

依赖的JAR文件:

www.apache.org(Apache官方网站)上去下载:

a.WebService所需的包,这里我们下载Axis2的1.5.1版本。

Apache Axis2 环境搭配详解 - EugeneHeen - EugeneHeen

b.Jakarta项目下的Ex-Jakarta项目下的HttpComponents子项目的核心JAR包,HttpCore4.1-alpha1的Binary包。

Apache Axis2 环境搭配详解 - EugeneHeen - EugeneHeen

配置Eclipse,Eclipse自带了开发WebService的工具。

打开Eclipse-->点击菜单windows-->Preferences-->WebServices-->Axis2Preferences-->设置Axis2 runtime location为Axis2下载后并解压的核心包的位置:

Apache Axis2 环境搭配详解 - EugeneHeen - EugeneHeen

选择后Eclipse会自动检测包是否正确。如果successfully提示表示设置正确。

2.在Eclipse创建一个WebProject时,点击Configuration的Modify会出现下图界面:

Apache Axis2 环境搭配详解 - EugeneHeen - EugeneHeen

勾选Axis2 Web Services按OK。回到新建WebProject界面,完成项目创建。

创建成功后会发现在WEB-INF文件夹下会多出一个axis2-web的文件夹,这个是Axis2的项目文件夹。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
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 importance of its components. Chapter 3, Axis2 XML Model (AXIOM) - Learn about the heart of a web service framework and learning more about XML processing in Axis2. Chapter 4, Execution Chain - Learn how to extend the core functionality of the framework though handlers. Chapter 5, Deployment Mode - Learn about the new and user friendly deployment model and several ways of deploying a service in Axis2. Chapter 6, Information Model - Learn how Axis2 stores it static and dynamic data and the importance of it. Chapter 7, Writing an Axis2 Service - Learn how to write a simple-complex service using Axis2 and how to deploy it. Chapter 8, Writing an Axis2 Module - Learn how to extend Axis2 core functionality through a self-contained package. Chapter 9, The Client API - Learn how to use Axis2 to invoke other services, available APIs, and how to use them. Chapter 10, Session Management - Go beyond single invocation and learn how to use Axis2 features to provide better and more eficient statefull service. Chapter 11, Developing JAX-WS Web Services - Learn the fundamentals of developing JAXWS based web services, the most popular web service development technology used by Java developers. Chapter 12, Axis2 Clustering - Learn about clustering Apache Axis2, which will allow you to deploy Axis2 in large scale production deployments. Chapter 13, Enterprise Integration Patterns - Learn about some enterprise SOA deployment patterns that make use of the underlying Axis2 clustering infrastructure. Chapter 14, Axis2 Advanced Features and Usage - Go beyond simple features and learn about REST, MTOM, and several other advanced features. Chapter 15, Building a Secure Reliable Web Service - Learn how to use Axis2 and related components to make your service more secure and reliable.
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值