Reprint Address: http://blog.csdn.net/hsfy2012/article/details/46300921
Create and publish your own WebService Tools 1 Install myeclipse 2 Configure Tomcat based on these two tools to create webservice, believe that learning Java is not a stranger to this two tools, well, start to create it.
1. Open MyEclipse
2 menu bar –> file–> new–> Web Service Project Here, we use the JAX-ws approach. JAX-WS is only in Java1.6, the new WebService mode, based on the annotation configuration webservice, very similar to the WebService in ASP, the difficulty has been much lower than the Xfire mode configuration.
Create a UserInfo class
Release WebService
Release WebService complete
Next Configure Tomcat
In the pop-up form, expand MyEclipse->servers–>tomcat
Select JDK
Add a library file to a project right-click Add library file to project
Here, all the steps begin to deploy with the configuration complete
Start Tomcat
Locate the deployment icon in the toolbar
Select Tomcat
Deployment complete, open IE for testing
Creating a Client for testing
Simple webservice created, you can try to correlate with the database
Java (myeclipse) Create WebService and test WebService