Reputation: 257
I am developing an app using jqm+phonegap. In my app, user need to set some parameters and calculate results. Now, i want that at the end of calculation, when the user clicks on a button, all the data (all the settings and calculated results) be saved on a remote server. How can i do that? Please help. Should i write some kind of web service and place that on the server and the button click would invoke this service?
Upvotes: 2
Views: 1269
Reputation: 4532
With full respect to the previous answer, there are simpler ways of achieving simple storage (with no server-side processing) of data - whether local or remote (of course only if you do the calculations on the client side and looking only at storing data remotely).
For example, a CouchDB solution would allow your client code to directly talk via REST to a DB to store/retrieve/query your data (using Javascript!), in a VERY SIMPLE way - a lot simpler than SOAP/WSDL webservices (and probably faster - one less layer).
Of course there's a learning curve, but I can assure you it's going to be peanuts comparing that to learning SOAP/WSDL/PHP/JAVA. Always pick the right tool for the job.....
First you need to decide WHAT exactly you are trying to achieve, and then start worrying about the HOW.
Just my $.02... Hope this helps
Upvotes: 1
Reputation: 9311
Yes, you need to create some form of interface on the target server, which your application then can use to post and pull data. The most common way to achieve this is to create a SOAP/WSDL webservice. There are libraries and frameworks for PHP, Java and all the other technologies. You can easily use those to create what you need.
Upvotes: 0