consuming a WCF RESTFUL web service with sencha touch 1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zied
    New Member
    • May 2012
    • 2

    consuming a WCF RESTFUL web service with sencha touch 1

    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
    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); 
     }
     });
    but only the failure function work, i can't retreive the expected data.
    how can i fix it.
    thank you
Working...