Please find the attached image which i have tried in soap UI it is working fine as expected
我已将wsdl文件中的Web参考导入到我的asp.net Web应用程序中。另外,我还使用TLS 1.2构建了我的Web服务,要访问该Web服务,我必须在访问该方法时通过以下标头身份验证。
X-IBM-Client-Secret X3yI1dK4cA4rP4fO8sF6wD4xR2wX1nQ8cR5oO1yQ4eF4iX0cL3
X-IBM-Client-Id af829919-5ea9-49ee-96b6-2b60fa3babf2
还请找到我用来从Web服务访问详细信息的以下代码。
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
XmlNode nodeVerfiedResult = objPANInquiry.GetPanStatus(txtPANNo.Text, "DIGITALDOST", "1500000004", "Pass@123", "");
XElement elementVerfiedResult = XElement.Parse(nodeVerfiedResult["APP_PAN_INQ"].OuterXml);
string strAppStatus = elementVerfiedResult.Descendants("APP_STATUS").Select(x => x.Value).ToArray()[0].ToString();
请指导我在应用程序中添加上述标题。预先感谢。