Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

web service proxy authentication

0 views
Skip to first unread message

Saira

unread,
Mar 11, 2005, 5:06:46 AM3/11/05
to
Hi all
I have an application that seems to be having an ongoing battle with my
firewall.
I am using a webservice to send back data to a SQL server database. Betwen
the two machines is an ISA 2004 firewall.
The firewall is set up so that it only allows authenticated traffic (i.e.
Windows user based). I cannot seem to get past the proxy authentication
problems.
I have changed the web.config file, and this seems to make no difference.
Any ideas?

Thanks
Saira


DalePres

unread,
Mar 13, 2005, 10:29:09 AM3/13/05
to
I haven't run a web service through ISA server, so I don't know if this is
all you need, but the basic things you need to do to pass the user identity
to the webservice are:

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...

Luca

unread,
Mar 14, 2005, 12:45:42 PM3/14/05
to
maybe this can do the trick :

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/

0 new messages