title: Unable to add a Service Reference to a WCF service that is hosted locally
body: <p>I have successfully created my service, I have modified it ever so slightly so that it does a little more than the bog standard "Hello World".</p>
  
  <p>The service compiles and runs and give me the following address to add into my client application:</p>
  
  <p>127.0.0.1:81/Appointments.svc </p>
  
  <p>When I follow the next tutorial in the series:  <a href="https://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/" rel="nofollow">https://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/</a></p>
  
  <p>During step 5, when I add the reference to the service, it gives me the following error message:</p>
  
  <p>An error (Details below) occurred while attempting to find services at '127.0.0.1:81/Appointments.svc'</p>
  
  <p>Metadata contains a reference that cannot be resolved: '127.0.0.1:81/Appointments.svc?wsdl'.</p>
  
  <p>The WSDL document contains links that could not be resolved.</p>
  
  <p>There was an error downloading '127.0.0.1:81/Appointments.svc?xsd=xsd0'.</p>
  
  <p>The underlying connection was closed: The connection was closed unexpectedly.</p>
  
  <p>Metadata contains a reference that cannot be resolved: '127.0.0.1:81/Appointments.svc'.</p>
  
  <p>Content Type application/soap+xml; charset=utf-8 was not supported by service 127.0.0.1:81/Appointments.svc.  The client and service bindings may be mismatched.</p>
  
  <p>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'..</p>
  
  <p>If the service is defined in the current solution, try building the solution and adding the service reference again.</p>