title: Content Type text/xml; charset=utf-8 was not supported by service
body: <p>I have a problem with a WCF service.
  I have a console application and I need to consume the service without using app.config, so I had to set the endpoint, etc. by code.
  I do have a service reference to the svc, but I can't use the app.config.
  Here's my code:</p>
  
  <pre><code>BasicHttpBinding binding = new BasicHttpBinding();
  
  EndpointAddress address = new EndpointAddress("http://localhost:8731/WcfServicio/MiServicio");
  
  MiServicioClient svc = new MiServicioClient(binding, address);
  object ob = svc.PaisesObtener();
  </code></pre>
  
  <p>At the last line when I do <code>svc.PaisesObtener()</code> I get the error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Content Type text/xml; charset=utf-8 was not supported by service
  http://localhost:8731/WcfServicio/MiServicio.  The client and service bindings may be mismatched.
  </code></pre>