Hi Team,
I am trying to post registration information to the remote web service. I am not sure what is going wrong here. My Webservice works fine if I use normal ajax method to post.
Any assistance in this is highly appriciated.
var ServiceUrl = "http://192.168.1.7/MTServices/Service.svc/ValidateUsr/";
var objLogin = new Object();
objLogin.LoginNm = "abc@siplnet.com"
objLogin.Password = "abcdef"
function fn_Login() {
scmEventTypeList = {
model: {}
};
dsUsrList = kendo.data.DataSource.create({
schema: scmEventTypeList,
transport: {
read: {
url: ServiceUrl,
contentType: "application/json; charset=utf-8",
dataType: "jsonp"
},
parameterMap: function(options) {
return JSON.stringify(objLogin);
}
},
error: function () { alert("Error"); }
});
$("#ulUsrInfo").kendoMobileListView({
dataSource: dsUsrList,
template: $("#TmpUser").html()
});
}
I am trying to post registration information to the remote web service. I am not sure what is going wrong here. My Webservice works fine if I use normal ajax method to post.
Any assistance in this is highly appriciated.