[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Using automatic configuration script to discover a proxy server

Alek Davis

12/26/2002 8:45:00 PM

Hello,

Is it possible to allow a Web service to discover a proxy server when the
default IE LAN configuration is set to "use automatic configuration script"?

The problem I have now is that a client behind the firewall, who "use[s]
automatic configuration script" option, cannot call a Web service outside of
the firewall without having to manually change IE LAN settings (i.e.
disabling "Use automatic configuration script" option and defining proxy
server address and port manually). Requiring users to perform this manual
step (and revert back to the original settings after calling a Web service)
sounds like a hassle, so I am looking for alternatives. Is it possible to
let a Web service proxy class to discover proxy settings automatically? If
not, can it be done the way IE does it, i.e. discover proxy info from the
configuration script and set it programmatically?

Any ideas are greatly appreciated. Thank you in advance.

-- Alek


4 Answers

R Lamberson

12/27/2002 5:05:00 PM

0

See the following MSDN articles. You can programatically
handle the proxy server or you can use the machine.config
configurations.

http://support.microsoft.com/default.aspx?s...
us;307220

http://support.microsoft.com/default.aspx?s...
US;318140
>-----Original Message-----
>Hello,
>
>Is it possible to allow a Web service to discover a proxy
server when the
>default IE LAN configuration is set to "use automatic
configuration script"?
>
>The problem I have now is that a client behind the
firewall, who "use[s]
>automatic configuration script" option, cannot call a Web
service outside of
>the firewall without having to manually change IE LAN
settings (i.e.
>disabling "Use automatic configuration script" option and
defining proxy
>server address and port manually). Requiring users to
perform this manual
>step (and revert back to the original settings after
calling a Web service)
>sounds like a hassle, so I am looking for alternatives.
Is it possible to
>let a Web service proxy class to discover proxy settings
automatically? If
>not, can it be done the way IE does it, i.e. discover
proxy info from the
>configuration script and set it programmatically?
>
>Any ideas are greatly appreciated. Thank you in advance.
>
>-- Alek
>
>
>.
>

Alek Davis

12/27/2002 6:35:00 PM

0

Thank you for the suggestion,

These are good articles, but this is not exactly what I am looking for.
First, I do not want to require the end users to make any changes to their
config files. Second, the KB articles show how to set up global proxy
settings, when you already know the name (port) of the proxy server. What I
am trying to find out is: how can a program find the name and port of the
proxy server if the system uses automatic proxy discovery script (i.e. the
way IE does), so that the Web service client can set proxy info before
making a call without user interaction or changes to config file. The
information is already there, and since IE can figure it out, there must be
a way to do the same thing programmatically.

-- Alek

"R Lamberson" <lambersora@nospam.com> wrote in message
news:03d301c2adc1$bde303a0$8af82ecf@TK2MSFTNGXA03...
> See the following MSDN articles. You can programatically
> handle the proxy server or you can use the machine.config
> configurations.
>
> http://support.microsoft.com/default.aspx?s...
> us;307220
>
> http://support.microsoft.com/default.aspx?s...
> US;318140
> >-----Original Message-----
> >Hello,
> >
> >Is it possible to allow a Web service to discover a proxy
> server when the
> >default IE LAN configuration is set to "use automatic
> configuration script"?
> >
> >The problem I have now is that a client behind the
> firewall, who "use[s]
> >automatic configuration script" option, cannot call a Web
> service outside of
> >the firewall without having to manually change IE LAN
> settings (i.e.
> >disabling "Use automatic configuration script" option and
> defining proxy
> >server address and port manually). Requiring users to
> perform this manual
> >step (and revert back to the original settings after
> calling a Web service)
> >sounds like a hassle, so I am looking for alternatives.
> Is it possible to
> >let a Web service proxy class to discover proxy settings
> automatically? If
> >not, can it be done the way IE does it, i.e. discover
> proxy info from the
> >configuration script and set it programmatically?
> >
> >Any ideas are greatly appreciated. Thank you in advance.
> >
> >-- Alek
> >
> >
> >.
> >


Eugene

12/28/2002 12:48:00 AM

0

Check these:

http://msdn.microsoft.com/library/en-us/winhttp/http/using_the_win...
roxy_feature.asp
http://msdn.microsoft.com/library/en-us/winhttp/http/winhttp_autop...
sp
http://msdn.microsoft.com/library/en-us/wininet/wininet/autoproxy_...
_wininet.asp

Requires some work to use them from .NET though.

Eugene

"Alek Davis" <SSTTOOPPSSPPAAMM.alek.davis@intel.com> wrote in message
news:u29GgdRrCHA.1808@TK2MSFTNGP09...
> Hello,
>
> Is it possible to allow a Web service to discover a proxy server when the
> default IE LAN configuration is set to "use automatic configuration
script"?
>
> The problem I have now is that a client behind the firewall, who "use[s]
> automatic configuration script" option, cannot call a Web service outside
of
> the firewall without having to manually change IE LAN settings (i.e.
> disabling "Use automatic configuration script" option and defining proxy
> server address and port manually). Requiring users to perform this manual
> step (and revert back to the original settings after calling a Web
service)
> sounds like a hassle, so I am looking for alternatives. Is it possible to
> let a Web service proxy class to discover proxy settings automatically? If
> not, can it be done the way IE does it, i.e. discover proxy info from the
> configuration script and set it programmatically?
>
> Any ideas are greatly appreciated. Thank you in advance.
>
> -- Alek
>
>


Alek Davis

12/30/2002 6:37:00 PM

0

Thank you Eugene,

This is what I am looking for.

-- Alek

"Eugene Gershnik" <gershnik@hotmail.com> wrote in message
news:#shvuKgrCHA.2296@TK2MSFTNGP09...
> Check these:
>
>
http://msdn.microsoft.com/library/en-us/winhttp/http/using_the_win...
> roxy_feature.asp
>
http://msdn.microsoft.com/library/en-us/winhttp/http/winhttp_autop...
> sp
>
http://msdn.microsoft.com/library/en-us/wininet/wininet/autoproxy_...
> _wininet.asp
>
> Requires some work to use them from .NET though.
>
> Eugene
>
> "Alek Davis" <SSTTOOPPSSPPAAMM.alek.davis@intel.com> wrote in message
> news:u29GgdRrCHA.1808@TK2MSFTNGP09...
> > Hello,
> >
> > Is it possible to allow a Web service to discover a proxy server when
the
> > default IE LAN configuration is set to "use automatic configuration
> script"?
> >
> > The problem I have now is that a client behind the firewall, who "use[s]
> > automatic configuration script" option, cannot call a Web service
outside
> of
> > the firewall without having to manually change IE LAN settings (i.e.
> > disabling "Use automatic configuration script" option and defining proxy
> > server address and port manually). Requiring users to perform this
manual
> > step (and revert back to the original settings after calling a Web
> service)
> > sounds like a hassle, so I am looking for alternatives. Is it possible
to
> > let a Web service proxy class to discover proxy settings automatically?
If
> > not, can it be done the way IE does it, i.e. discover proxy info from
the
> > configuration script and set it programmatically?
> >
> > Any ideas are greatly appreciated. Thank you in advance.
> >
> > -- Alek
> >
> >
>
>