Axis2 Web Service Development & Deployment Guide

Menu:

  • Requirement
  • Development - Client Generation
  • Development - Server Generation
  • References

Requirement

  • Apache Axis 2 1.5.6 (and above)  下载地址:http://archive.apache.org/dist/axis/axis2/java/core/1.6.1/axis2-1.6.1-bin.zip
  • Apache Tomcat 6 (and above)
  • Apache Ant 1.8.3 (and above)
  • Java JDK 1.5 (and above)
  • WSDL

Development - Client Generation

  1. in folder:Create a folder as clientSide under C:\
  2. in cmd:Now open a cmd
  3. in cmd:Change your path to C:\axis2-1.5.6\bin
  4. in cmd:Set your JAVA_HOME to your java SDK home (eg : set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_33)
  5. in cmd:Enter: wsdl2java.bat -uri CBS-CustAcctListProfile-I-Concrete_HTTP.wsdl -u -o c:\clientSide
  6. in folder:The commend above will generate the client side java files under C:\clientSide
  7. in folder:Go to C:\clientSide in windows explorer and open the build.xml file
  8. in build.xml file:Change memoryMaximumSize="256m" memoryInitialSize="256m" to memoryMaximumSize="512m" memoryInitialSize="512m"
  9. in build.xml file:Change axis2.home 
  10. in build.xml file:Change <jar destfile="${lib}/${name}-test-client.jar"> to <jar destfile="${lib}/appropriatename-client.jar">
  11. Appropriate
    name depends on the service, example for CBS-CustAcctDetails-I
    appropriate name for the jar would be cbs-CustAcctDetails-client.jar
  12. in cmd:Open back the existing (or new cmd and set the java), point to the bin folder (eg : C:\apache\apache-ant-1.8.3\bin),enter : ant -f c:\clientSide\build.xml
  13. in folder:The client jar will be created at C:\clientSide\build\lib\

Development - Server Generation

  1. in folder:Create a folder serverSide under C:\
  2. in cmd:Now open cmd
  3. in cmd:Change your path to C:\axis2-1.5.6\bin
  4. in cmd:Set your JAVA_HOME to your java SDK home (eg : set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_33)
  5. in folder:put your WSDL file into:C:\serverSide\build\classes\META-INF
  6. in cmd:Then enter: wsdl2java.bat -uri <filename.wsdl> -ss -sd -o c:\serverSide   (note:filename need to change to your WSDL file name)
  7. in folder:This command will generate server side (service provider) java files under C:\serverSide.
  8. in folder:Go to C:\serverSide in windows explorer and open the build.xml file.
  9. in build.xml file:Change memoryMaximumSize="256m" memoryInitialSize="256m" to memoryMaximumSize="512m" memoryInitialSize="512m"
  10. in build.xml file:Change axis2.home 
  11. in cmd:Open back the existing (or new cmd and set the java), enter : ant -f c:\serverSide\build.xml      (OR:in cmd:Change your path to C:\axis2-1.5.6\bin,enter: ant )
  12. in folder:This will build the java files in C:\serverSide\build\lib\

References

转载自: Technical Repository

原文地址: https://conf-server.hitachi-ebworx.com/pages/viewpage.action?pageId=6848538

如有侵权,请联系作者删除

原文地址:https://www.cnblogs.com/ymjingSpace/p/10789645.html

时间: 2024-11-09 08:16:35

Axis2 Web Service Development & Deployment Guide的相关文章

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

13down votefavorite 6 I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authenticat

[Axis2与Eclipse整合开发Web Service系列之二] Top-Down方式,通过WSDL逆向生成服务端(续)

前言 本篇是承接上一篇: [Axis2与Eclipse整合开发Web Service系列之二] Top-Down方式,通过WSDL逆向生成服务端 在上一篇粗略地介绍了如何使用Top-Down的方式创建一个web service .  但是对于如何部署及调用,以及一些细节的部分基本上没有介绍. 应某些博友的要求, 也适逢自己有空, 接下来就详细介绍一下整个部分如何进行. 环境准备 JDK 肯定要安装了, 这个就不多讲了. 1. eclipse  3.5.2 对eclipse 版本的要求其实不是很严

[web service]axis2免部署实现web service

一.Axis2的下载和安装 1.可从http://ws.apache.org/axis2/ 下载Axis2的最新版本:      可以下载如下两个zip包:      axis2-1.5.4-bin.zip      axis2-1.5.4-war.zip      其中 axis2-1.5.4-bin.zip文件中包含了Axis2中所有的jar文件, axis2-1.5.4-war.zip文件用于将WebService发布到Web容器中. 2.将axis2-1.5.4-war.zip文件解压到

Axis2实现 web service接口开发 + 客户端调用

一. 新建一个web项目, 1.打开axis2.war包,将conf,lib,modules三个文件夹复制到项目的WEB-INF文件夹下,再在WEB-INF目录下新建一个services文件夹,然后在services文件下新建一个文件夹(任意取名): 再新建META-INF文件夹,最后再新增services.xml,接口信息就写在这里面. 具体路径:WEB-INF/services/myservice/META-INF/services.xml 2.配置 web.xml .加载axis2 和 a

Eclipse利用Axis2插件构建Web Service并测试

在学习Web Service的时候,从网上找到前辈的博客http://www.cnblogs.com/hexinlin/p/3358558.html,并依此文的方法按部就班:编写欲发布的java类HelloDemo.java -> 生成.arr文件并发布服务至Tomcat\webapps\axis2\WEB-INF\services\下,且访问http://127.0.0.1:8080/axis2/services/HelloDemo?wsdl成功…但当行至文中步骤“c.生成stub类”,在Ax

使用Axis2创建Web Service

参考地址:http://jingyan.baidu.com/article/ce09321b5546662bff858f21.html 1 下载axis2插件 从官网中下载插件axis2-eclipse-codegen-plugin-1.6.2.zip和axis2-eclipse-service-plugin-1.6.2.zip,解压缩,得到org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar和org.apache.axis2.eclipse.ser

新手Axis2 发布Web Service之路

由于公司的需求,需要写几个银行接口写模拟器(Mock Server),此次接口需要发布成一个WEB Service. 一开始,我以为只要负责写接口的业务层就行了,具体的框架或是环境搭建可以不用管.在与开发沟通完之后,因为本人对Web Service发布也不懂,完全属于没有概念的那种,开发愿意帮忙搭建一个. 在此期间呢,我开始写业务层,把3个接口的业务层花了一天的时间写完了,加了一些数据库查询的方法以及数据库新的字段以满足此次的业务需求. 开发也把WEB Service的一个小Demo做好了,利用

[Axis2与Eclipse整合开发Web Service系列之三] 服务端返回值

前言 在前面的三篇中 [Axis2与Eclipse整合开发Web Service系列之一] 生成Web Service Client(将WSDl 转化成 Java代码) [Axis2与Eclipse整合开发Web Service系列之二] Top-Down方式,通过WSDL逆向生成服务端 [Axis2与Eclipse整合开发Web Service系列之二] Top-Down方式,通过WSDL逆向生成服务端(续) 介绍了如何使用 axis2 与 eclipse 的开发web Service .在第

用Axis2实现Web Service(简单的axis实现)

一.开发环境:Tomcat(下载地址:http://tomcat.apache.org/download-60.cgi).MyEclipse(下载地址:http://www.myeclipseide.cn/),Axis2(下载地址:http://axis.apache.org/axis2/java/core/download.cgi). 二.MyEclipse插件:axis2-eclipse-codegen-wizard.zip(下载地址:http://files.cnblogs.com/sky