【发布时间】:2014-09-04 18:53:09
【问题描述】:
过去我可以通过 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.
我可以在哪里更改身份验证或添加凭据以创建新的服务参考?
【问题讨论】:
-
使用离线 wsdl 添加服务并重新配置身份验证和实时 url 以后可以工作
标签: asp.net vb.net web-services wcf wsdl