I am developing an iPhone application for a client. Among other things, the application will allow users to view and place orders for specific (tangible) products.
The client has a website that is currently doing a similar thing, and due to the limited budget and the fact that the website works on a third-party platform on which they have no control, we are exploring possible alternatives to creating a website maintenance .
On the website, user registration and authentication, as well as placing orders, are performed through POST requests through secure HTTP. The response is always a formatted HTML page that will indicate lines indicating whether the request was successful or not, and if an error occurs, what the error is, etc.
So, if I can replicate POST requests on the phone and parse HTML responses to read the results of each request, do you think this is an acceptable alternative to creating a web service for this?
Besides the possibility of modifying the pages (which we can manage) and the fact that I probably have to download and parse a relatively large HTML response, are there any other drawbacks to this solution, and is there anything else that I could lacks?
Thanks a lot in advance for your thoughts. Hurray, Horn
source share