Kevin
Kevin

Reputation: 13226

Connect iPhone to a Web Service?

New to iPhone development and working through exercises and examples to get me up to speed. Does anyone have a good reference for connecting an iPhone app to a website/webservice and push/pull data?

Upvotes: 0

Views: 4369

Answers (3)

Barry Wark
Barry Wark

Reputation: 107764

I have not used Core Resource yet, but it may be what you're looking for. It claims to provide (from the project's front page):

  1. Easy querying into a webservice, e.g.:

    [Note findAll:$D(@"Buster", @"author", @"createdAt DESC", @"$sort")];
    
  2. Automatic serialization of returned results into a Core Data context

  3. Easy resource-based tables using CoreTableController, e.g.:

    [self fetchForRelatedResource:parent withSort:@"lastName ASC"];
    

Upvotes: 2

Bennya
Bennya

Reputation: 554

If you have a wsdl file of the service you can use an automatic tool to build your service proxy and all the needed code in seconds.

SampleServiceProxy *proxy = [[SampleServiceProxy alloc]initWithUrl:@"YOUR
        URL" AndDelegate:self];
[proxy GetDouble];
[proxy GetEnum];
[proxy getEnum:kTestEnumTestEnum2];
[proxy GetInt16];
[proxy GetInt32];
[proxy GetInt64];
[proxy GetString];
[proxy getListStrings];

Upvotes: 0

Nava Carmon
Nava Carmon

Reputation: 4533

This one worked for me: SOAP/web services

Upvotes: 1

Related Questions