Web Services - ConnectFailure

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
 
G

Guest

Here is an additional hint: When I attempt to bring up the web service URL in
Pocket Internet Explorer I get the following message: "Cannot connect with
the current connection settings. To change your connection settings, tap
Settings." And yet I think the WLAN settings are properly configured as I
can browse to any other arbitrary web site.

Bill
 
J

Johann Granados

Have you tried using the IP address instead the web server computer name as
the URL for the web service? It could be a name resolution problem.

Best regards,

Johann Granados
MVP

Bill said:
Here is an additional hint: When I attempt to bring up the web service URL
in
Pocket Internet Explorer I get the following message: "Cannot connect with
the current connection settings. To change your connection settings, tap
Settings." And yet I think the WLAN settings are properly configured as I
can browse to any other arbitrary web site.

Bill

Bill said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top