tags:

views:

14

answers:

1

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 .net (.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

A: 

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.

Simone Maynard