(i) WEB Service server development
1. Create a new Web service project, menu new, Web Service project,
2. Create a new Java Bean, which is a normal class, new-Class,
Public string Sayhaha (String Suibian) { return "My little Friends," + Suibian + ", isn't it amazing?" ";}
Adding a method to a class
3. Right click on the Web service project you built earlier, create a new Web service, menu new
Web Service, Web Services, MyEclipse,
(ii) Deployment of Web service services
1. Windows---Show View--Servers, deploying Tomcat
The following two packages must be imported
(iii) WEB service client Development
1. Create a new Web project,
2. Right-click the Web project you built earlier, create a new Web service client, new
Web Service Client, Web Services, MyEclipse, other,
Next go to the next step,
Next go to the next step,
Next enter the next step, and the class that appears after completion
3. Create a new test class to invoke the Hello
Public Static void Main (string[] args) { = "It's time to witness the miracle!" ; New HelloService (); = Hello.gethelloport (); = Delegate.sayhaha (Suibian); System.out.println (fan);}
The output shows the following diagram
Creation and implementation of Web Service under MyEclipse 10