title: how to consume .svc file
body: <p>I have got url for svc file. For example <code>https://Myservicelocation/UserService.svc</code>. </p>
  
  <p>Now i tried to create asp.net web application in visual studio and added this url using "Add service reference". When i put this url and then click go i get error</p>
  
  <blockquote>
    <p>The request failed with HTTP status 400: Bad Request.
        Metadata contains a reference that cannot be resolved: '<a href="https://Myservicelocation/UserService.svc" rel="nofollow">https://Myservicelocation/UserService.svc</a>'.
        Content Type application/soap+xml; charset=utf-8 was not supported by service <a href="https://Myservicelocation/UserService.svc" rel="nofollow">https://Myservicelocation/UserService.svc</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'..
        If the service is defined in the current solution, try building the solution and adding the service reference again.</p>
  </blockquote>
  
  <p>How can i resolve this?</p>