主要内容:

  记录关于Axis2的使用,通过WSDL文件生成Web service的客户端和服务器端的过程.

目录:

  • Requirement(必备工具)
  • Development - Client Generation(生成客户端)
  • Development - Server Generation(生成服务器端)

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\

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

最新文章

  1. Mybatis传多个参数(三种解决方案)
  2. Spring Bean
  3. 开发时建议关闭chrome的缓存[Disable cache(while DevTools open)]
  4. Salesforce 数据清洗
  5. oracle中的函数及其应用
  6. HTML的select控件美化
  7. dom4j增删改查
  8. 手势识别官方教程(2)识别常见手势用GestureDetector+手势回调接口/手势抽象类
  9. DLL模块:C++在VS下创建、调用dll
  10. 5、Java Swing布局管理器(FlowLayout、BorderLayout、CardLayout、BoxLayout、GirdBagLayout 和 GirdLayout)
  11. cassandra.yaml 配置 (非原创,侵删)
  12. codeM美团编程大赛初赛B轮D题
  13. 用Eclipse 搭建一个Maven Spring SpringMVC 项目
  14. [复习]动态dp
  15. IIS7 禁止目录运行脚本
  16. [2017BUAA软工]第零次博客作业
  17. luogu2542 航线规划 (树链剖分)
  18. POJ-3278.CatchThatCow(数字BFS最短路输出)
  19. mysqlbinlog- 处理二进制日志文件的实用工具 学习笔记
  20. 关联更新SQL语句

热门文章

  1. Redis安装部署、Jedis的使用
  2. android 播放视频时切换全屏隐藏状态栏
  3. CWnd::MoveWindow 详解
  4. jsp中路径的写法
  5. [Erlang30]Erlang shell是如何工作的?
  6. Lock 与Monitor 的用法与区别
  7. 「HNOI 2015」实验比较
  8. ActionBarSherlock(一)在Eclipse中如何引入ActionBarSherlock和它的例子?
  9. Deepin personalized transplantation of kali platform tools
  10. java的堆,栈,静态代码区 详解