title: SOAP HTTPS Services consume in c#
body: <p>I am trying to consume HTTPS SOAP Service which has credentials to authorise it and get the below error:</p>
  
  <p>An unhandled exception of type 'System.ServiceModel.ProtocolException' occurred in mscorlib.dll</p>
  
  <p>Additional information: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '</p>
  
  <p>Bindings are below. Am I missing anything?</p>
  
  <pre><code>&lt;endpoint address="https://...."
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IInboundService1"
            contract="RQSInboundExternal.IInboundService" name="BasicHttpBinding_IInboundServiceQSPort"&gt;
  
  &lt;basicHttpBinding&gt;              
              &lt;binding name="BasicHttpBinding_IInboundService1" &gt;                  
                &lt;security mode="Transport" &gt;
                 &lt;transport clientCredentialType="Basic"/&gt;                   
                &lt;/security&gt;
              &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
  </code></pre>