Java (myeclipse) Create WebService and test WebService

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.