Can anyone point me to some example code that shows how to setup a cross domain webservice that will return JSON in a .asmx / ASP.NET 3.5 page? Cant seem to find a comprehensive examples.
I want to avoid MVC or WCF - especially now that the ASP.NET Web API is the latest and greatest but the smoke hasn't cleared w respect to native support (I think). Ive seen folks saying that a custom formatter can be added to the Web API formatter collection etc but that the code only works with the CodePlex version and builds are in flux and better to wait for RTM.
Ive set up successful web services in asmx pages and used jQuery to get JSON but now need to deliver an API so external partners on other domains can hit the service and get JSON formatted data back. My weak understanding is that callbacks are required along with it being neccessary to add an HttpModule to set the content-type ?
Cheers & thanx in advance !