1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
    zied jouini is on a distinguished road

      0  

    Default Unanswered: consume a web service with sencha touch 1

    Unanswered: consume a web service with sencha touch 1


    SALAM all.
    please i want to soncume a web service made with WCF, with sencha touch 1.
    here is a link to my web service 'http://localhost:8732/Service1/data/10' its return a JSON file
    {"Id":10,"Name":"Leo Messi"}


    Now i want to consume it with sencha touch 1, i try few code but without success.
    please how can i consume it. its very important for me.
    thank you

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,111
    Answers
    678
    Vote Rating
    470
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Moving to ST forums.

    Your JSON does not have a root .. are these defined in your store/proxy?

    Code:
    {
        success: true,
        data: [
            {id_user: 1, user_name: 'ADMIN', first_name: 'System', last_name: 'Admin'}
        ]
    }
    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
    zied jouini is on a distinguished road

      0  

    Default


    Thank you scott for your response.
    But i don't yet have a store file or a proxy.
    this JSON file which i have: {"Id":10,"Name":"Leo Messi"} its returned from my web service.
    I think that for consuming this web service i have to use EXT.request but how ?
    thank you


Thread Participants: 1

Tags for this Thread