c# - Unable to add a Service Reference using a WSDL in Visual Studio -


i have url web service wsdl:

http://www.webservicex.net/weatherforecast.asmx?wsdl

i trying consume service in wpf application (.net 4.5) in visual studio 2012.

i right click on project -> add service reference , when try add above service reference, following error:

the html document not contain web service discovery information. metadata contains reference cannot resolved: 'http://www.webservicex.net/weatherforecast.asmx?wsdl'. metadata contains reference cannot resolved: 'http://www.webservicex.net/weatherforecast.asmx?wsdl'. if service defined in current solution, try building solution , adding service reference again.

on "add service reference" window, click on "advanced" button -> "add web reference" button on bottom -> copy url url textbox , click "->" button. see wsdl in viewer.

now click on "cancel" , again "cancel" on "service reference settings" window.

on "add service reference" window, click "go" , see services available add project.

is visual studio issue? why have that. why not work first time? missing on machine?

i've tried 'add service reference' url provided in microsoft visual studio 2010 (version 10.0.40219.1 sp1rel), microsoft visual studio ultimate 2012 (version 11.0.61030.00 update 4) , in microsoft visual studio ultimate 2013 (version 12.0.30501.00 update 2) , it's working perfect in of them.

so can suppose 3 options.

  1. it bug in visual studio 2012 fixed in 1 of latest updates.
  2. something changed in wsdl of service tried consume , wsdl doesn't trigger bug you're encountered.
  3. the issue related installation of vs 2012 reason (faulty vs add-on installed etc).

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -