On first glance I see a difference between "myService.recupActualites();" in
"initObject" <webforumsuser@macromedia.com> wrote in message
news:caos2q$kps$1@forums.macromedia.com...
> hi,
>
> i try to make my remoting app work with the new remoting API AS2.0, i try
to
> call a remote web service with Flash Remoting, it was working with the
> netServices object like this :
>
> #include "NetServices.as"
>
> var myURL = "http://fs27/flashremoting/gateway.aspx";
> var myServicePath =
> "
http://institutionnel.sidf.lille/fr/webservice/fondecran.asmx?wsdl"; >
> var myResult = new Object();
>
> myResult.onResult = function (data) {
> trace("Data received from Server : " + data);
> };
>
> myResult.onStatus = function (info) {
> trace("An error occurred : " + info.description);
> };
>
> var myServer = NetServices.createGatewayConnection(myURL);
> var myService = myServer.getService(myServicePath, myResult);
> myService.recupActualites();
>
> ///////////////////////////////////
>
> Now i try to make this work in AS2 with new API like this :
>
> import mx.remoting.Service;
> import mx.remoting.PendingCall;
> import mx.rpc.FaultEvent;
> import mx.rpc.ResultEvent;
>
> import mx.remoting.debug.NetDebug;
>
> NetDebug.initialize();
>
> var webService:Service = new Service(
> "http://fs27/flashremoting/gateway.aspx",
> null,
> "
http://institutionnel.sidf.lille/fr/webservice/fondecran.asmx?wsdl",
> null,
> null);
>
> var pc:PendingCall = webService.RecupActualites();
> pc.responder = new RelayResponder(this, "getTemp_Result",
"getTemp_Fault");
>
> function getTemp_Result(re:ResultEvent):Void
> {
> trace('hello");
> }
> function getTemp_Fault(fe:FaultEvent):Void
> {
> trace( fe.fault.faultstring);
> }
>
> ///////////////////////////////////////////
>
> But no luck, i don't even know how to check if the connection is
successfull
> since the NetConnection Debugger does not seems to work, does anybody can
help
> me ?
>
> tks a lot !
>