Re: WebServices and CF - Redux

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



NTLM required for Integrated Windows authentication is not supported in CF 1.0. It is in CF 2.0 though

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Bill" <Bill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C7036084-6A6C-461F-A7A8-78B526A1C78E@xxxxxxxxxxxxxxxx
Goal: to employ Windows Authentication to access sensitive Web Services from
a CF application. Please humor me and consider the following code one more
time:


mammoth.POE_WebServices wert = new PreProcEval.mammoth.POE_WebServices();
wert.Credentials = new NetworkCredential( "userid", "password", "domain" );
wert.PreAuthenticate = true;


String error = String.Empty;

try
{
   DataSet myData = wert.POE_FindPatient( "Z99999", String.Empty,
String.Empty, error );

   foreach( DataRow myRow in myData.Tables[0].Rows )
   {
       lvPatientSelector.Items.Add( new ListViewItem(
myRow.ItemArray[0].ToString() ));
   }
}
catch( WebException wex )
{
   MessageBox.Show( wex.Status.ToString() );
}

I set up the web server for anonoymous (no) authentication.  I created 2
projects, one is a CF project, the other a regular .NET project.  Both
projects run and produce the desired result.

In my next experiment I set the web server to require Integrated Windows
Authentication. The regular .NET project ran and got the desired result, but
the CF project produced a WebException status of ProtocolError. It looks
very much to me as though something about the credentials isn't working for
CF project. This despite the fact that the NetworkCredential constructor, and
the WebClientProtocol.credential property are documented as being supported
by the CF. There could be domain issues involve I suppose but it looks like
the NetworkCredential constructor has this covered. I really want to be able
to use IWA on this project. Once again looking for a nudge in the right
direction!


Bill


.



Relevant Pages

  • Integrated Windows authentication OWA and Exchange active sync
    ... I have found that Win 98, NT and VPN clients can not access OWA without ... integrated windows authentication needed to be turned on. ... able to sync after turning on integrated windows authentication. ...
    (microsoft.public.exchange.admin)
  • Re: .net 1.1 service pack killed remote debugging -?
    ... Try enabling Integrated Windows Authentication on the dev server (I don't ... know why it would be disabled, but the error message suggests it is...). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re : integrated windows authentication problem
    ... only Integrated Windows auuthentication is enabled in IIS ... >I am currently using integrated windows authentication ...
    (microsoft.public.dotnet.security)
  • Secure Password Authentication with different username and alias
    ... My ISP require Integrated Windows Authentication for pop3 ... I have username and password also i configuring ... Outlook Express and select Integrated Windows ... Authentication for incoming mail and outgoing mail, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Integrated Windows Authentication
    ... My ISP require Integrated Windows Authentication for pop3 ... I have username and password also i configuring ... Outlook Express and select Integrated Windows ... Authentication for incoming mail and outgoing mail, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)