History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-13968
Type: Bug Bug
Status: Closed Closed
Resolution: Not a Bug
Priority: None None
Assignee: Trevor Baker
Reporter: Peter Connolly
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Flex SDK

Web service array marshalled correctly in Flex 2 not marshalled in Flex 3

Created: 12/13/07 12:11 AM   Updated: 03/22/08 01:17 AM
Component/s: RPC: WebService
Security Level: Public (All JIRA Users )

File Attachments: None
Image Attachments:

1. WebServiceResponseWithArraysUnderFlex2.JPG.jpg
(117 kb)

2. WebServiceResponseWithArraysUnderFlex3.JPG.jpg
(107 kb)

Severity: Non Functioning
Reproducibility: Every Time
Discoverability: High
Found in Version: (Planning) SDK 3.0 Candidates
Affected OS(s): Windows - XP
Steps to Reproduce:
Steps to reproduce:
1. Array in Web Service response is correctly marshalled to an ArrayCollection in Flex 2 result object.
2. Switch to Flex 3 Beta 2 using same source as in #1, rebuild and run
3. Examine result object after response is received in Flex 3
 
 Actual Results: First array in web service response has the correct number of occurrences, but all occurrence elements are 'null'
 
 Expected Results: First array in should have valid objects in each of the occurrences. I've included screenshots of before and after.
 
 Workaround (if any): NONE!!! Flex 2 works for arrays in web service responses, but it does not work for arrays in web service requests (see bug SDK-13966).
 
 Notes: Not sure if "(Planning) SDK 3.0 Candidates" is the right version. I downloaded Flex 3 Beta 2 Builder (stand-alone) and then unzipped the 2007/12/12 SDK into that directory. So I should be running the latest release.

 
Language Found: English
Bugbase Id: none
QA Owner: Trevor Baker
Resolved by: Svetlin Kalaydjiev
Participants: Bill Sahlas, Peter Connolly, Serge R, Svetlin Kalaydjiev and Trevor Baker
Browser: Firefox 2.x
JDK: Sun 1.6.x


 All   Comments      Sort Order:
Peter Connolly - [12/13/07 12:14 AM ]
Shows a web service response with arrays under Flex 3 Beta 2, showing 'null' objects incorrectly marshalled into the 'apCourses' ArrayCollection. The other screenshot shows the expected objects in the 7 occurrences.

Peter Connolly - [12/13/07 12:16 AM ]
This screenshot shows the Flex 2 debugger view of the web service response object having correctly marshalled the 'apCourses' objects. No source was changed between the Flex 2 and Flex 3 Beta 2 runs.

Bill Sahlas - [01/03/08 12:47 PM ]

Svetlin Kalaydjiev - [01/07/08 02:53 PM ]
I suspect this is the same issue as https://bugs.adobe.com/jira/browse/SDK-13966

Peter, could you please confirm that this is no longer a problem? If this bug still exists, could you provide the sample mxml file that calls the webservice, the wsdl, as well as the captured SOAP response?

Thanks

Peter Connolly - [01/07/08 10:22 PM ]
I'm looking into this now.

Peter Connolly - [01/09/08 01:10 PM ]
Re-ran this scenario under Flex 3, Beta 3 and the bug no longer exists.

Svetlin Kalaydjiev - [01/09/08 03:16 PM ]
Thanks Peter,

I am marking this resolved.

Serge R - [03/22/08 01:16 AM ]
I think I can reproduce the same bug on Flex 3 Release with my web service. It used to work in Flex 2.0.1 and now it is broken in Flex 3. Same issue where ResultEvent.result returns an ArrayCollection object with correct number of null values. See the output packet below.

  <?xml version="1.0" encoding="UTF-8" ?>
  <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
      <n1:ChapterContentsResponse xmlns:n1="urn:ActionWebService"
          env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <return n2:arrayType="n1:ContentItemWS[4]"
            xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/"
            xsi:type="n2:Array">
          <item>
            <data xsi:type="xsd:string">&lt;paragraph background=&apos;#FFFFFF&apos; type=&apos;normal&apos;&gt;
  &lt;text&gt;
  &lt;TEXTFORMAT LEADING=&apos;2&apos;&gt;&lt;P ALIGN=&apos;LEFT&apos;&gt;&lt;FONT FACE=&apos;Monaco&apos; SIZE=&apos;12&apos; COLOR=&apos;#000000&apos; KERNING=&apos;0&apos; LETTERSPACING=&apos;0&apos;&gt;My document (debug)&lt;/FONT&gt;&lt;/P&gt;&lt;/TEXTFORMAT&gt;
  &lt;/text&gt;
  &lt;/paragraph&gt;</data>
            <data_uid xsi:type="xsd:string">chapter/0/paragraph/1</data_uid>
            <chapter xsi:type="xsd:int">0</chapter>
          </item>
          <item>
            <data xsi:type="xsd:string">&lt;image-row align=&apos;left&apos;/&gt;</data>
            <data_uid xsi:type="xsd:string">chapter/0/image-row/2</data_uid>
            <chapter xsi:type="xsd:int">0</chapter>
          </item>
          <item>
            <data xsi:type="xsd:string">&lt;paragraph background=&apos;#FFFFFF&apos; type=&apos;normal&apos;&gt;
  &lt;text&gt;
  
  &lt;/text&gt;
  &lt;/paragraph&gt;</data>
            <data_uid xsi:type="xsd:string">chapter/0/paragraph/3</data_uid>
            <chapter xsi:type="xsd:int">0</chapter>
          </item>
          <item>
            <data xsi:type="xsd:string">&lt;image-row align=&apos;left&apos;/&gt;</data>
            <data_uid xsi:type="xsd:string">chapter/0/image-row/4</data_uid>
            <chapter xsi:type="xsd:int">0</chapter>
          </item>
        </return>
      </n1:ChapterContentsResponse>
    </env:Body>
  </env:Envelope>


Serge R - [03/22/08 01:17 AM ]
Any information how to work around is very appreciated.

Thanks in advance.