Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23185

subclass corresponding to xsd extension decoded incorrectly as parent class from wcf webservice response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.6 (Release)
    • None
    • RPC: WebService
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Install the WCF webservice sample on an IIS server by creating a virtual diretory. Dotnet 3.5 should be installed prior.
      2. Setup the flexunit test project by the name of AdbWCFTest.7z.
      3. Go to line number 18 in WCFTestSuite.as and change the endpoint to your webservice sample.
      4. Run the main application.

      Actual Results:
      two test cases pass and one fails.
      The problem is that the webmethod signature specifies the parent class while the server returns the subclass defined by the extension keyword in xsd schema. When an array of such items is sent(TestGetData3),it is decoded correctly but when a single item is sent(TestGetData2), it is decoded as the parent class only. The child class properties can never be accessed and are lost.

      Expected Results:
      all testcases should pass.

      Workaround (if any):
      none.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: