【发布时间】:2015-01-15 23:33:38
【问题描述】:
我有一个使用以下凭据在 SoapUI 中运行良好的 Web 服务:
Authentication: Basic
Username: testUser
Password: testPassword
Domain: IPaddress
当我尝试使用此代码在我的 C# 应用程序中使用它时
soapWS.Service soapWS = new soapWS.Service();
soapWS.Credentials = new NetworkCredential("testUser", "testPassword", "IPaddress");
我收到以下错误
Exception startSession: FailedLoginException for user IPaddress\testUser;嵌套异常是:
我对 SoapUI 做了更多研究,SoapUI 中的领域是
Domain : The domain to use if the request requires NTLM authentication)
我试过了
soapWS.Credentials = new NetworkCredential("testUser@IPaddress", "testPassword");
这也不起作用。
【问题讨论】:
-
是否真的没有嵌套异常的细节,还是你遗漏了消息的重要部分?
-
其实is后面什么都没有:
标签: c# .net web-services soapui basic-authentication