WebService development steps: webservice Development
WebService principle or something Baidu has a lot to say, it is nothing more than providing an interface on the server, the client can implement this interface to get what they need.
Now, let's simply use myEclipse to implement the server and client. Step reference for another WebService method: http://www.iteye.com/topic/1135747
Server:
1. Create a Web Service Project
2. Select the New project, right-click New --> Other --> MyEclipse --> Web Service
3. Deploy and release the Tomcat server using myEclipse. Access http: // localhost: 8080/WebService/HelloServicePort in a browser
Access path: http: // localhost: 8080/project name/Service port
If this page is displayed, the release is successful.
This guide is usually provided during deployment because some jar packages are not imported.
In the lib package in the WEB-INF to import the corresponding package, I am relatively lazy to all the imported hahaha, careful students can according to the thrown exception to import the corresponding package.
Client:
1. Create a New client package under the src directory, select the New project, right-click New --> Other --> MyEclipse --> Web Service Client
Wsdl url: the URL must be followed :? Wsdl. Otherwise, an error occurs.
2. automatically generate the corresponding client code
3. Test: Create a Test class.
There are not many codes, mainly steps. Try it yourself. The jar package cannot be uploaded here. You can find it or contact me. If you have any questions, contact QQ: 409169399 (Sky)