111,129
社区成员
发帖
与我相关
我的任务
分享
string certPath = Server.MapPath("ywc.pfx");
iService.iService i = new iService.iService();
i.Url = "https://www.website.com/iService.asmx";
i.ClientCertificates.Add(new X509Certificate(certPath, "123456"));
iService.Way WInfo = new Way();
try
{
WInfo = i.GetWayInfoByCode(txt_Code.Text);
Response.Write(WInfo.ChineseName);
}
catch (Exception ex)
{
Response.Write(ex.Message);
}