Post by Aron / October 6th, 2009

XML to VO – as easy as apple pie!? (demo included)

xml to vo debug dialog

I’m currently working with SOAP web services. While making adjustments to the classes of the wsdl Flex Builder class generator I discovered, that there is an easy way to decode / parse XML to VOs (value objects). The XMLDecoder inside the rpc package does the trick. I’m still confused why there are not more resources on the web regarding this topic but If you want to digg deeper, I strongly recommend reading these blog posts by Dominic De Lorenzo:

Flex 3, XML Schemas & automatic mapping of AS classes to XSD element definitions (Part 1)
Flex 3, XML Schemas & automatic mapping of AS classes to XSD element definitions (Part 2)

I’m not an XML pro and some things in his example I’m still not getting (namespaces in XML, yes well…). Also, his example is in Flex and I just wanted to have a basic example on how this could be useful for my work.

Read on ›