C#,尽管使用SecurityProtocol,soap函数调用失败并出现错误无法创建安全的SSL / TSL通道

时间:2017-05-11 12:11:01

标签: c# ssl soap confluence

我们正在使用Confluence肥皂服务。尽管使用安全协议,我们仍然无法保护SSL / TLS错误。

有人可以提供帮助

代码

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12 | System.Net.SecurityProtocolType.Ssl3;

ConfluenceSoapServiceService service = new ConfluenceSoapServiceService();

string Token = service.login("wikiadmin", "wikiadmin");

try

{
  RemotePage page = new RemotePage();

  page.title = "Week of 05/08 - 05/12/2017";

  page.space = "ETS";

  page.content = text;

  page.parentId = 38472651;

  service.storePage(Token, page);  //Getting error here (Cannot secure TLS/SSL Channel)


}

0 个答案:

没有答案