I am using jquery to do ajax calls:
// omitting the code for the options properties
var options = {
type: Type,
url: Url,
data: '{aString:"abc"}',
contentType: ContentType,
dataType: dataType,
//processdata: ProcessData,
success: function (msg) {
ServiceSucceeded(msg);
},
error: ServiceFailed
};
function ServiceFailed(result) {
alert('Service call failed: ' + result.status + '' + result.statusText);
}
$.ajax(options).done(function () {
alert("success: " + msg);
});
This call works in that the url defined in options is called. The endpoint is a wcf service which I host so I have verified it's called as expected.
I monitor the call with fiddler, and I see nothing wrong with the request or the response. The http response code is 200 OK.
But the function in done is not called. Instead ServiceFailed is run. Why is this? Why is done() not called, and why does jquery consi