PDA

View Full Version : Ext.ajaxRequest on .net WCF problem



supera
7 Jul 2015, 6:42 PM
Hello everyone,


I would ask the help of you, I have a problem in the Ajax request to a WCF service.

Follow my code:

Request


Ext.Ajax.request({
url: '/Servers/Service1.svc/getStore',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
jsonData: {
pSQL: 'select * from table'
},
success: function (response) {
var result = Ext.decode(response.responseText);
},
failure: function (response) {
var error = response;
}
});


On the server side can smoothly debug the getStore method of my service.
Everything goes smoothly, however when the service will return the object to the Ajax request is that the request was abandoned. At this point is returned as failed for the request, however no information.

Follows a print tracking network and request return:

52803

52804

thanks in advance

slemmon
14 Jul 2015, 7:28 AM
If you don't process the request on the server, but instead just return:
{ success: true }
does the Ajax request callbacks process as you'd expect?

I suspect that will work just fine and the troubleshooting you'll need to do is on the server side, not the client code on the browser end.

mitchellsimoens
14 Jul 2015, 7:45 AM
Is there another ajax request that occurs that may abort the currently running one?