Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newDeveloper

macrumors newbie
Original poster
Jun 13, 2010
12
0
Does anyone have any examples of web services for an iPhone application?

I basically want to communicate with a web server and pull down information such as images for display or text for an articles page. I can't seem to find any great online references for how to develop this.

References or examples would be excellent, if you could just point me in the right direction.

Thank you,
 

skunkworker

macrumors regular
Sep 9, 2007
182
20
Look into using something like REST on your server. all you need to do is create an NSURLRequest pointing to the server and sending a block of data in the POST or GET function. Then put that into NSURLConnection and voila you have it.

Although on the server side there needs to be a program running that once it receives the data it sends data back as a response to the request.
 

chown33

Moderator
Staff member
Aug 9, 2009
10,750
8,422
A sea of green
What have you tried?

I googled cocoa touch web services and found no shortage of results.

Other search terms:
cocoa touch "web service"
cocoa touch "web services"
cocoa touch "web service" client

You might also find this useful:
http://code.google.com/p/cocoaasyncsocket/

Your question is fairly vague. A webview could logically satisfy all your criteria.

Be more specific about what kinds of servers you need to download things from. What protocols, what kind of content, etc.
 

newDeveloper

macrumors newbie
Original poster
Jun 13, 2010
12
0
Well, I have researched the subject, specifically through the Apple developer documentation. The do not provide a ton of examples, which is how I personally learn.

CFNetwork.pdf among other available documents.

I guess I was interested in understanding if there were any open source examples out there that would demonstrate the functionality - lots of Hello World and more simplistic application examples available in texts, but when you get into this domain, I feel a little short on practical tutorials.

Thanks for the info, I'll continue my search.
 

skunkworker

macrumors regular
Sep 9, 2007
182
20
Well, I have researched the subject, specifically through the Apple developer documentation. The do not provide a ton of examples, which is how I personally learn.

CFNetwork.pdf among other available documents.

I guess I was interested in understanding if there were any open source examples out there that would demonstrate the functionality - lots of Hello World and more simplistic application examples available in texts, but when you get into this domain, I feel a little short on practical tutorials.

Thanks for the info, I'll continue my search.

What do you need corefoundation for that the NSURLConnection can't do?
 

newDeveloper

macrumors newbie
Original poster
Jun 13, 2010
12
0
Good question, actually. In fact, your question tells me that I am looking in the wrong place to begin with. Let me start there then. Any good examples out there? My text has some using NSURLConnection, so I'll go down that path first. Thank you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.