Error: Cannot obtain Metadata from http …?wsdl

点点圈 提交于 2019-12-03 14:47:17

I can think of 4 ways to deal with this.

  1. Install the self signed cert as a trusted root auth. MMC -> Certificates
  2. Use a browser to navigate to the wsdl (click past the cert error), save it off, and generate off the wsdl directly.
    • Put the url of the wsdl in your browser and click past the certificate warning so that you can see the actual wsdl
    • Save the wsdl to your computer. In chrome you can right click, save as.
    • In Visual Studio
      • Right click on the project and select "Add Service Reference"
      • In the Address box, enter the physical path (C:\directory...) of the downloaded wsdl.
      • Hit Go
  3. Fire up fiddler and tell it to decrypt https which will install a cert and give you an option to ignore remote cert errors. Described here. http://proq.blogspot.com/2012/02/svcutil-and-https.html
  4. Use a cert signed by a trusted root.

I didn't see a svcutil option to ignore cert errors.

I had the same issue. For me I noticed that the https is using another Certificate which was invalid in terms of expiration date. Not sure why it happened. I changed the Https port number and a new self signed cert. WCFtestClinet could connect to the server via HTTPS!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!