1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    8
    Vote Rating
    0
    swathi001 is on a distinguished road

      0  

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

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,532
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Vote Rating
    -1
    Answers
    4
    venkatesh.R will become famous soon enough

      0  

    Default DYNAMIC WEBSERICE URL IN APPLICATION

    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,