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¶m2=val2"];
NSURLRequest *request = [NSURLRequest initWithURL:url];
NSURLConnection *connection = [NSURLConnection initWithRequest:request delegate:self startImmediately:YES ];
精彩评论