probably you all ask why I tagged Java, jsp, Objective-c, xCode... in that question, actually that is my question, how efficiently combines them all? I have two servlets running in localhost, one handle the "Clients" and the other handle "Professionals". In the two servlets i can make a registration and ask for queries from the database, I'm using SQL database. I would like to write an iOS 6 application using this servlets, and make the same things, so how can I write an application that will use the exist code without duplication of an exist code? All of the logic exists in the servlets, registration, asking for prices, write comments about professionals... How can I write an application that will use this website?
I will give three examples:
- In the registration of a client or a professional, he enters his phone number, so in the application i don't need to enter the phone number; I suppose that there is a function that can bring the phone number. So all we need is to insert the phone number in the specific text field.
In the client site I have an order: for a professional by the client, so, in the application, I would like that the place of the client will be send to the professional, using his current GPS position.
When a client order a professional, I would want that the application will send a push notification using apns (Apple Push Notification), for "waking up" the professional application and upload the exist page that manage the orders.
I guess this question came before and solved by experienced programmers. So maybe there is a simple way not to duplicate the exist code that I have in the servlets. Only to use it. Can you refer me for a starting point? References? Guides?