antiHero
03-06-2008, 07:20 PM
I am working on a Flash remoting project- The swf calls a CFC which returns a temporary struct to flash, and populates a bunch of variables. The whole system worked fine on my developement site, but when the client set up the hosting account and I moved everything into the new domain I cant get my CFC to return the structure. Instead I get this error message:
failure
Service threw an exception during method invocation: null
Ive tried everything. Right now I put the Remote call procedure Im using to call the data from the CFC on my website, which works.
Here is the code Im using, with URLS replaced for privacy reasons...
objSvc = new Service("http://myurl.com/flashservices/gateway", null, "cfcs.CFC", null, null);
// call the helloWorld() method
var pc:PendingCall = objSvc.helloWorld();
// establish result and fault handler methods
pc.responder = new RelayResponder(this, "onResponseSuccess", "onResponseFault");
// response handler for successful connections
var onResponseSuccess = function (resultEvent:ResultEvent):Void {
trace("success");
// populate text box with remote data
mainText.htmlText = resultEvent.result.h1;
mcTime = resultEvent.result.TIMEVAR;
};
// error handler function
var onResponseFault = function (fault:FaultEvent):Void {
trace("failure");
trace(fault.fault.faultstring);
// populate text box with error
mainText.text = fault.fault.faultstring;
};
Anyone that could provide a little insite to this problem would be saving my forehead from further abuse from me ramming it into my own desk!
failure
Service threw an exception during method invocation: null
Ive tried everything. Right now I put the Remote call procedure Im using to call the data from the CFC on my website, which works.
Here is the code Im using, with URLS replaced for privacy reasons...
objSvc = new Service("http://myurl.com/flashservices/gateway", null, "cfcs.CFC", null, null);
// call the helloWorld() method
var pc:PendingCall = objSvc.helloWorld();
// establish result and fault handler methods
pc.responder = new RelayResponder(this, "onResponseSuccess", "onResponseFault");
// response handler for successful connections
var onResponseSuccess = function (resultEvent:ResultEvent):Void {
trace("success");
// populate text box with remote data
mainText.htmlText = resultEvent.result.h1;
mcTime = resultEvent.result.TIMEVAR;
};
// error handler function
var onResponseFault = function (fault:FaultEvent):Void {
trace("failure");
trace(fault.fault.faultstring);
// populate text box with error
mainText.text = fault.fault.faultstring;
};
Anyone that could provide a little insite to this problem would be saving my forehead from further abuse from me ramming it into my own desk!