Atlas/AJAX Javascript proxy
This is kinda cool. I have created a web service. It's fairly simple and just returns a DataTable. I wanted to see what the Javascript proxy looks like in Atlas so I just requested the following url, note that I am using .NET 2.0 and the local dev web server:
http://localhost:17817/Chapter10Sample/WebService.asmx/js
The result is the following proxy:
var WebService = { path: "/Chapter10Sample/WebService.asmx", GetProjects:function(onMethodComplete, onMethodTimeout, onMethodError) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "GetProjects",{}, onMethodComplete, onMethodTimeout, onMethodError); } }
Wally