2010-05-04 61 views
0

新的iPhone開發和工作通過練習和例子,讓我速度。有沒有人有一個很好的參考連接iPhone應用程序的網站/ Web服務和推/拉數據?將iPhone連接到Web服務?

+1

退房http://stackoverflow.com/questions/1018369/accessing-web-service-from-iphone – s1mm0t 2010-05-04 17:18:40

+1

在這裏爲SO iPhone開發最問的問題 – Daniel 2010-05-04 17:20:30

回答

2

我沒有用Core Resource還,但它可能是你在找什麼。它聲稱提供(從項目的頭版):

  1. 輕鬆查詢到一個Web服務,如:

    [Note findAll:$D(@"Buster", @"author", @"createdAt DESC", @"$sort")]; 
    
  2. 返回結果到核心數據上下文

  3. 自動系列化使用CoreTableController的簡單資源表,例如:

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

如果您有服務的wsdl文件,您可以使用automatic tool在幾秒鐘內構建您的服務代理和所有需要的代碼。

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];