将iPhone连接到Web服务?

时间:2010-05-04 17:08:57

标签: iphone objective-c web-services

iPhone开发的新手,并通过练习和示例来帮助我加快速度。有没有人有一个很好的参考,将iPhone应用程序连接到网站/网络服务和推/拉数据?

3 个答案:

答案 0 :(得分:2)

我还没有使用过Core Resource,但它可能就是你要找的东西。它声称(从项目的头版)提供:

  1. 轻松查询网络服务,例如:

    [Note findAll:$D(@"Buster", @"author", @"createdAt DESC", @"$sort")];
    
  2. 将返回结果自动序列化为核心数据上下文

  3. 使用CoreTableController的基于资源的简易表格,例如:

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

答案 1 :(得分:1)

这个对我有用:SOAP/web services

答案 2 :(得分: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];