0
I am developing an application that needs to use a Webservice (WSDL) from a third party company. To access this WSDL I need to use a certificate.pfx. I have already installed this certificate on my computer. I was able to access this WS through the browser and Soapui. However, when I try to import the WSDL through Visual Studio (WCF/.net core), it gives the error below:
An error occurred while attempting to find services at 'https://xxxxxxx-spi-homo-ws-site1.xxxx.com/wsdl'. The remote server returned an error: (403) Forbidden.
When I try to use WS through. NET Framework 4.7, by clicking on "Project > Add Service Reference > Advanced > Add Web Reference", requests confirmation of the certificate (Figure 1). When I click OK, it gives another error (Figure 2).
I would like to know how to make Visual Studio use the certificate to access WSDL.
UPDATE I tried, in the browser, to make a "Save As..." and created a.wsdl file and import through "Browse" of "Visual Studio" and gave the error below:
Go to WSDL via browser, save the page as "example.wsdl" and in visual studio point to your physical file. It will work the same way.
– Bruno Warmling
I already tried this: I saved the.wsdl file and I gave a Browse in "Visual Studio" and gave the error below: Cannot import wsdl:port Detail: There was an error importing a wsdl:Binding that the wsdl:port is dependent on. 
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.xxxx.com/XXspb/']/wsdl:binding[@name='XXspbSOAP']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.xxx.com/XXspb/']/wsdl:service[@name='XXspb']/wsdl:port[@name='XXspbSOAP'] Cannot import wsdl:Binding
– Mr. Tutankamon