Friday, March 22, 2019

Test WCF Service by using WCFTestClient.exe

WCFTestClient.exe is GUI tool which is developed by Microsoft to test WCF Service without creating any client application. In WCF test Client tool, you simply pass the input parameters for WCF service and you can view the service response.

There are few steps to use the WCFTestClient.exe and call the WCF Service

              1.       Get WCF Service WSDL URL, if Service is already created .

WCF Order Service:

  

WSDL document:

WCF WSDL


2.       Open Developer Command Prompt for VS 2017 


3.       Type the WCFTestClient and then Enter

Command Prompt

4.       GUI Application – WCF Test Client will be opened

WCF Test Client GUI

5.       Select My Service Projects and  Click on ‘ Add Service’  Option

WCF Test Client


6.       Add Service Popup window will be opened and type the service endpoint URL as address and click OK


WCF Test Client Add Service


Now Service’s methods and signature will be displayed and click on GetData Method

               
WCF Test Client - Add Service


7.       Now pass service input parameter value as 100 and click on Invoke button and you will get “You entered: 100 “as service response.

WCF Test Client Request Response

No comments:

SQL Server - Identify unused indexes

 In this blog, we learn about the index usage information (SYS.DM_DB_INDEX_USAGE_STATS) and analyze the index usage data (USER_SEEKS, USER_S...