Results 1 to 8 of 8

Thread: Call cross domain webservice call with network credentials

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Post Call cross domain webservice call with network credentials

    Hi Guys,

    I got a question

    I need to call a webservice, but it must be authenticated using credentials. I don't know how i can achieve it using sencha.

    Please share your views.

    i am open with jQuery/ java script calls as well.

    Thanks in advance

    Cheers!

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,380
    Vote Rating
    1524
      0  

    Default

    You mean send username/login credentials via the headers or as parameters?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Default

    In the header.

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Via header.

  5. #5
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,380
    Vote Rating
    1524
      0  

    Default

    Ok, so use the headers config of the request method.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  6. #6
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Can you please give an example?

  7. #7
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,380
    Vote Rating
    1524
      0  

    Default

    I'm sorry I wasn't thinking correctly. Using JsonP there is no way to set headers as all JsonP is is a <script> tag.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  8. #8
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Actually need to call a Webservice and it will return XML response.
    Any thoughts?

Posting Permissions

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