When the UseDefaultCredentials property on an instance of a client proxy class is set to true the client will send the default credentials to enable authentication at the service.
First, try without sending credentials to a service that requires them via Windows authentication. This should fail (if it works properly, see the Note below):
Now try with sending the default credentials:
Output:
NOTE: For this sample to work as intended you must configure the Application directory using the IIS Connection Manager: