开发者

consuming a .net web service and nsoperation

I am writing an ipad app that's going to list data, including images, from a WS.

I am going to consume a web service written in .ne开发者_JAVA百科t (.asmx). I looked at 2 examples,

  • the seismicxml that uses NSOperation and uses an xml feed.

  • another awesome example from Wei-Meng Lee that does not use NSOperation but shows how to make the soap envelope and uses an asmx service.

My question: is it better to use NSOperation and threading? Or should I just forget about it and go with the simple implementation?

Plz help me, I am confused!

Thanks, Simone


The SeismicXML and the LazyTables are good examples that show how to load images from a web service in a UITableView using NSOperation and xmlParser. But the NSURLConnection request is called outside the NSOperation, so I had to modify it a little to suit my purposes. Another good example that I found is the LinkedImageFetcher which shows how to fetch images from a website, and includes NSURLConnection request inside an NSOperation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜