SALAM all.
i'm doing a cross mobile app using sencha touch 1 and i want to consume a RESTFUL web service that i made it with WCF.
the link ti my web service is "localhost: 8732/log/log/admin/pass/admin" and in my sencha touch 1 app, i add this code
but only the failure function work, i can't retreive the expected data.
how can i fix it.
thank you
i'm doing a cross mobile app using sencha touch 1 and i want to consume a RESTFUL web service that i made it with WCF.
the link ti my web service is "localhost: 8732/log/log/admin/pass/admin" and in my sencha touch 1 app, i add this code
Code:
Ext.Ajax.request({
url: 'http://localhost:8732/log/log/admin/pass/admin',
success : function(response, opts) {
var obj = eval('('+ response.responseText+ ')');
Ext.Msg.alert("Bienvenue ",obj);
alert("entre dans la fonction succe");
},
failure: function(response, opts) {
Ext.Msg.alert("error ",response.status);
}
});
how can i fix it.
thank you