Inter-application communication between PDA and Desktop

  • Thread starter Thread starter Me
  • Start date Start date
M

Me

Hello,

I would like to write a program for the Pocket PC iPAQ 2003 and also write
one for a desktop computer running Win2K. Both devices are located on the
same network.

Ultimately what I want to do is to send a Dataset from an running
application on the PDA to a separate application running on the desktop.
After the desktop receives the Dataset, from there it can do what ever.

How can I pull this off?

Thanks,

Gigi
 
At first glance, I think that System.Net.Sockets might do it for me. I was
just wondering if there are any examples for passing either a dataset or an
xml file?


Thanks,

Me
 
use XML serialization or some of its siblings?



Me said:
At first glance, I think that System.Net.Sockets might do it for me. I was
just wondering if there are any examples for passing either a dataset or an
xml file?


Thanks,

Me
 
Thanks Ginny!

I will take a look at that article. In the meantime, I may have to actually
use Web Services where I fill a dataset on PDA and send a request to store a
record on a database residing on the desktop. I would prefer an Access
database. Any articles or code sample for such a thing?

Regards,

Me
 
Since you'll be writing the web service part for the desktop, you'll probaby
be able to get suggestions for sample code for connecting to an Access
database on the Ado.Net newsgroup. I assume you just use the OleDb data
provider, but I haven't actually done it. Remember that with .Net, a method
callable from a web service is really just an ordinary .Net method with a
WebMethod attribute.
 
Hi Ginny,

Once I got deeper into the mechanics of the code, I was able to figure out
that I could just use my old ADO.NET code.

Everything works fine on the emulator. However, when I deploy to PPC iPAQ
4350 I get the following error message:

WebException Could not find Resource Assembly Application::Run+0xf
Form1::Main+0xd

Here's the PDA side code
Dim dsAccess As New DataSet
Dim qs As New QueryAccess2K

dsAccess = qs.QuerySelect()
DataGrid1.DataSource = dsAccess.Tables(0)

On the webserver side, all I am doing is performing a SELECT on the
northwind database.

Any suggestions would be greatly appreciated.

Thanks,

Gigi
Ginny Caughey said:
Since you'll be writing the web service part for the desktop, you'll probaby
be able to get suggestions for sample code for connecting to an Access
database on the Ado.Net newsgroup. I assume you just use the OleDb data
provider, but I haven't actually done it. Remember that with .Net, a method
callable from a web service is really just an ordinary .Net method with a
WebMethod attribute.
--
Ginny Caughey
.Net Compact Framework MVP

Me said:
Thanks Ginny!

I will take a look at that article. In the meantime, I may have to actually
use Web Services where I fill a dataset on PDA and send a request to
store
a
record on a database residing on the desktop. I would prefer an Access
database. Any articles or code sample for such a thing?

Regards,

Me
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/htm dataset
located
 
Gigi,

The usual way to debug web service code is to put a breakpoint in your code
just before you call the web service and see what happens when you step down
into it. The most frequent cause of problems is that PPC doesn't see the web
service. Try using the IP address of the machine the web service is on if
you aren't doing that already. (This is assuming that the web service works
as expected from a desktop app.)
 
Ginny,

Thank you for your reply. My problem was actually very simple.
Problem:
Error message in IE: Error 404 Not Found Bad request or resource not
found

Solution:

Setting--> Configure Network Adapters

My Network Card connects to:
The Internet

Signed,

Me
 
Back
Top