title: WCFTestClient The HTTP request is unauthorized with client authentication scheme 'Anonymous'
body: <p>I've created one WCF service and deployed it on Server. When I browse this service it gives me positive response with ?wsdl URL. Now I'm trying to test the service through WCF Test client. It shows proper metadata. But when I try to invoke any of the method from the service it shows me an exception... here are the erro details with stack trace..</p>
  
  <blockquote>
    <p>The HTTP request is unauthorized with
    client authentication scheme
    'Anonymous'. The authentication header
    received from the server was
    'Negotiate,NTLM'.</p>
  </blockquote>
  
  <p>Server stack trace: </p>
  
  <blockquote>
    <p>at<br>
    System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest
    request, HttpWebResponse response,
    WebException responseException,
    HttpChannelFactory factory)<br>
    The HTTP request is unauthorized with client
    authentication scheme 'Anonymous'. The
    authentication header received from
    the server was 'Negotiate,NTLM'.</p>
  </blockquote>
  
  <p>Server stack trace: </p>
  
  <blockquote>
    <p>at<br>
    System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest
    request, HttpWebResponse response,
    WebException responseException,
    HttpChannelFactory factory)</p>
  </blockquote>
  
  <p>Client Bindings:</p>
  
  <pre><code>&lt;bindings&gt;
      &lt;wsHttpBinding&gt;
          &lt;binding name="WSHttpBinding_IServiceMagicService" closeTimeout="00:01:00"
              openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
              bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
              messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
              allowCookies="false"&gt;
              &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                  maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
              &lt;reliableSession ordered="true" inactivityTimeout="00:10:00"
                  enabled="false" /&gt;
              &lt;security mode="None"&gt;
                  &lt;transport clientCredentialType="Windows" proxyCredentialType="None"
                      realm="" /&gt;
                  &lt;message clientCredentialType="Windows" negotiateServiceCredential="true"
                      establishSecurityContext="true" /&gt;
              &lt;/security&gt;
          &lt;/binding&gt;
      &lt;/wsHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>Server Bindings:</p>
  
  <pre><code>&lt;bindings&gt;
    &lt;wsHttpBinding&gt;
      &lt;binding name="WSHttpBinding_SEOService" closeTimeout="00:10:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="true" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="999524288" maxReceivedMessageSize="655360000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"&gt;
        &lt;readerQuotas maxDepth="32" maxStringContentLength="900000" maxArrayLength="900000" maxBytesPerRead="900000" maxNameTableCharCount="900000" /&gt;
        &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt;
        &lt;security mode="None"&gt;
          &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /&gt;
          &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
      &lt;binding name="WSHttpServiceMagicBinding" closeTimeout="00:10:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="true" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="999524288" maxReceivedMessageSize="655360000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"&gt;
        &lt;readerQuotas maxDepth="32" maxStringContentLength="900000" maxArrayLength="900000" maxBytesPerRead="900000" maxNameTableCharCount="900000"/&gt;
        &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/&gt;
        &lt;security mode="None"&gt;
          &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/&gt;
          &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>Client's Client Section:</p>
  
  <pre><code>&lt;client&gt;
      &lt;endpoint address="http://hydwebd02.solutions.com/GeoService.Saveology.com/ServiceMagicService.svc"
          binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IServiceMagicService"
          contract="IServiceMagicService" name="WSHttpBinding_IServiceMagicService" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>Server's Services Section:</p>
  
  <pre><code>&lt;services&gt;
      &lt;service behaviorConfiguration="GeoService.Saveology.com.CityStateServiceProviderBehavior"
      name="GeoService.Saveology.com.CityStateServiceProvider"&gt;
      &lt;endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_SEOService"
          contract="SEO.Common.ServiceContract.ICityStateService" /&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
          contract="IMetadataExchange" /&gt;
      &lt;/service&gt;
      &lt;service behaviorConfiguration="GeoService.Saveology.com.ServiceMagicServiceProviderBehavior"
      name="GeoService.Saveology.com.ServiceMagicServiceProvider"&gt;
      &lt;endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpServiceMagicBinding" 
          contract="SEO.Common.ServiceContract.IServiceMagicService"&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" /&gt;
      &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>