Windows Mobile app communicating with a Service

G

Guest

I was wondering if it is possible to create a Windows Service in C# and then
have a Window Mobile app send requests / communicate with that service?

What I would like to be able to do is send requests from the Mobile app to
the service, the Mobile app would go to wait state, the Service would execute
a threaded query or non-query against a non-SQL Server database, then the
service returns information back to the Mobile app. If I can get this
working, there would be possibly 30 - 40 mobile devices running
simultaneously requesting from the service.

Is this something that is possible? If so, where do I need to start as far
as research?

Thanks,
David
 
P

Paul G. Tobey [eMVP]

And the communication channel is what? Sockets? You can write a
sockets-based program in .NET CF, yes.

I'm curious though, *why*? You can already do remote data access for SQL
server with the classes built into .NET CF already. Why build a separate
service, debug a bunch of network I/O, and so on?

Paul T.
 
G

Guest

Hi Paul,
I need to do it this way because the data I am accessing is not in SQL
Server or else I would just use the Sql.. classes built in. I cannot do an
Oledbconnection to the database that I know of. The backend I am connecting
to is Advantage Database server. So this was the way I thought about doing it.

Thanks,
David
 
S

Simon Hart

I had the same problem in which found Web Services the easiest solution.

Cheers
Simon.
 
P

Paul G. Tobey [eMVP]

OK, then the non-RDA answer stands: you can do it with components running on
both ends, yes. The smallest solution is probably going to be something
with sockets and a custom protocol that you define, but you can, if you have
IIS, for example, on the server machine, use Web Services as the interface,
as Simon indicated.

Paul T.
 

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