WebServices reliablity

D

David Webb

I am running a simple test of webservices to the com.gotdotnet.samples
MathService. The sample app is just a couple of textboxes, a button, the
web reference and the following standard webservice code. It works fine on
the emulator and on the device when plugged into the USB cable. The device
is a Dell Axium X30 with 802.11 support. On the device, with the radio
turned on, it will work for the first 2 calls, then it will just hang when I
call it again the third time. It doesn't timeout but eventually returns the
error a long time later:

"Unable to read data from the transport connection."

Is anyone using webservices reliably on a wireless network (802.11 or GPRS)
? Any suggestions? I am running CF SP2.

Thanks,
Dave



private void Multiply_Click(object sender, System.EventArgs e)

{

MathService ms = new MathService();

ms.Timeout = 10000;

try

{

label1.Text = "Result = " + ms.Multiply(Convert.ToSingle(textBox1.Text),
Convert.ToSingle(textBox2.Text)).ToString();

}

catch (System.Web.Services.Protocols.SoapException ex)

{

MessageBox.Show(ex.Message + " " + ex.Code.ToString());

}

catch (Exception exc)

{

MessageBox.Show(exc.Message);

}

}
 
W

William LaMartin

I have written a couple of test web services--sending email; reading from
and modifying an xml file--that seem to work fine when accessed from the
Pocket PC via a wireless network.
 
N

nzpcmad

Yes - I have had problems with GPRS. See my recent post
"ReceiveFailure - WebServices". The status is "ReceiveFailure" - the
message is "Unable to read data..." I'm not sure if the Xscale issue
is a red herring or not?

Like you, I can run the same program all day from the emulator with no
errors.

Thanks
 
W

William LaMartin

I am not running the programs, which are accessing the web service, in the
emulator . They are on a Pocket PC that I carry with me. Whenever I
encounter an available wireless network, if I test them they work fine.
 

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