What I basically need is a small console application that listens on port 80 and is capable of putting json objects around.
- Receiving value types, objects and
List<T>
(or array) from a JSON client and converting them to .net classes - Sending value types, objects and
List<T>
to the client - Outputting some info to the console
Performance is not a problem I expect about 20 - 30 request per hour. I don't want the IIS or cassini web server as a requirement on the client side. Only my console app + dependencies.
I already tried servicestack.net which looks very promising and has an example for a console host. Howevery I din't manage to get JSON out of the console host (only xml).
Any ideas how to use servicestack.net or alternatives are welcome.
By the way: The client will be an Android phone and since my current approach IIS + WDSL + kosap2 (on the phone) causes more trouble than it solves so I really want to try a lightweight standalone JSON solution.