all groups > macromedia flash flash remoting > september 2004 >
You're in the

macromedia flash flash remoting

group:

Remoting Return Issue



Remoting Return Issue The_Plague^
9/21/2004 8:51:56 PM
macromedia flash flash remoting: I seem to be having a problem with remoting not finsing the assemblie that I am
calling.

I connection to the gateway :
http://bpweb.appdev.consultrix.net/getflashgateway.aspx

But when I call the service : ClientName.GetNews

I recieve the error...No Such Service ClientName.GetCurrentNews with Function
GetNews()

I have looked around and tried different approaches onto how this works but
cannot find the solution. Can someone help me? I have been looking at this for
3 days.

I am using VS .NET 2003, IIS 5, Flash MX 2004 Professional.

Source Code: >

import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.DataGlue;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.rpc.FaultEvent;

var serviceUrl:String;

LoadError._visible = false;

mx.remoting.debug.NetDebug.initialize();
var NewsService = new
Service("http://bpweb.appdev.consultrix.net/getflashgateway.aspx", null,
"CLIENTNAME.GetCurrentNews", null, null);
//var NewsService = new Service(gatewayUrl, null, serviceUrl, null, null);

var pc:PendingCall = NewsService.GetNews();
pc.responder = new RelayResponder(this, "GetNews_Result", "GetNews_Fault");
trace("Waiting on response from server.")

function GetNews_Result(re:ResultEvent):Void {
var rs:RecordSet = RecordSet(re.result);

lblStatus = "Checking for Current News...";
_root.NewsArray = new Array();
_root.IDArray = new Array();
var iloop:Number = 0;
for (iLoop = 0; iLoop < rs.getLength(); iLoop++) {
_root.NewsArray[iLoop] = "<b>" + FormatDate(rs.getItemAt(iLoop).NewsDate) +
"</b>\n" + rs.getItemAt(iLoop).Teaser;
_root.IDArray[iLoop] = rs.getItemAt(iLoop).NewsID;
trace(rs.getColumnNames())
}

MyLoader._visible = false;
i = 0;

if (rs.getLength() > 0) {
trace("Received response");
gotoAndPlay(2);
} else {
MyLoader._visible = false;
lblStatus = "No News at this time. Please check back later."
}
}

function GetNews_Fault(fe:FaultEvent):Void {
trace("Received Error")
trace("\n" & fe.fault.faultstring);
MyLoader._visible = false;
Status._visible = false;
LoadError._visible = true;
lblError = fe.fault.faultstring;
}

function FormatDate(sDate:Date):String {
return (sDate.getMonth() + 1) +"/" + (sDate.getDate() + 1) + "/" +
sDate.getFullYear();
}

stop();

Any help would be greatly appreciated.

Thanks -JD
Re: Remoting Return Issue ottokan
5/8/2005 12:00:00 AM
i have exactly the same problem. Please inform me if you find a solution

Thanks
AddThis Social Bookmark Button