Jun 16, 2011, 2:01 PM
Error 404.15 on AjaxMethod.Request with JSon
Hi,
I have a problem with an AjaxRequest. I tryed to make a request to my webservice in JSon.
As the parameters are added to URL (as for a get), it's blocked and I receive an error 404.15 (query too long).
I would need to receive my result in JSon format and I don't know how to do.
Is it possible to not have the params in the url with json?
Here is my code :
I have a problem with an AjaxRequest. I tryed to make a request to my webservice in JSon.
As the parameters are added to URL (as for a get), it's blocked and I receive an error 404.15 (query too long).
I would need to receive my result in JSon format and I don't know how to do.
Is it possible to not have the params in the url with json?
Here is my code :
var queryTerms = '[ ...very long string : length 1700... ]';
Coolite.AjaxMethod.request({
url: 'DetailItemGet.svc',
method: 'post',
cleanRequest: true,
json: true,
params: {
Id: 2,
UserId: 4,
queryTerms: queryTerms
},
success: function(result) {
alert("success");
},
failure: function (errorMsg) {
alert("error");
}
});
Last edited by Spootnick; Jun 16, 2011 at 2:48 PM.