Object mapping between java and flash
"Davies, Grant M." <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <BEF55D977D60F94B9768E5C2AA39854612F3CCB7@gaatlitexch09s.nscorp.ad.nscorp.com> |
I have a java class :
com.nscorp.security.authenticationService.util.AuthenticationResponse
The flash class is
com.nscorp.util.vo.AuthenticationResponse
my openamf-config.xml
<custom-class-mapping>
<java-class>com.nscorp.security.authenticationService.util.AuthenticationRes
ponse</java-class>
<custom-class>com.nscorp.util.vo.AuthenticationResponse</custom-class>
</custom-class-mapping>
I also have
<amf-serializer>
<force-lower-case-keys>false</force-lower-case-keys>
</amf-serializer>
My service gets called :
pendingCall = authenticationService.authenticateWithSAMLAssertion(request);
pendingCall.responder = new RelayResponder(this, "onResult", "onStatus");
pendingCall.responder = new RelayResponder(this, "onResultOperation",
"onStatusOperation");
my onResultsOperation is :
public function onResultOperation (resultObj:Object):Void
{
var response:AuthenticationResponse = resultObj.result;
logger.debug(response, true) // DUMP OBJECT RECURSIVELY
logger.debug(response.getStatusCode);
}
The issue...... (finaly!) :)
When I log response.uiMessage I get a valid message that was populate by the
java service. When I try to use the methods on the AuthenticationResponse
object I get "undefined", so I don't think resultObject.result is really an
AuthenticationResponse object, is there a way to bind the results from the
service call to the real flash object I get back ?
Grant
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf