A
A
Anton2016-01-25 11:32:12
Android
Anton, 2016-01-25 11:32:12

Android client and C# server. Organize correctly?

Good afternoon!
I am making a trivial android application (car tracker on the map).
Server in C#.
The server must transmit complex data upon request: a list of machines, coordinates, ..
What is the right way to organize the interaction between the client and the server now?
socket or http
xml or json or...
What are the tested out-of-the-box libraries out there?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dmitry Kovalsky, 2016-01-25
@dmitryKovalskiy

In C#, there is the ASP.NET web framework and its WEB API component. A couple of simple gestures and he will return what he is asked for (they ask xml - it will return xml, similar to json).

O
Oleg Gamega, 2016-01-25
@gadfi

server:
c# definitely has the rest out of the box, give json, the
client will be more economical in terms of traffic:
retrofit
gson / jackson
picasso

E
eRKa, 2016-01-25
@kttotto

We are doing just such a thing on the ASP.NET WEB API, we give json. We use SignalR.

V
VanKrock, 2016-01-25
@VanKrock

There are several options here, but if you need to keep the connection, look at SignalR it can be used with ASP.NET WEB API or you can look towards NancyFx can also work in conjunction with SignalR

A
Artem Voronov, 2016-01-25
@newross

The options are not easy - there are countless of them.
It is possible to write a server using ServiceStack, for which there are native Java clients.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question