使用凭据和代理时的响应401。凭证单独工作。 [英] Response 401 when using Credential AND proxy. Credential alone work.

查看:95
本文介绍了使用凭据和代理时的响应401。凭证单独工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用VB.NET 2.0。

I am using VB.NET 2.0.

我正在尝试调用Web服务。此Web服务需要身份验证。因此,我只能在使用凭据时执行Web服务。但是,当我添加本地代理(我尝试使用ezProxy Manager)时,我收到401错误。

I am trying to call a web service. This web service requires authentication. So, I am able to execute the web service when using Credentials only. But, when I add a local proxy (I tried with ezProxy Manager) I get a 401 error.

我也需要使用代理。任何想法为什么会失败?

I need to get this working with a proxy as well. Any ideas why this may fail?

推荐答案

您收到401错误,因为您没有提供Web服务所需的用户身份验证。你是如何生成该代理的?使用wsdl.exe?您可以为该Web服务添加Web引用吗?您是否尝试将登录名和密码传递给wsdl.exe?

http://msdn.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx

希望这会有所帮助。
You are getting a 401 error because you are not providing the user authentication required by the web service.

How are you generating that proxy? Using wsdl.exe? Can you add a web reference to that web service? Have you tried passing login and password to wsdl.exe?

http://msdn.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx

Hope this helps.


这篇关于使用凭据和代理时的响应401。凭证单独工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆