Thanks
Saira
add <identity impersonate="true" /> to your web.config,
make sure that anonymous access is turned off,
and then, after instantiating your web service proxy, try adding the
following line:
myWSProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
Hope this helps,
DalePres
MCAD, MCDBA, MCSE
"Saira" <Saira@Bayonet[NOSPAM]Ventures.com> wrote in message
news:eUb9NIiJ...@TK2MSFTNGP12.phx.gbl...
WebProxy myProxy = new WebProxy();
//the one in the IE settings
myProxy = WebProxy.GetDefaultProxy();
// use default login info
myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
// other way =
// NetworkCredential nc = new NetworkCredential("User", "Password")
// +domain if needed
// myProxy.Credentials = nc;
WESERVICE webref = new WEBSERVICE();
webref.Proxy = myProxy;
Luca
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/