在ASP.NET 1.1中使用REST Web服务时遇到问题 [英] Trouble In Consuming REST Webservice in ASP.NET 1.1

查看:113
本文介绍了在ASP.NET 1.1中使用REST Web服务时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要在ASP.NET Web应用程序中使用REST Web服务(使用HTTPS).
从站点尝试了各种示例,但没有用.如果有人知道解决方案,请指导我.
当我尝试从站点给出一些示例时,出现以下错误


基础连接已关闭:无法与远程服务器建立信任关系.

请帮帮我.


提前致谢
karthik

Hi Folks,

I need to consume a REST Web Service (using HTTPS ) in my ASP.NET Web application.
Have tried various examples from sites but no use. Please guide me if anybody knows the solutions.
When I am trying with some examples given from sites i am getting the below error


The underlying connection was closed: Could not establish trust relationship with remote server.

Please help me.


Thnaks in Advance
karthik

推荐答案

这是证书的问题.默认情况下,连接不受信任,并且客户端无法以某种方式验证证书.

在这里看看为什么连接会失败.以及解决方法:
http://weblogs.asp.net/tgraham/archive/2004/08/12/213469.aspx [ ^ ]
This is a problem with the certificate. By default the connection is not trusted and somehow the client cannot validate the certificate.

Take a look here why the connection may fail. And also a way on how to solve it:
http://weblogs.asp.net/tgraham/archive/2004/08/12/213469.aspx[^]


Ruard,
感谢您的及时答复,我将如何使用给定文章中的代码.
在提出REST Web服务请求之前,我无法理解如何利用以上代码.
请让我知道更多细节.

致谢,
Karthik
Hi Ruard,
Thanks for immediate repply, How i can use the code in your given article.
I could not understand how to make use of the above code before making a REST Web service request.
Please let me know more details.

Thnaks,
Karthik


这篇关于在ASP.NET 1.1中使用REST Web服务时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆