VARIABLES USED IN THE SAMPLE CODE:
jsonData = {"userName":"abc123","password":"abc123"}
url = "../Authentication.svc/Login3"
KENDO CALL (fails):
---------------------
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: url,
dataType: "json",
data: jsonData,
type: "POST",
contentType: "application/json",
processData: false
}
}
});
REQUEST PAYLOAD AS SHOWN IN NETWORK TAB OF CHROME DEBUGGER:
[object Object]
RESULT: 400 - Bad Request
------------------------------------------
AJAX CALL (works!):
-----------------
$.ajax({
url: url,
type: "POST",
contentType: "application/json",
data: jsonData,
processData: false,
dataType: "json"
});
REQUEST PAYLOAD AS SHOWN IN NETWORK TAB OF CHROME DEBUGGER:
{"userName":"abc123","password":"abc123"}
RESULT: 200 - Successful
Any ideas or assistance would be appreciated.
Doug
categoryAxis: { baseUnit: "fit", autoBaseUnitSteps: { seconds: [], minutes: [], hours: [], days: [1], weeks: [1], months: [1,3], years: [1] }, maxDateGroups: 36, majorGridLines: { visible: false }}