0

我有一个 WCF 客户端,我应该从该客户端与第三方 Web 服务进行通信,其 url 和 wsdl 已公开。第三方 WebService(.asmx) 使用 https。我所做的只是尝试从我的开发环境中添加服务引用,但无法成功。所以我继续使用 SOAPUI 来测试我能够触发请求并得到响应的服务。

在 VS2010 中是否不可能添加服务引用以访问 HTTPS Web 服务的元数据?由于这是我第一次使用 HTTPS,如果有人能指导我正确的方法,我会很高兴?

4

1 回答 1

2

@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.

Google mail 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

于 2013-02-11T20:28:15.193 回答