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 08-22-2008, 11:06 PM   #7 (permalink)
Trilitech
New Member
 
Join Date: Aug 2008
Posts: 28
Default

realberen - Currently it doesn't handle sending complex objects as part of the message, it can just receive them. (that's all I needed for my app, so I didn't take it that far). The REST handling is built in on the ASP.NET side, so if you can figure out the parameter names it expects for these complex objects, I don't see any reason why you couldn't create a generic method to convert your XCode objects into those parameters.

wtyphoon - Definitely no base 64 support either. Although you should receive the string value back and be able to decode it in the XCode.

As far as whether it's better to take this approach or just call rest and handle it manually for each web service call, it was a no-brainer for me. It's a royal pain to deal with three different methods to receive the open tag, close tag and contents, and keep track of all your nesting to and build out your object tree. The missing "built-in" classes provide you with a nice object tree instead of the series of methods which is FAR easier to convert into your custom objects. That's what I set out to replicate here.

I'm still absolutely shocked Apple would leave this core functionality on a platform made for developing web connected mobile apps. I'm still holding out hope this will eventually be added. In theory, once it is, I can just swap out this code for the built-in libraries without having to change all my code that converts the result into my custom objects.
Trilitech is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,838
Threads: 89,210
Posts: 380,645
Top Poster: BrianSlick (7,129)
Welcome to our newest member, hariky007
Powered by vBadvanced CMPS v3.1.0

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