Using the WCF Test Client tool to test a service
When developing a WCF service, we always need to test the service operations frequently during the coding stage. Normally, we can create a console project, generate a WCF client proxy, and invoke the service operations through the proxy class. However, this still seems a bit inconvenient and wastes much time on repeating the proxy generation and client-side invoking code. Fortunately, from WCF 3.5, there comes a useful tool with Visual Studio that can help simplify WCF service testing. This is the WCF Test Client tool.
In this recipe, you will learn how to use the WCF Test Client tool to perform an ad hoc test on WCF services.
How to do it...
The WCF Test Client tool is one of the tools provided by Visual Studio that can be found within the Visual Studio installation folder, such as
C:\Program
Files\Microsoft
Visual
Studio
10.0\Common7\IDE
.
Let’s take a look at the detailed steps to use this tool:
Launch the WCF Test Client tool from the command...