JS Client and AMF communication

31 views
Skip to first unread message

David Mouton

unread,
Jul 12, 2013, 6:38:23 AM7/12/13
to haxe...@googlegroups.com
Hi all,
I'm trying to build a JS client, able to re-use the same AMF services than my flash version.

I'm not realy sure how to do this.

In flash, i use RemoteObject with that :
endpoint : http://localhost:2058/Gateway.aspx
source : Sakura.Service.Pattern.PatternService
destination : fluorine

and i call GetPatternByID(1) on my service.

In Haxe for JS i wrote that :
        var cnx:HttpAsyncConnection = HttpAsyncConnection.urlConnect("http://localhost:2058/Gateway.aspx");

        cnx
.setErrorHandler(serviceErrorHandler);
        cnx
.Sakura.Service.Pattern.PatternService.GetPatternByID.call([1], getPatternByID_resultHandler);

and i always haxe an error : 'Invalid response "

Any Idea ?

Thx




Reply all
Reply to author
Forward
0 new messages