开发者

calling Web service from iphone application

There is a file iPhone.asmx, which is written in vb.net and is hosted on a serve开发者_运维问答r. I need to access that web service without using SOAP. How can I do that?


Based on that website, it is possible to call a WS without SOAP in the iphone. You only have to pass the parameters of your WS in the query string. So your code will look like :

NSURL * url = [NSURL initWithString:@"http://host.com/WS?param1=val1&param2=val2"];
 NSURLRequest *request = [NSURLRequest initWithURL:url];
 NSURLConnection *connection = [NSURLConnection initWithRequest:request delegate:self startImmediately:YES ];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜