Using Webservice + Sqlite

Asked

Viewed 579 times

2

My doubt is the following, I am developing an application that has an access to a Webservice, however I think it is important to save some internal data in the application, as for example, if the guy logs in but has no internet it disables the application, so I need to make sure that when the guy has it online he takes all the new information on Webservice and adds it on Sqlite, but I also need it when it goes online if there are new things on Sqlite he updates on Webservice.

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

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

1 answer

3


In the wikipédia as regards a WEBSERVICE can be read:

Web service is a solution used in the integration of systems and communication between different applications.

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

That said, it’s also relevant to say that you can ensure some time of communication failure by maintaining some functionality of an application that doesn’t depend on the online service, or by building the application that can handle the offline performing a POOL of records that will later be sent.

The techniques are various depending on the implementation and the situation. Also refers to the SQLITE, this can for example record some activity and when the application detects the online then carry out processes that synchronize with the WEBSERVICE.

  • Hmm, so I must study more about the pool and the possibilities of sqlite ?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.