Wednesday, October 26, 2016

Vamsi Rageer's Blog: Using SOAP UI to test your Web Service.

Vamsi Rageer's Blog: Using SOAP UI to test your Web Service.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6962084931129525"
     crossorigin="anonymous"></script>
SoapUI provides an easy way to test your WCF service with the SOAP request. Following are the steps to save your time when trying to use t...

Using SOAP UI to test your Web Service.

SoapUI provides an easy way to test your WCF service with the SOAP request. Following are the steps to save your time when trying to use the SoapUI for your web service.
  
 1. Open SoapUI.
2. Go to File ->  New SOAP Project.
3. Enter a name for the  project.
4. Enter the Initial WSDL. To get the Initial WSDL for your project do the following:
a. In your internet browser, copy and paste the endpoint address of the hosted service.
b. In the page that follows, copy the single file wsdl link and paste it in the Initial WSDL box above.
Note: If you are a developer running the service locally and your source code of the service is also on the same machine, a common mistake is to browse to the wsdl in the source code location on your machine. The wsdl for SoapUI needs to come from the hosted service address and not from the location of the wsdl in the source code.
5. Take all other defaults and click OK.
Result: A new project will be generated with sample SOAP requests for all operations exposed by the service.
6. Double click on the request that you want to test. The window that appears contains the SOAP request in the left side request pane with an empty response pane on the right side.
7. Fill in the sample request with specific test data and submit the request to the service.
8. The Response to the service request will be shown in the response pane on the right hand side.

If you are a developer trying to debug your service, you may set up break points in your service to debug your source code.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6962084931129525"
     crossorigin="anonymous"></script>