I'm in the middle of working on my first native application with networking and I have a question regarding the best way for interacting with remote storage. In a perfect world I'd like to do the following.
- Prompt the user for login information from the iPhone.
- Verify the users credentials and connect to a MYSQL database hosted by myself.
- Parse MYSQL data into a table view.
- Allow the user to add or update information in the database.
I've read some similar questions posted, maybe something's lost in translation, but the two most common means I've come across are.
- Create a web service for handling these requests using SOAP/REST/JSON (no experience doing this, but would like to learn if it's a better implementation)
- Write PHP scripts (enough experience to get by) that will grab data username/password/requests securely from my
NSURLRequest
and echo theNSData
as XML and parse it with anNSXMLParser
.
Are there other options? Is one a better implementation over the other? (web services come up more in searches)
Thank you in advance for taking the time to read my question and possibly clearing up any confusion.