title: Unable to add a Service Reference using a WSDL in Visual Studio
body: <p>I have URL to web service WSDL:</p>
  
  <p><a href="http://www.webservicex.net/WeatherForecast.asmx?WSDL" rel="nofollow">http://www.webservicex.net/WeatherForecast.asmx?WSDL</a></p>
  
  <p>I am trying to consume this service in a WPF application (.Net 4.5) in Visual Studio 2012. </p>
  
  <p>I right click on the project -> Add Service Reference and when I try to add the above service reference, I get the following error:</p>
  
  <blockquote>
    <p>The HTML document does not contain Web service discovery information.
    Metadata contains a reference that cannot be resolved:
    '<a href="http://www.webservicex.net/WeatherForecast.asmx?WSDL" rel="nofollow">http://www.webservicex.net/WeatherForecast.asmx?WSDL</a>'. Metadata
    contains a reference that cannot be resolved:
    '<a href="http://www.webservicex.net/WeatherForecast.asmx?WSDL" rel="nofollow">http://www.webservicex.net/WeatherForecast.asmx?WSDL</a>'. If the service
    is defined in the current solution, try building the solution and
    adding the service reference again.</p>
  </blockquote>
  
  <p>On "Add Service Reference" window, I now click on "Advanced" button -> "Add Web Reference" button on the bottom -> copy the URL into URL textbox and click "->" button. I see the WSDL in the viewer. </p>
  
  <p>Now I click on "Cancel" and again "Cancel" on "Service Reference Settings" window.</p>
  
  <p>On "Add Service Reference" window, I click "Go" now and I see the Services available to add to the project.</p>
  
  <p>Is this a Visual Studio issue? Why do I have to do that. Why does it not work the first time? Am I missing something on my machine?</p>