0 Replies Latest reply on Mar 23, 2010 5:24 PM by ekrunch

    After upgrade from FB4Beta to FB4, web services no longer returning the same data types.

    ekrunch

      I just upgraded from FB4 beta to the FB4 release. I'm still running the Flex 3.5 SDK and amnow  unable to use a lot of my web services. In the previous FB4 beta, I could generate the proxy classes from the WSDL and would get a ResultEvent that containted either my complex data type or an ArrayCollection of those complex data types.

       

      After I deleted and regenerated the services under the FB4 release, I get a ProxyObject or an ArrayCollection of ProxyObjects. No matter what I try I cannot map those ProxyObjects to my complex data type and it's driving me nuts! The oddest thing is that it didn't break all of my services, just some of them.

       

      I've tried several methods of mapping the ProxyObject to my custom data type but I get a null result every time and no errors.

       

      private function getContactsResult_handleResult(event:ResultEvent):void
      {
          this._contactsList.removeAll();
         
          if (event.result is ArrayCollection)
          {
              for each (var contact:ContactType in event.result)
              {
                  _contactsList.addItem(contact);                   
              }
          }
          if (event.result is ContactType)
          {
              _contactsList.addItem(event.result as ContactType);
          }
      }

       

      Any suggestions?