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

Reply via email to