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 tool or what is a different way to start the tool?
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.Four Steps to Create First WCF Service For BeginnersDouble-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!
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: