title: Unable to consume wcf service from wcftestclient
body: <p>I am trying to consume a WCF service by WCF test client. While it is working fine in same machine when my WCF service/host and client are in different machine it is giving error as</p>
  
  <blockquote>
    <p>"Error: Cannot obtain Metadata from <a href="http://10.15.4.116:8000/hello" rel="nofollow">http://10.15.4.116:8000/hello</a> If this is a Windows (R) Communication Foundation service to which you
    have access, please check that you have enabled metadata publishing at the specified address.<br>
    For help enabling metadata publishing, please refer to the MSDN documentation at<br>
    <a href="http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata</a> Exchange Error<br>
    URI: <a href="http://10.15.4.116:8000/hello" rel="nofollow">http://10.15.4.116:8000/hello</a><br>
    Metadata contains a reference that cannot be resolved: 'http://10.15.4.116:8000/hello'.<br>
    Content Type application/soap+xml; charset=utf-8 was not supported by service <a href="http://10.15.4.116:8000/hello" rel="nofollow">http://10.15.4.116:8000/hello</a>. The client and
    service bindings may be mismatched. The remote server returned an
    error: (415) Cannot process the message because the content type
    'application/soap+xml; charset=utf-8' was not the expected type
    'text/xml; charset=utf-8'..HTTP GET Error    URI:
    <a href="http://10.15.4.116:8000/hello" rel="nofollow">http://10.15.4.116:8000/hello</a>    The document at the url
    <a href="http://10.15.4.116:8000/hello" rel="nofollow">http://10.15.4.116:8000/hello</a> was not recognized as a known document
    type.The error message from each known type may help you fix the
    problem:- Report from 'XML Schema' is 'The document format is not
    recognized (the content type is 'text/html; charset=UTF-8').'.- Report
    from 'http://10.15.4.116:8000/hello' is 'The document format is not
    recognized (the content type is 'text/html; charset=UTF-8').'.- Report
    from 'DISCO Document' is 'There was an error downloading
    'http://localhost:8000/hello?disco'.'.  - Unable to connect to the
    remote server  - No connection could be made because the target
    machine actively refused it 127.0.0.1:8000- Report from 'WSDL
    Document' is 'The document format is not recognized (the content type
    is 'text/html; charset=UTF-8').'."</p>
  </blockquote>
  
  <p>Configuration file part of my application is :-</p>
  
  <pre><code>  &lt;configuration&gt;
      &lt;system.serviceModel&gt;
        &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
            &lt;behavior name="SimpleServiceBehavior"&gt;
              &lt;serviceMetadata httpGetEnabled="True" policyVersion="Policy12" /&gt;
            &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
        &lt;/behaviors&gt;
      &lt;/system.serviceModel&gt;
    &lt;/configuration&gt;
  </code></pre>