i am new to iOS Development so please go easy on me.
I have an existing ecommerce site set up using oscommerce that requires a user to log in to view products, i want to build an app that will access this store.
That being said i have been able to successfully connect to the store using the ASIHTTPRequest Library. The only thing i am unsure of is how to get the information back so that i can build my application. i have heard people saying XML, and JSON but i guess i am still not sure how i can get the data on my site into my app. like getting categories into a uitableview for example.
Does anyone have any examples or links to where i might start.
2
Answers
In this function you will get the response of server i:e the ResponseData returned by server,
all you need is to parse this data and save it locally for further use.
For parsing you can there are options to use NSXMLParser, TouchXMLParser, JSON
parsing. Its on you what to use.
I work on a hosted tool called Kumulos that allows you to connect iOS applications to remote data sources (such as your oscommerce installation) by creating an intermediate web service.
With Kumulos you build API methods to access your data from the iPhone. Your API-related Obj-C is built for you, and when you call the API, your iOS app will receive native Obj-C data types, avoiding the need to parse any JSON or XML. This makes integration quick and painless.
It’s currently in beta testing and free to use. We’d love to hear your feedback if you’re interested in giving it a try.
We have a video tutorial on how to hook up an app to wordpress, and the idea should be the same for oscommerce. You can see more information and register at: http://www.kumulos.com
Disclaimer: I am one of the developers involved in Kumulos