Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / December 2005



Tip: Looking for answers? Try searching our database.

a problem about remotingConnector via .net web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adong - 29 Nov 2004 15:09 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.