开发者

consuming a .net web service and nsoperation

开发者 https://www.devze.com 2023-01-14 03:11 出处:网络
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,

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

精彩评论

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