Results 1 to 3 of 3

Thread: What is the best way to define web service entry in the project

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default What is the best way to define web service entry in the project

    Hi All,

    I am developing mobile application in sencha touch 2.x.x. The problem i am facing is defining web service entry in the project. Right now my web service entry is in the store with proxy call using URL what if my web service URL get changed later app is uploaded. Even i wants create 2 web services one is for staging and second one is for production because if one web service fails backup web service should work. What if i created new web service once app is uploaded i don't want to release new version with same feature. Is there any way to change web service dynamically. Right now i am hard coding web service entry in the app level and using in store proxy. Provide me some suggestions.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    The only way to dynamically change the URL is to have some service that loads the app preferences so you know what url to use. Another way is to keep the url the same but the endpoint in your server side code can differ.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -1
      0  

    Default DYNAMIC WEBSERICE URL IN APPLICATION

    @Mitchel,

    Can we use Config.Util Singleton class to call remote web service referring the link mentioned below,

    http://mitchellsimoens.com/2012/06/s...encha-command/

    If the above link can be used, then how can able to pass webservice url dynamically and do we need to design Configuration Screen to pass WebService URL to access??



    Thanks,

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
  •