|
Hi
while
testing the performance of our application , i changed the way we work with the
server from WS to RemoteObjects
i
found that there is a difference in the way data is being received / transmitted
although we use the registerClass (as the POJO2AS does
for you) .
for
example a method that was saving user info to DB did not work with RO -
saying it could not convert ASObject to typed
object.
what is wrong here
?
here is a short snapshot
<mx:RemoteObject
id="service">
<mx:method
result="getUser(event)>
<mx:method
result="saveUser>
</mx:RemoteObject>
function
sendRequest(){
service.getUser(111);
}
function
getUser(event){
var userVO:UserVO =
event.result;
// we save with the save object we
got.
saveUser(userVO);
}
function
saveUser(userVO){
service.saveUser(userVO);
///fails to convert ASobject to typed object
}
Shlomi
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
Title: Mercury Email Signature
- [flexcoders] Difference between WebService and Remote Object Shlomi Cohen
- Re: [flexcoders] Difference between WebService and Remot... Clint Modien
- RE: [flexcoders] Difference between WebService and Remot... Matt Chotin
- RE: [flexcoders] Difference between WebService and Remot... Shlomi Cohen
- RE: [flexcoders] Difference between WebService and Remot... Shlomi Cohen
- RE: [flexcoders] Difference between WebService and Remot... Shlomi Cohen
- RE: [flexcoders] Difference between WebService and Remot... Shlomi Cohen
- RE: [flexcoders] Difference between WebService and Remot... Shlomi Cohen

