Would I get a fault if my connection didn't connect and a call was made?
var pc:PendingCall = serv.getData(Id);
pc.responder = new RelayResponder(this, "Data_Result", "Data_Fault");
Robert Chyko wrote:
You don't get a fault if the connection fails. You would only get a
fault if you make a call and the call itself fails for some reason.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Diversity
Sent: Monday, November 06, 2006 12:05 PM
To: Flash Coders
Subject: [Flashcoders] Remoting Connection fault?
Why can I not receive a connection fault? According to the docs I should
be able to receive a fault
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();
// incorrect path on purpose to cause a fault
serv = new Service("http://localhost/amfphp/gateway.phpd",
null,"IstRemote",null,new RelayResponder(this, "success_Result",
"result_Fault"));
var pc:PendingCall = serv.getData(Id);
pc.responder = new RelayResponder(this, "Data_Result", "Data_Fault");
function success_Result(){
trace("connected");
}
function result_Fault(fault){
trace(fault.fault.faultcode);
trace(fault.fault.faultstring);
trace(fault.fault.description);
trace(fault.fault.detail);
trace(fault.fault.type);
trace("-------------------------------------------------------");
}
I dont get a success or fault on connect and do not get a fault on the
pc either. When the gateway path is correct everything works but as we
all know things may not work all the time.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com