I love Flex as good UI layer tool for all the good things it provided. However, sometimes, it just nagged you. Backend to my flex application is Java and flex apps talk to the backend via WebService powered by JAX-WS. Since I switched over from JAX-RPC webservice to JAX-WS, I have been getting the error that “Element not resolvable” only because Flex cannot interpret / digest the xsd:import. So, I get around with some ugly hack called Timer, but we all know this is not perfect especially on the slow day for the server. This seems to get fixed on Flex Hotfix2 that’s released recently; however it just introduces a lot other problem, at least seems to me. According to some postings from mailing lists, Flex team did re-write on the webservice portion of the framework. Now, a lot of my webservice methods are getting runtime exception with the hotfix2. One problem I see is, my backend replies with an empty array in one of the property. But flex couldn’t decode that properly and I’ve got fault thrown at with “Property undefined cannot be found on String object”. But it is fine if I request the response as “e4x”. It took me a while to really find out which property this is offending since there is no useful information in the error message and I couldn’t debug the Decoding process without much of the source code. So, hopefully when flex is fully open sourced, it would let me trace better. My project is near to the stabilization period so I couldn’t afford to retest or modify webservice to work with hotfix2. I will just have to modify my ugly fix to be more robust with slower server.
But I am looking forward to more stable and usable webservice support in wonderful Flex world. If you have any thoughts, better hack or work around, I really love to hear from you.
Comments 5
i had the empty array = “Property undefined cannot be found on String” problem too, and seeing the hotfix broke a very important functionality for me, i switched back to hf1. Handling Array XML En/Decoding one aspect of i reported here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1263745&forumid=60
Posted 06 Jun 2007 at 10:28 am ¶Hey Myo,
We’ve been tracking the issues raised in the flex forums and have fixed many issues in the last two weeks, especially with arrays of values. Please email me directly at pfarland@adobe.com and I’ll reply with a new rpc.swc for you to test out. I want to make sure your particular use case is covered in these fixes.
Thanks,
Posted 06 Jun 2007 at 1:48 pm ¶Pete
Thanks Pete. I appreciate all you guys help for keeping your developers happy
Posted 16 Jun 2007 at 5:32 pm ¶we are facing the similar issues, we have our webservice created in Java using Axis. While passing object to Java webservice from flex, flex app giving error WSDL.BadType element not resolvable. How I should handle this?
Posted 17 Jul 2007 at 5:51 am ¶What you need to do is either update your flex framework to hotfix2 or either introduce some wait time after you load the WSDL until you make the call.
Posted 17 Jul 2007 at 9:12 am ¶Post a Comment