I have not configured an environment before. However, I have worked in an environment which is restful and basically calling the service was as bare-bone as calling the service URL using AJAX calls from the javascript.
Now, I am in a WCF environment and I am laying out the service here. It sounds like WCF requires a lot of configuration on the client side including a client proxy class (I guess for each service that we want to call?)
This is a lot of boilerplate code that I am going to write here. That is fine but out of curiosity I am just wondering that what is advantage of using WCF and its client Proxies as oppose to simple RestFUL AJAX calls which will return JSON objects to your Javascript. Also this produces more questions like:
- Can I use WCF with javascript/AJAX environment? Because there is no way that Javascript is going to be able to create a proxy for it
- Even ASMX model was not requiring proxy. Then why WCF added this proxy? what advantage does WCF/proxy have compared to ASMX without any proxy?