码迷,mamicode.com
首页 > Web开发 > 详细

Axis2 Web Service Development & Deployment Guide

时间:2019-04-29 12:12:42      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:down   cat   nic   web   eid   poi   bsp   tomcat   archive   

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\

转载自: Technical Repository

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

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

Axis2 Web Service Development & Deployment Guide

标签:down   cat   nic   web   eid   poi   bsp   tomcat   archive   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!