Error: Cannot obtain Metadata from http …?wsdl

前端 未结 2 1002
青春惊慌失措
青春惊慌失措 2021-02-15 10:47

I have been in the process of converting a http application to https and ssl with a self signed certificate.

for some reason i have to go in the browser to localhost:###

相关标签:
2条回答
  • 2021-02-15 11:15

    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.

    0 讨论(0)
  • 2021-02-15 11:15

    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!

    0 讨论(0)
提交回复
热议问题