2010-05-04 65 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];