I am still having some problems using explicitType with PHP & Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error:

IN FLEX VO UserDataVO.as

[RemoteClass("com.onefoot.dbocl.services.vo.users.UserDataVO")]

IN PHP VO UserDataVO.php
var $_explicitType = "com.onefoot.dbocl.services.vo.users.UserDataVO";

SEND FROM PHP
public function getUserInfo(){
                /* retrieve session variables from server
                 */
                 $User = new UserDataVO();
                 $User->fullName = "Test User";
                 $User->firstName = "Test";
                 $User->lastName = "User";

                 return $User;
 }


RECEIVE IN FLEX from getUserInfo() call
public function result(data:Object):void
{
        var userData:UserDataVO = data.result;
}

ERROR
Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO.



Thanks for the help!

- Kevin



Reply via email to