G
Guest
An application running on Windows CE tries to retrieve data from a web service on IIS using Windows integrated authentication in Directory Security. It does not work, but it does work if the application run on Windows XP. I don't know the reason and I wonder if this problem is related to .NET Compact Framework. Any help will be welcome! The code is shown below
PsionApplication.consultia.marcos.Service1 ws = new PsionApplication.consultia.marcos.Service1()
NetworkCredential nw = new NetworkCredential("marcos","csadmin")
System.Uri u = new System.Uri(ws.Url.ToString())
ws.Credentials = nw.GetCredential(u,"digest")
MessageBox.Show(ws.HelloWorld())
PsionApplication.consultia.marcos.Service1 ws = new PsionApplication.consultia.marcos.Service1()
NetworkCredential nw = new NetworkCredential("marcos","csadmin")
System.Uri u = new System.Uri(ws.Url.ToString())
ws.Credentials = nw.GetCredential(u,"digest")
MessageBox.Show(ws.HelloWorld())