Hello, I´m new using kendo mobile and I´m trying to invoke a wcf rest service, using xml.
For instance, this login invocation:
var username = "admin";
var password = "admin";
var remoteDataSource = new kendo.data.DataSource({
type: "xml",
schema: {
type: "xml",
data: function (response) {
return response;
}
},
transport: {
read: "http://localhost/MyService.svc/Security/Login?" +
"user=" + username + "&password=" + encrypted,
success: function (result) {
options.success(result);
},
error: function (result) {
options.error(result);
}
}
});
remoteDataSource.fetch();
Where service response has this structure:
<UserData>
<IsSuccess>true</IsSuccess>
</UserData>
That code is executed in a button event and when debugging, success and error functions are never reached.
This call remoteDataSource.fetch() raises an unhandled exception: "Javascript exception: object has no method 'slice'"
Any help is appreciated about using DataSource when response is xml data.
Thanks in advance.
For instance, this login invocation:
var username = "admin";
var password = "admin";
var remoteDataSource = new kendo.data.DataSource({
type: "xml",
schema: {
type: "xml",
data: function (response) {
return response;
}
},
transport: {
read: "http://localhost/MyService.svc/Security/Login?" +
"user=" + username + "&password=" + encrypted,
success: function (result) {
options.success(result);
},
error: function (result) {
options.error(result);
}
}
});
remoteDataSource.fetch();
Where service response has this structure:
<UserData>
<IsSuccess>true</IsSuccess>
</UserData>
That code is executed in a button event and when debugging, success and error functions are never reached.
This call remoteDataSource.fetch() raises an unhandled exception: "Javascript exception: object has no method 'slice'"
Any help is appreciated about using DataSource when response is xml data.
Thanks in advance.