Web services 通过代理调用WSE web服务

Web services 通过代理调用WSE web服务,web-services,proxy,wse,Web Services,Proxy,Wse,我正在使用WebServicesEnhancements3.0从使用VisualStudio2005用C编写的ASP.NET应用程序调用Web服务 如果我将网络连接设置更改为使用特定的SOCKS5代理,我可以在Internet Explorer中调用web服务,但从.ASPX页面我会收到一条错误消息,告诉我应该使用代理 您知道如何配置web服务客户端以使用代理吗 谢谢 附言: 将以下内容添加到Web.config无效: <system.net> <defaultProxy&

我正在使用WebServicesEnhancements3.0从使用VisualStudio2005用C编写的ASP.NET应用程序调用Web服务

如果我将网络连接设置更改为使用特定的SOCKS5代理,我可以在Internet Explorer中调用web服务,但从.ASPX页面我会收到一条错误消息,告诉我应该使用代理

您知道如何配置web服务客户端以使用代理吗

谢谢

附言:

将以下内容添加到Web.config无效:

<system.net>
  <defaultProxy>
    <proxy proxyaddress="http://theproxy:8080" bypassonlocal="True" />
  </defaultProxy>
</system.net>

您需要将defaultProxy元素的enabled属性设置为true才能使其正常工作:

<system.net>
  <defaultProxy **enabled="true"**>
    <proxy proxyaddress="http://theproxy:8080" bypassonlocal="True" />
  </defaultProxy>
</system.net>

这应该是可行的。

WSE已经过时了。所有新的web服务工作都应该使用WCF完成,现有的WSE代码应该尽快迁移或退役。