简体   繁体   中英

Adding Web Reference to a secure http web service

I have a WCF client from which i am supposed to communicate to a thirdparty web service whose url and wsdl is disclosed.The third party WebService(.asmx) uses https. All I am doing is trying to add service reference from my dev environment ,but unable to succeed.So i went ahead and used SOAPUI to test the service where i am able to fire a request and got a response.

Is it not possible in VS2010 to add the service reference in order to access the metadata of a HTTPS web service ? Since this is the first time I am using HTTPS ,i would be glad if some one can guide me the right way ?

@Aron :I tried to get the same by using a web browser and i selected proceed anyway option then it takes me to the WSDL page.

I will assume that you are running your development server on your local dev machine. You should check the actual address that the IIS server is setup for. Open up the page in your web browser. You will have a page that asks you if you want to proceed anyway, DONT. View server certificate.

谷歌邮件证书

Here is the GMail certificate. Notice the "issued to:". This means that the certificate is only for https://mail.google.com . If another server tried to use it for another address you would have the same error.

So you want to use whatever is in there as your https://{my issued to}/Webservice.asmx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM