Re: proxy support
From: Tom Porterfield (tpporter_at_mvps.org)
Date: 02/01/05
- Next message: Ian Meakin: "Reading XML data returned back from a web service method"
- Previous message: Scott: "proxy support"
- In reply to: Scott: "proxy support"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Feb 2005 12:34:25 -0500
On Tue, 1 Feb 2005 11:04:45 -0600, Scott wrote:
> We have a c# webform application that uses ASP.NET webservices to
> communicate with our IIS server over the public internet. The customer is
> complaining that our application is using their default gateway to
> communicate rather than their proxy server. I was under the impression that
> the SoapHttpClientProtocol framework class used Internet Explorer's settings
> for proxy server configuration/usage and asked the customer to make sure
> I.E. was configured for use with their proxy server. He said I.E. was
> configured as such but that our application still was using their default
> gateway for web service communications over the public internet. My
> question is:
>
> 1. Is there some way programatically to force a web service client to use a
> proxy server instead of default gateway?
>
> 2. Do I need to edit some .net configuration file to force the proxy server
> to be used by the SoapHttpClientProtocol framework class.
Have you tried myClient.Proxy = WebProxy.GetDefaultProxy()? That won't
work if the IE proxy settings are dynamic, generated from script, from
autoconfig entries or from DHCP or DNS lookups. If that's the case, create
your own instance of WebProxy and set the appropriate values.
-- Tom Porterfield
- Next message: Ian Meakin: "Reading XML data returned back from a web service method"
- Previous message: Scott: "proxy support"
- In reply to: Scott: "proxy support"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|