Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 3.5 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. Create simple web service that has a two string arguments, both required.
2. Consume web service in Flex using WebService
3. Pass first argument as "null" and second argument as "notnull"
Actual Results:
Call to web service fails, the first argument is missing.
Expected Results:
Web Service call should work.
Found that the issue occurs in XMLEncoder.encode(), Line 116 (Flex 3.5 SDK) at:
if (content != null)
result += content;
For example of the effect of this line, run the following snippet, the output is fail.:
private function operatorTest2():void {
var xml:XML = <inputData>null</inputData>;
if (xml != null)
{ trace("success"); } else { trace("fail"); }}
Workaround:
Not tested within the Flex SDK yet, but using strict inequality makes it success:
private function operatorTest2():void {
var xml:XML = <inputData>null</inputData>;
if (xml !== null) { trace("success"); }
else
{ trace("fail"); }}
Tested on 3.5 and 4.0, Flash Player 10.