I have a current application where a client-side ClickOnce app hits up an ASMX web service for various information. It works fine, but is a bit slow. Part of the problem is that it returns large objects, when broken down to SOAP turns what was a large object into an unholy mess of XML tags that blow up the size of the payload by a huge factor.
Anyway, to fix this, I was thinking of rewriting this setup with something more lightweight using technologies I've heard a lot about, but never really used for more than a "Hello World" app.
So I was thinking of doing a REST api that returns JSON objects. Giving that JSON is a much more compact format, that should alleviate the size of the message problems. And, unless there is something I don't know, it's not more intensive to parse than SOAP XML.
Questions:
- Are my assumptions sound?
- What technologies should I use to implement REST and JSON? I've heard of WCF Web API, but it looks like it's not even complete. What are my options?
- Is there something nasty about WCF, REST and JSON that I should know before I embark upon this?