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 information to the console
Performance is not a problem as 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 application and 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 + kSOAP 2 (on the phone) causes more trouble than it solves, I really want to try a lightweight standalone JSON solution.
Maybe I’m incorrect, but I suppose you could use WCF hosted in a console application.