You'll need something like this
// Get default proxy
IWebProxy proxy = HttpWebRequest.DefaultWebProxy;
if (isUseCustomUsernameAndPassword)
proxy.Credentials = new NetworkCredential(proxyUserName, proxyPassword);
else
proxy.Credentials = CredentialCache.DefaultNetworkCredentials; // Use
windows credentials
webServiceInstance.Proxy = proxy;
Mike
http://www.seeknsnatch.com
"UJ" <fr**@nowhere.comwrote in message
news:OZ*************@TK2MSFTNGP06.phx.gbl...
>I have a machine that has a proxy server that is attempting to connect to
my web service. The Web Services runs fine from a machine without a proxy
server but the machine that's got the proxy server, it doesn't work.
Anybody have any ideas?
TIA - Jeff.