Part I: Related download configuration
1. Development environment Eclipse-jee-mars-2-win32-x86_64.zip Http://www.eclipse.org/downloads/index-packages.php
2. Configuring Java JDK Jdk-8u91-windows-x64.exe
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html http://jingyan.baidu.com/ Article/870c6fc33e62bcb03fe4be90.html
New environment variable:
Java_home C:\Program files\java\jdk1.8.0_91
CLASSPATH.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Path Add two:%java_home%\bin;%java_home%\jre\bin
Test whether the Java environment is configured successfully by pressing the Win+r key, enter CMD to bring up the Command control window. Enter: Java-version to see if the version can be displayed.
3. Configuring Tomcat
: Http://mirrors.cnnic.cn/apache/tomcat/tomcat-8/v8.0.36/bin/apache-tomcat-8.0.36.exe
You need to add an environment variable:
Variable name: catalina_home
Variable value: C:\Program files\apache software Foundation\tomcat 8.0
4, download axis2-1.6.2 (official website: http://axis.apache.org/axis2/java/core/)
Link: Http://pan.baidu.com/s/1kUJxSIN Password: n31h
Part II: Configuring Eclipse
1. Associated Tomcat
Window-->preference--->server-->runtime enviroments
(Configuration Installation path: C:\Program Files\apache software Foundation\tomcat 8.0)
2. Association Axis2
(Configuration path: C:\Program files\apache software foundation\axis2-1.6.2)
Note: Axis2.war (file placed in the Tomcat installation directory WebApps directory)
Axis2-eclipse-codegen-plugin-1.6.2.zip Axis2-eclipse-service-plugin-1.6.2.zip extracted and placed in the plugin folder in the Eclipse directory
Part IV construction Project
1, new Java project;
2. New package and Class, add function
3, Packaging for *.aar
File-->new-->other.
Select Axis2 Service Archive
Skip WSDL-->next-->next
Helloservice.aar files can be generated in the output directory
4. Publish to Tomcat
To copy the location of the Helloservice.aar Tomcat installation directory, see figure
The Guaranteed Tomacat service is open.
Browser input Address: http://localhost:8080/axis2/services/listServices
Java Development WebService