Wat happens when you call the Web Service via GPRS, what exception etc?
--
Simon Hart
http://srhartone.blogspot.com [quoted text, click to view] "thomassol@gmail.com" wrote:
> 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 = Cursors.WaitCursor;
> wsStamData.Url = "http://.......";
>
> try
> {
> SyncWebService.SagDataSet.SagDataTable dtNyeSager =
> wsStamData.GetSagerByAntal(antal);
>
> dataGrid1.DataSource = dtNyeSager;
>
> Cursor.Current = Cursors.Default;
> return true;
> }
>
> catch (Exception ex)
> {
> MessageBox.Show(ex.Message);
> Cursor.Current = Cursors.Default;
> return false;
> }
>
> Can anyone tell me what im missing?
>
> Thanks in advance
> Thomas Solhøj
>