Objective
VS2012 installation slow out of Xiang, borrow time to summarize the first two days first build WebService process.
The entire project requirement is to implement a browser plugin on the client side of Android, and to invoke the WebService function. WebService this side also need to connect the database (later time to summarize), and because I created a Java project, but also with some C # source code, so later may need some integration work. This article only summarizes the process of building webservice. Some bottlenecks were encountered during the period (including restrictions on profile reads for AXIS2 arr files)
Install Eclipse for Java EE
Because you want to build a Web project, choose Eclipse for Java EE. Download directly on the website
Http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junosr2
You can configure the JRE as needed.
Installation configuration Tomcat
Now the newest is tomcat8.0, but I'm using tomcat7.0.
http://tomcat.apache.org/download-70.cgi
Select the appropriate version.
Download the compressed package and put it into your favorite path, mine is D:\work\apache-tomcat-7.0.55
New variable name: catalina_base, variable value: D:\work\apache-tomcat-7.0.55
New variable name: catalina_home, variable value: D:\work\apache-tomcat-7.0.55
Open path, add variable value:%catalina_home%\lib;%catalina_home%\bin
After Setup, double-click Startup in the Tomcat Bin directory and enter http://localhost:8080 in the browser address bar after running. Access to the Tomcat home page indicates that the Tomcat installation was successful.
Click Shutdown to close Tomcat.
Enter "Startup" in the Address bar and start Tomcat again. Successful, the environment variable is configured correctly.
Configuring the Tomcat plugin for Eclipse
Eclipse Tomcat Plugin: http://www.eclipsetotale.com/tomcatPlugin/tomcatPluginV33.zip
Unzip the Tomcatpluginv33.zip, put the extracted files into the eclipse/plugins, restart Eclipse, you can see the Tomcat icon, under Window/perference,
Select Tomcat,tomcat version to select the installation directory for Tomcat in version 7.x,tomcat home. Press Tomcat to launch the icon,
Enter http://localhost:8080/in the browser, you can see the official website. The explanation has been successful.
Installation configuration for Axis2
By the end of configuring Tomcat, we can already publish the Web project through Eclipse.
However, in order to publish webservice that can be called by the client, it is also necessary to pass AXIS2.
Http://apache.etoak.com//axis/axis2/java/core/1.6.2/axis2-1.6.2-bin.zip
Http://apache.etoak.com//axis/axis2/java/core/1.6.2/axis2-1.6.2-war.zip
Extract Axis2-1.6.2-bin.zip to any directory on your computer
After extracting the axis2-1.6.2-war.zip, put it into Tomcat's WebApps directory, reboot Tomcat, and you will find Axis2 folder in WebApps directory.
Enter HTTP://LOCALHOST:8080/AXIS2 in the browser, will find the corresponding page, the description has been successful.
Configuration in Eclipse, the AXIS2 runtime loaded successfully appears, indicating that the load was successful. Download two more plugins: http://apache.etoak.com/axis/axis2/java/core/1.6.2/axis2-eclipse-
Codegen-plugin-1.6.2.zip
Http://mirror.bit.edu.cn/apache/axis/axis2/java/core/1.6.2/axis2-eclipse-service-plugin-1.6.2.zip
After decompression, put it in Eclipse's plugins directory, in Eclipse, File-->new-->others. There's going to be Axis2 wizards.
Establish WebService
Helloworldservice.java is the webservice I used to test. It contains two methods, SayHello and Getage.
Right-click Engineering, File-->new-->other-->axis2 wizards-->axis2 Service archiver
Note Select the classes path for the Web project
Select the helloworldservice you just created and load
Note the output path: Webapps->axis2->web-inf->services under the Tomcat path
Complete.
You can see the arr file under the output path.
Verify
Restart Tomcat. Visit Http://localhost:8080/axis2 to see the webservice you've just provided.
Now WebService has been successfully released. The WebService service on how to invoke the client will be summarized later in this article.
Reference Document: Http://blog.sina.com.cn/s/blog_4979ec3e0101ad80.html