Capturing WCF request/response messages via Fiddler tool
When developing a WCF service, it is useful to capture the underlying messages of service operations (request and response). There are several different means for capturing service operation messages in WCF service applications.
In this recipe, we will introduce how we can use the Fiddler tool to capture the underlying messages issued by a WCF service (or client proxy) over the HTTP transport protocol.
How to do it...
Fiddler is a free web debugging tool that can help analyze network communication data over the HTTP transport layer such as the message/data issued by Internet Explorer, WinINet components, or .NET WebRequest
components. Here we will demonstrate the detailed steps to use Fiddler to inspect the messages of a locally deployed WCF service application:
Get the Fiddler tool installed on the local machine.
First, we need to install Fiddler on the target machine where we want to capture messages. You can get the Fiddler tool...