简体   繁体   English

将Web引用添加到安全的http Web服务

[英]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. 我有一个WCF客户端,我应该与第三方Web服务进行通信,其中url和wsdl被公开。第三方WebService(.asmx)使用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. 我所做的只是尝试从我的开发环境添加服务引用,但无法成功。所以我继续使用SOAPUI来测试我能够发出请求并获得响应的服务。

Is it not possible in VS2010 to add the service reference in order to access the metadata of a HTTPS web service ? 在VS2010中是否无法添加服务引用以访问HTTPS Web服务的元数据? Since this is the first time I am using HTTPS ,i would be glad if some one can guide me the right way ? 由于这是我第一次使用HTTPS,如果有人能以正确的方式引导我,我会很高兴吗?

@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. @Aron:我试图通过使用Web浏览器获得相同的选择继续选择继续选项然后它将我带到WSDL页面。

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. 您应该检查IIS服务器的实际地址。 Open up the page in your web browser. 在Web浏览器中打开页面。 You will have a page that asks you if you want to proceed anyway, DONT. 你会有一个页面询问你是否要继续,不要。 View server certificate. 查看服务器证书。

谷歌邮件证书

Here is the GMail certificate. 这是GMail证书。 Notice the "issued to:". 注意“发给:”。 This means that the certificate is only for https://mail.google.com . 这意味着该证书仅适用于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 因此,您希望使用其中的任何内容作为https:// {my issued to} /Webservice.asmx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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