A
Alexandru Florea
Hello,
Can anyone explain to me, please, how to set the credentials to acces a web
service in compact framework ?
I created a simple Window application to test this on the desktop computer.
Using CredentialCache class is working just fine in .Net framework, but the
compact framework doesnt's support that class !!!
=================< this is work >==================
phws3001WebService.PreAuthenticate = false;
NetworkCredential myCred = new NetworkCredential( LOGIN_NAME, LOGIN_PASS );
CredentialCache myCache = new CredentialCache();
Uri myUri = new Uri( phws3001WebService.Url );
myCache.Add( myUri, "basic", myCred );
phws3001WebService.Credentials = myCache;
=========================================
If I don't use the CredentialCache class, than it doesn't work at all
================< this is don't work >=================
phws3001WebService.PreAuthenticate = false;
NetworkCredential myCred = new NetworkCredential( LOGIN_NAME, LOGIN_PASS );
phws3001WebService.Credentials = myCred;
================================================
The NetworkCredential class don't even let me specify the type of
authentication !!!!
So how can I set the "basic" authentication type without using
credentialcache ?
Thanks,
Alex
Can anyone explain to me, please, how to set the credentials to acces a web
service in compact framework ?
I created a simple Window application to test this on the desktop computer.
Using CredentialCache class is working just fine in .Net framework, but the
compact framework doesnt's support that class !!!
=================< this is work >==================
phws3001WebService.PreAuthenticate = false;
NetworkCredential myCred = new NetworkCredential( LOGIN_NAME, LOGIN_PASS );
CredentialCache myCache = new CredentialCache();
Uri myUri = new Uri( phws3001WebService.Url );
myCache.Add( myUri, "basic", myCred );
phws3001WebService.Credentials = myCache;
=========================================
If I don't use the CredentialCache class, than it doesn't work at all
================< this is don't work >=================
phws3001WebService.PreAuthenticate = false;
NetworkCredential myCred = new NetworkCredential( LOGIN_NAME, LOGIN_PASS );
phws3001WebService.Credentials = myCred;
================================================
The NetworkCredential class don't even let me specify the type of
authentication !!!!
So how can I set the "basic" authentication type without using
credentialcache ?
Thanks,
Alex