How to use a web service in Objective-C?

I have a web service developed in ColdFusion that I am trying to use on an iPhone. The web service returns JSON, which should be easy enough to read.

However, I could not find a good simple example of an iPhone application that calls a web service and uses data. Are there any good tutorials or examples that I just skipped?

+5
source share
3 answers

a. Get ASIHTTPRequest .

C. Get the json-framework .

. A -, B, .

.

+11

, 2

1- ,  [NSString stringWithContentOfURL: url] -.

2- NSURLRequest/NSMutableURLRequest NSURLConnection, , NSURLRequest http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/Reference/Reference.html, , URL-, (get, post) httpHeaders, , , , NSURLConnection heres reference, http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html, , sendSynchronousRequest initWithRequest, ( async), ( NSData o bject , , ( - ).

SO, , , , heres one link POST GET iphone?.

json framework, JSON , heres , , http://iphone.zcentric.com/2008/08/05/install-jsonframewor/

+1

All Articles