Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/44.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone中的restfulwebservice_Iphone - Fatal编程技术网

iphone中的restfulwebservice

iphone中的restfulwebservice,iphone,Iphone,如何在iphone中使用Restful Web服务而不是soap?我还建议您首先搜索有关Stackoverflow的问题的可能答案。但是使用REST基础Web服务有一个具体的答案。我极力推荐。他们有一个从服务中检索数据的非常简单的方法。我已经在很多需要访问Web服务的应用程序中使用了该代码 NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"]; ASIHTTPRequest *request = [ASIHTTPRequest

如何在iphone中使用Restful Web服务而不是soap?

我还建议您首先搜索有关Stackoverflow的问题的可能答案。但是使用REST基础Web服务有一个具体的答案。我极力推荐。他们有一个从服务中检索数据的非常简单的方法。我已经在很多需要访问Web服务的应用程序中使用了该代码

NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request startSynchronous];
NSError *error = [request error];
if (!error) {
    NSString *response = [request responseString];
}

它以前被问过很多次。在发布问题之前搜索stackoverflow。看:或者更多。。。此方法是否足以从服务接收数据?我应该导入哪些库文件以使用ASIHTTPRequest?是的,
response
变量将包含从服务返回的数据。转到并下载他们的文件,然后按照说明进行复制。您好,我是ios新手,所以任何人都有调用和解析restfull webservice的工作示例