This tutorial will show you how to test web services using soapUI. With soapUI, you can check your web services project is running (consumable) or not. SoapUI provides a robust set of capabilities to test web services not only during development, but also to test the validity of deployments.
First of all, all you need is :
1. soapUI, get soapUI here.
2. Web services you want to test, it can be WSDL or full application of web services. Relax, you can get web services example at http://www.soatutorial.net/sources/test_web_services_using_soapui.rar. If you want to know the step-by-step of how to create web services, you can visit Web Services Tutorial.
Please follow these steps to test your web services with soapUI :
1. Install soapUI to your computer,
2. Patch the sample web services that you have downloaded to your web server root directory (e.g. public_html), make sure you can access your web services via browser, for example, accessing URL http://localhost:8083/testwebservices/server.php, see figure 1.
3. Open soapUI, see figure 2.
4. Open new soapUI project,
5. Fill Project Name with “Test Web Services Using soapUI” and Initial WADL/WSDL with your WSDL link (e.g. http://localhost:8083/testwebservices/server.php?wsdl), see figure 4,
6. Make a new request service by double click at “addServices“,
7. Fill “id” value and “name” value to <id> and <text> element,
8. Click “Start” button,
9. And finally you can see whether the web services is “consumable” or not,
10. And of course, if the testing is successful, you can invoke the service via PHP application. In the http://www.soatutorial.net/sources/test_web_services_using_soapui.rar file it’s already there (client.php), you can access at http://localhost:8083/testwebservices/client.php and the result should be like this :
For conclusion, it’s a piece of cake to test your web services project, it’s very useful if you want to make sure that the web services you have build is consumable for web services requestor / client. I hope this simple tutorial is useful for you, thanks.