0 Replies Latest reply on Oct 19, 2009 11:26 AM by Peter Farland

    [svn:fx-3.x] 11007: Adding support for <xsd:any /> deserialization to include attributes as properties in addition to child elements .

    Peter Farland Level 3

      Revision: 11007

      Author:   pfarland@adobe.com

      Date:     2009-10-19 11:26:21 -0700 (Mon, 19 Oct 2009)

       

      Log Message:

      ***********

      Adding support for <xsd:any /> deserialization to include attributes as properties in addition to child elements.

       

      Just as with multiple child elements of the same name, an attribute and child element sharing the same name will be promoted to an Array of values (or ArrayCollection if makeObjectsBindable is true).

       

      Since dynamic ActionScript objects can only have public properties added at runtime, attribute namespaces will be ignored and only the localName will be used for the property name.

       

      Simple values that have attributes are supported - a special dynamic SimpleContent type is used to hold the value (the simple content value can be retrieved using toString() or valueOf()) and attributes become dynamic properties on this instance.

       

      Mixed content is still not supported and the cdata content is ignored.

       

      QE notes: Yes, please add a test case that uses attributes in the SOAP response data for <xsd:any> deserialization.

      Doc notes: We may want to add a release note that fixing this bug includes attributes during generic SOAP deserialization for the <xsd:any> scenario.

      Bugs: SDK-23140 - No data while using "Object" as "resultFormat" for Sharepoint WebService

      Reviewer: Svetlin, Tom J

      Tests run: Checkintests, bug test case

      Is noteworthy for integration: No

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-23140

       

      Modified Paths:

      **************

          flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/rpc/xml/XMLDecoder.as