What is WCF Test Client?
WCF Test Client is a debugging tool for WCF services. Those who are not interested in creating a Console application or a website to test the service can use this tool. Using this tool we can test a single service or multiple services. We can also open multiple instances of the tool. MSDN has a good definition of WCF Test Client.
"Windows Communication Foundation (WCF) Test Client (WcfTestClient.exe) is a GUI tool that enables users to input test parameters, submit that input to the service, and view the response that the service sends back. It provides a seamless service testing experience when combined with WCF Service Host.".
How to start the WCF Test Client?
- Open the folder "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" and double-click on WcfTestClient.exe. If you have a 64 bit OS then look in the "Program Files (x86)" folder.

- From the command prompt we can open the tool by passing the service URI as a command argument.

- Another way is, once we create a new WCF Service project and hit F5 to start the debugger, the WCF service will be hosted and the WCF Test Client opens the display.

If we are running the tool directly from a project then the builtin tool will be launched and the service will be added automatically.

But if we are doing it manually, then we must add the service to the client by right-clicking on "My Service Projects" and "Add Service".

Once configured, the tool will list all the methods and configure the info from our service as below, here we list the methods from the article or example given by Dhananjay Kumar.
Double-click on each method; on the right pane we will see the Request and Response tab. The Request tab accepts the various input parameters even with the data type and input parameter name. The Response tab will show the result formatted or in a valid XML format. Let's do a small test by calling the method AddNumbers().

We added some input value above and after clicking on "Invoke" the output is generated even in XML format. The best part of the tool is that also it validates the data types. If I enter an invalid data type then the tool will throw an error.
Anyone looking for a free tool with more features than WCF Text Client, the best one is STORM.
Thank You!

Shantilal SutharPosted Feb 4, 2021, 7:09 AM
I tried with the above steps but it didn't work for me. I get this error: "Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata." A solution to this error will be highly appreciated. Thanks. :-)
alok modiPosted Sep 14, 2018, 6:44 AM
Good work, intelligently explained
SubashPosted Jul 29, 2016, 1:54 AM
Good Tool
Sr KarthigaPosted Jul 7, 2016, 6:55 AM
Nice explanation
Sr KarthigaPosted Jul 7, 2016, 6:55 AM
Good one
Abdul Waheed MohammedPosted Oct 25, 2013, 3:35 AM
Good Article
Mayur GujrathiPosted Jul 8, 2013, 5:53 AM
Sir I have a problem here please help ... http://www.c-sharpcorner.com/Forums/Thread/216896/wcf-service-is-not-running-in-test-client.aspx
Suthish NairPosted Apr 18, 2013, 8:29 AM
Thanks man !
Former memberPosted Apr 17, 2013, 10:20 PM
Nice article