I'm trying to make my mind up in what's the most efficient way to approach my problem with webservices.
My situation: I'm developping an Android app which is storing and retrieving data from a mysql database (on my own server-pc) trough webservices. The webservice executes an sql command and either makes an xml file or stores the data in the database after the user pressed the submit button.
The next case is my problem:
The webservice has to be poked before it will creates the xml. Till now i have to go to the webservice in the browser (xxx.xxx.x.xxx:xxx/webservice.php), and then it will update an xml file ((xxx.xxx.x.xxx:xxx/webserviceList.xml). Ofcourse this has to go automatically.
So if an user sends data to the database (for example: he added a customer), the webservice should update the xml file (so xxx.xxx.x.xxx:xxx/webservice.php has to be entered)
Now i think there are 2 ways to fix this (correct me if there are more ways)
- somehow let the database poke the webservice
- let the app poke the webservice
If there is a way to let the database poke the webservice, that would be the most efficient i guess?? Because my goal is ofcourse to make the app as fast as possible
Otherwise, is there a simple way to let the app touch/poke the website/webservice without sending and receiving data, with the only goal to update the xml created by the webservice?
I hope you guys can give me some advice:)
Thanks in advance!