Configurationless WCF using Factories and JSONP
- by FlySwat
I'm using the WebServiceHostFactory in my WCF services to avoid having to create a crapton of binding configuration in web.config.
However, I'd like to expose the services as XML/JSON and JSONP.
Reading: http://jasonkelly.net/archive/2009/02/24/using-jquery-amp-jsonp-for-cross-domain-ajax-with-wcf-services.aspx
It does not look like I can extend WCF to add JSONP without resorting to a mountain of custom binding config.
So, for those who have done it, is it possible to have a restful WCF service that responds in XML/JSON/JSONP depending on the UriTemplate, without resorting to a ton of config wiring?