Error: Cannot obtain Metadata from http …?wsdl

前端 未结 2 995
青春惊慌失措
青春惊慌失措 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.

提交回复
热议问题