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 ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.