13 Dec 2012 10:37 PM #1
Unanswered: What is the best way to define web service entry in the project
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.
16 Dec 2012 7:56 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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 Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
18 Dec 2012 5:06 AM #3
DYNAMIC WEBSERICE URL IN APPLICATION
Can we use Config.Util Singleton class to call remote web service referring the link mentioned below,
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??