We have a simple ASP.Net WCF Ajax enabled webservice which is called via the generated Javascript proxy. The service does a Database Stored Procedure call to return an integer count of records. When the call is invoked from the client (IE8 on Windows 7) and the DB call takes while, I cannot call any other Javascript functions. For example one of the dropdown has a onchange event which does not fire until after the web service call completes
Have I mis-configured my WCF service and inadvertently, made it a synchronous call? or is my assumption that WCF Ajax calls are ansync wrong?
Sample Code
var count = MyNameSpace.MyService.GetCount(param1, onComplete);
function onComplete(result){
$get('countLabel').text = result;
}
MyNameSpace.MyService is the automagically generated proxy
Please advise
TIA rams