SoapUI Tutorial For Testing Web Service ( REST & SOAP)
![SoapUI Tutorial For Testing Web Service ( REST & SOAP) SoapUI Tutorial For Testing Web Service ( REST & SOAP)](/static/images/webservice.png)
SoapUI Tutorial For Testing Web Service ( REST & SOAP) explains about testing a web service (SOAP based & REST based) using soapUI testing tool
soapUI is a testing tool used for different types of tests, such as functional testing, regression testing, compliance testing, and load testing
soapUI is a cross platform tool, Here we are using soapUI for testing various webservices, By using soapUI you can test both REST and SOAP services
Required Libraries
Required Libraries
Testing SOAP Web Service With soapUI
For testing a SOAP based service (WSDL), Create soapUI Project and add WSDL path to it (see the screenshot & steps below)
Firstly create a soapUI Project (File->New soapUI Project), then provide Project name and WSDL path
Output
You can see on the following screen-shot, we are providing name as 'Rockey' and getting response as 'Hello Rockey'
![Testing SOAP Web Service With SoapUI Output Testing SOAP Web Service With SoapUI Output](/static/images/cxf-wsdl-soapui-ouput.png)
Testing REST Web Service With soapUI
For testing a REST based service (WADL), Create soapUI Project and add WADL path to it (see the screenshot & steps below)
Firstly create a soapUI Project (File->New soapUI Project), then provide Project name and WADL path
Output
You can see on the following screen-shot, we are providing following JSON string as request and getting response as 'Hello Tom'
{"Student":{"name":"Tom"}}
![Testing REST Web Service With SoapUI Output Testing REST Web Service With SoapUI Output](/static/images/cxf-restful-soapui-ouput.png)