0 Replies Latest reply on Oct 11, 2010 12:35 PM by MSCSALT

    Web service wrapper in FB4 ignores Element when Attribute exists


      I created a web service wrapper in Flash Builder 4 using the "Data --> Connect to Data/Service... ".


      The WSDL contains a type like this:

      <xs:complexType name="Description">
        <xs:extension base="xs:string">
         <xs:attribute name="languageCode" type="xs:string"/>

      In the response XML this type looks like this:

      <ns2:Description languageCode="en_US">My Description</ns2:Description>

      In this case the code generator ignores the element value ("My Description") and just creates a property for the attribute (languageCode="en_US").

      BTW: Not mixing elements and attributes in one type would be a possible solutions, but I usually deal with web services I did not implement and I therefore can't change.

      Has anyone had this problem and hopefully solved it?