Use Of SoapUI

SoapUI is one application where you can see the output of your WSDL.

Let us go step by step and learn SoapUI :

  1. Download Soap UI from the below link and install the software.

  2. Open your Visual Studio and create a simple WCF application.

    WCF application

    Program

  3. Run the created WCF service in browser.

    Browser with

    Browser

    Click on browse.

  4. Click on svcutil.exe.

    Service

  5. Save the opened wsdl in your desktop as .wsdl as your extension.

  6. Now open the SoapUI software.

    Click on New Soap Project

    new soap

  7. Browse and import your WSDL.

    Project

  8. Once the WSDL is imported the operation contract can be seen in the following screenshot,

    contract

  9. Enlarge the Add values method and click on the Request1

    Code

    Wherever input needs to be given the place will be filled with question mark.

    Replace the question mark with your real input.

    Example: Add values method that expects 2 parameter of type Int and returns a integer with the sum of inputs,.

    So, I am giving 5 and 6 as my input.The expected response will be 11

    response

    Example 2: GetEmployee.

    1. Enlarge the GetEmployee
    2. Click on the Request1
    3. Give input parameter 1.
    4. Output will be shown in the response.

    Request1

  10. You can add as many request as you want.

    To add request RT click on the method and select New Request.

    New request

  11. You can also save the project when you open the saved project the values will be preserved.

    So you can check with what values you have executed the WSDL before.


Similar Articles