1. Download tomcat, AXIS2, configure server and WebService runtime location
2. New Java project, name WebServiceTest, new class Numberandzero.
3. Enter the source code in the class to determine whether the incoming number is greater than 0, equals 0, or less than 0
PackageTest.webservice; Public classNumberandzero {//determine the relationship between the parameter and the 0 size PublicString Numberoverzero (Doubled) { if(d>0) returnD+ "> 0"; if(d==0) returnd+ "= = 0"; Else returnD+ "< 0"; }}
4. Select the WebServiceTest project, create a new webservice,
5. Click Next
6. Start the server
7. Click the Finish button after launch to see the successful start
8. Eclipse will automatically hit the Web Services Explorer, replicating the WSDL path
9. Open Soapui and create a new soap project.
10. When done, change the D value instead of the question mark and send
11. You can see that you received the answer: 88.0>0
12. Create a new testsuite,testcase and add this request to the TestCase Teststep
13. Adding assertions
Testing the WebService interface with SOAPUI