Coffeehouse Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

.NET WebServices namespace: How to ignore IE's Proxy settings?

Back to Forum: Coffeehouse
  • User profile image
    Be#

    Using WebServices via the .NET WebServices namespace's methods usually recognizes IE's proxy settings to establish the http connection. Is there any known method to ignore IE's settings? Maybe via the .manifest file?

    Your help is greatly appreciated.

  • User profile image
    Mike Dimmick

    The class that Add Web Reference generates is derived from SoapHttpClientProtocol, which itself derives from HttpWebClientProtocol (tested in both VS.NET 2003 and VS2005). The HttpWebClientProtocol class has a Proxy property, which you can set to a class which implements System.Net.IWebProxy to customise the proxy behaviour.

    There is a canned implementation of System.Net.IWebProxy, the System.Net.WebProxy class. You can customise the behaviour by modifying the properties of this class (e.g. BypassList).

  • User profile image
    cheong

    I'm curious about the reason for ignoring the proxy settings.

    For most internal networks, the only way to go outside is through a presetted HTTP proxy. If you don't go that way, your connection will most likely to be simply blocked by the firewall.

    Recent Achievement unlocked: Code Avenger Tier 4/6: You see dead program. A lot!
    Last modified
  • User profile image
    Be#

    cheong wrote:
    I'm curious about the reason for ignoring the proxy settings.

    For most internal networks, the only way to go outside is through a presetted HTTP proxy. If you don't go that way, your connection will most likely to be simply blocked by the firewall.


    You are right. But in this case we don't want to go outside, we want to connect back to a server hosted in the Intranet. If this server address is not listed in the list of exceptions and a network wide Windows policy does not allow users to change the exception list, we want to put the ability to bypass the proxy for local addresses into the app.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.