Hi I am calling WCF function in Jquery.
service take fraction of second to return list of questions.
but it take 6-7 second to come in success function. How to reduce this time?
plz help.
Jquery call
jQuery.support.cors = true;
return $.ajax({
type: _Type,
data: _Data,
contentType: _ContentType,
dataType: _DataType,
processdata: _ProcessData,
crossDomain: true,
async: false,
url: MyUrl,
success: function(msg) {
<big> ServiceGetQuestion(msg);</big>
},
error: ServiceFailed
});
In Wcf Service.
[OperationContract]
[WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
List<Question> GetAllQuestion();