Gav*_*vin 5 wsdl ssl-certificate visual-studio visual-studio-2013
我有一个相当不寻常的问题,我无法在visual studio 2013中使用wsdl.
为了在IE/Chrome/Safari中查看网址,我需要安装.p12和.crt安全证书.
我已将IE设置为不提示,但在Safari中我看到以下提示:
我想视觉工作室也希望确认证书但无法提示.
尝试在Visual Studio 2013中添加服务引用时,我看到以下错误:
"An error occured (details) while attempting to find services at..."
Run Code Online (Sandbox Code Playgroud)
细节是:
There was an error downloading 'https://xxx/xxx.svc/$metadata'.
The request was aborted: Could not create SSL/TLS secure channel.
Metadata contains a reference that cannot be resolved: 'https://xxx.wsdl'.
Could not establish secure channel for SSL/TLS with authority 'xxx.com'.
The request was aborted: Could not create SSL/TLS secure channel.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Run Code Online (Sandbox Code Playgroud)
有工作吗?
Prashant说的第一步是下载WSDL文件.这就像浏览器中的"文件>另存为"一样简单.
下一步是检查下载的WSDL并查看xml以获取任何'xs:import'引用.遵循每个引用并将文件下载到与WSDL相同的路径.
我发现WSDL引用了2x .xsd文件,然后文件引用了其他.xsd文件.我最终得到了6个文件.
对于所有文件(wsdl和xsd),有必要检查'xs:import'以确保schemaLocation指向本地文件路径.

最后,如果您添加服务引用作为细读并输入WSDL文件的本地路径.
很抱歉回答我自己的问题,但我想为团队的其他成员以及可能被卡住的其他人记录这些问题.

| 归档时间: |
|
| 查看次数: |
6022 次 |
| 最近记录: |