Using WebService + SQLite

2

My question is the following, I'm developing an application that has an access to a WebService, but I think it's important to save some internal data in the application, for example, if the user logs in but has no internet, , so I need to make sure that when the guy is online he gets all the new information in the WebService and adds it to SQLite, but also when he comes online if he has new things in SQLite he updates in WebService.

An example to understand, has a list of students of computer course, and I make the call through an application through WebService, but the internet has fallen, but I still need to make the call, okay. I made the call, but when I'm on the internet, I need this call to be sent to the WebService server, so that the owners of the school can see it. (It's just an example).

How to do this? Is there a tutorial that teaches me something similar? What direction of studies do I need to go to do this? What methods?

    
asked by anonymous 26.05.2015 / 18:46

1 answer

3

In wikipédia with regard to WEBSERVICE you can read:

  

Web service is a solution used in system integration and   communication between different applications.

Since in your case the applications communicate with an online service 'internet' and then responding directly to one of your questions, if there are no communications the applications will not be able to communicate.

That said, it is also important to say that you can guarantee some communication time by keeping some functionality of an application that does not rely on the online service, or building the application that can handle offline performing a POOL of records that will be sent later.

The techniques are several depending on the implementation and the situation. It also refers to SQLITE , this can for example go registering some activity and when the application detects the online then perform processes that synchronize with WEBSERVICE .

    
27.05.2015 / 10:51