Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-10-2008, 10:33 PM   #36 (permalink)
Fontano
Tylenol is my friend
 
Join Date: Oct 2008
Location: Midwest
Posts: 150
Default

The one thing that has helped me parse the XML streams is to think of it as a water faucet.

As the flow of data comes pouring in from the data source, you redirect it to different pipes on the fly. Evaluating the elements to determine which pipe path you go down.
Store all the water/data in a bucket (storage variable) till you hit the end of the flow (end of the element).

Then dump the bucket into it's final container (class variable, dictionary object, what ever). Then go back up the pipe structure and watch the flow again, till the flow ends.

-------

Back to part of the SOAP discussion.
In my recent research, it is becoming very apparent that REST is growing in popularity and in support. Not just on the iPhone, but also the BlackBerry and Android.

For those of you with SOAP webservices now; You could use different tools to create a REST Wrapper around your SOAP... even if the SOAP is hosted by someone totally else. I was able to do this with .NET fairly quickly, capturing the SOAP calls via the SOAP extensions, and returning just the SOAP Message segment as a raw XML stream.

Granted I am just doing it a temporary solution, as I work on the iPhone product and another team works to add formal REST support to our services.

My suggestion would be to limit the amount of time and energy to stuff SOAP into your iPhone app, but to look at the core webservice to see if it can be converted to REST, or with at least a REST wrapper. Especially if it is going to be a widely used WebService by multiple platform.
Fontano is offline   Reply With Quote
 

» Advertisements
» Online Users: 830
25 members and 805 guests
ADY, anshuk1219, cinquiemeas, ckgni, Desert Diva, dfvdan, GFish, GHuebner, ilmman, iph_s, joeallenpro, john love, keeshux, marcelglaeser, marto1914, nfung, nru, oztemel, RoryHarvey, supasounds, tomtom100, VikMyr, waq963, _Mac
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,868
Threads: 89,225
Posts: 380,692
Top Poster: BrianSlick (7,129)
Welcome to our newest member, stokesreece
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.