hi, I have a problem about remotingConnector via .net web service.
In the flash, I drag a remotingConnector component and a label component named
serviceMessage, and then write the script at the first frame of timeline as
follow:
import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
var flashService:Service = new Service(
"http://localhost/demo4remoteConnector1/gateway.aspx",
null,
"http://localhost/demo4remoteConnector1/Service1.asmx?wsdl",
null,
null);
var pc:PendingCall = flashService.getMessage();
pc.responder = new RelayResponder( this, "getMessage_Result",
"getMessage_Fault" );
var re:ResultEvent;
function getMessage_Result(re):Void
{
trace(re.result);
serviceMessage.text = re.result;
}
function getMessage_Fault(fe:FaultEvent):Void
{
trace(fe.fault.faultstring);
serviceMessage.text = fe.fault.faultstring;
}
and then, I create a .net web service with language c#, write such code:
[WebMethod]
public string getMessage()
{
return "Flash Remoting makes web services easy!";
}
then, I add the aspnet user and set this user write access for bin folder;
and I copy the file gateway.aspx from flashremoting folder to my web service's
folder;
copy the flashgateway.dll, frconfig.txt,wsdl.exe to my web service's folder;
but It doesn't work, It report "Unable to create webservice proxy. Please
ensure the Microsoft.NET Framework SDK is installed." How can I do?
Thanks!!
adong - 29 Nov 2004 15:12 GMT
Oh, I see the gateway.aspx, and find that It only has this code:
<%@ Page %>
pussle~~
Mr.Kicks - 27 Dec 2005 20:35 GMT
Have you found a resolution for this? I am having the same issue.
Thanks,
Todd
mrsoul - 30 Dec 2005 20:00 GMT
Check out Foundation ASP.NET for Flash (http://www.friendsofed.com/book.html?isbn=1590595173) - it has a chapter on .NET Remoting that tackles this issue.