RE: Object mapping between java and flash

"Davies, Grant M." <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <BEF55D977D60F94B9768E5C2AA398546131778F6@gaatlitexch09s.nscorp.ad.nscorp.com>
For the record, Object.registerclass fixed the problem, had to register my
custom classes so Remoting could serialize them.

Grant

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Davies, Grant
M.
Sent: Wednesday, August 10, 2005 3:39 PM
To: [email protected]
Subject: [Openamf-user] Object mapping between java and flash

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
_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.