G
Guest
I have a CF project and I'm taking my first hack at implementing web services
for it. IIS is on a remote machine from my dev machine, and it is set up to
use Windows Authentication. I have written a web service and its test page
produces the correct results. I have referenced the web service in the
client project and I'm attempting to hit it with the following code.
mammoth.POE_WebServices wert = new PreProcEval.mammoth.POE_WebServices();
wert.Credentials = new NetworkCredential( "userid", "password", "domain" );
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() );
}
The results I'm getting are a WebException with a ConnectFailure status
("The remote service point could not be contacted at the transport level.")
I'm assuming that the credentials are required for windows authentication to
generate the Win Auth token since folks generally don't log in to their PDAs.
Note that I get the same result whether or not the credentials are used.
Also, I'm working with an iPaq HX4700 in a cradle. I get the same results
whether I use the cradle and the LAN, or the receiver and the WLAN. I'm
probably missing something basic here, any ideas?
Bill
for it. IIS is on a remote machine from my dev machine, and it is set up to
use Windows Authentication. I have written a web service and its test page
produces the correct results. I have referenced the web service in the
client project and I'm attempting to hit it with the following code.
mammoth.POE_WebServices wert = new PreProcEval.mammoth.POE_WebServices();
wert.Credentials = new NetworkCredential( "userid", "password", "domain" );
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() );
}
The results I'm getting are a WebException with a ConnectFailure status
("The remote service point could not be contacted at the transport level.")
I'm assuming that the credentials are required for windows authentication to
generate the Win Auth token since folks generally don't log in to their PDAs.
Note that I get the same result whether or not the credentials are used.
Also, I'm working with an iPaq HX4700 in a cradle. I get the same results
whether I use the cradle and the LAN, or the receiver and the WLAN. I'm
probably missing something basic here, any ideas?
Bill