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);
}
}
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);
}
}