Results 1 to 3 of 3

Thread: consume a web service with sencha touch 1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
      0  

    Default 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,390
    Answers
    716
    Vote Rating
    498
      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
      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


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •