Groups | Blog | Home
all groups > dotnet compact framework > may 2007 >

dotnet compact framework : Connecting to a webservice through grps


thomassol NO[at]SPAM gmail.com
5/21/2007 12:59:55 AM
Hi.

I having trouble connecting to a webservice via gprs.

I made a small test app, which can call a webservice that returns X
rows from the database or the datetime from the server.

Everything works, if im connected to the webservice through Activesync
(Bluetooth og usb) but when I use gprs I can only get the Datetime
from the server, not the dataset.

Heres my connect code:

Cursor.Current =3D Cursors.WaitCursor;
wsStamData.Url =3D "http://.......";

try
{
SyncWebService.SagDataSet.SagDataTable dtNyeSager =3D
wsStamData.GetSagerByAntal(antal);

dataGrid1.DataSource =3D dtNyeSager;

Cursor.Current =3D Cursors.Default;
return true;
}

catch (Exception ex)
{
MessageBox.Show(ex.Message);
Cursor.Current =3D Cursors.Default;
return false;
}

Can anyone tell me what im missing?

Thanks in advance
Thomas Solh=F8j
Simon Hart
6/1/2007 2:40:01 PM
Wat happens when you call the Web Service via GPRS, what exception etc?

--
Simon Hart
http://srhartone.blogspot.com


[quoted text, click to view]
AddThis Social Bookmark Button