过去,我已经能够通过添加服务参考的Visual Studio添加Web服务。
现在我需要使用使用基本身份验证的WSDL。当我尝试添加新服务引用时,我收到错误The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'BASIC realm="owsm"'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.
我可以在哪里更改身份验证或添加凭据以创建新的服务引用?
答案 0 :(得分:-1)
我想我知道你要做什么。首先右键单击解决方案资源管理器中的解决方案,然后单击“添加服务引用”。
然后点击“高级'
”
然后点击“添加网络参考”
应该这样做。