当前位置:编程学习 > C#/ASP.NET >>

c#模拟客户端调用ASPX服务端Flash Remoting .

 c#模拟客户端调用ASPX服务端Flash Remoting .


       NetConnection _netConnection = new NetConnection();
        _netConnection.ObjectEncoding = ObjectEncoding.AMF3;
        _netConnection.NetStatus += new NetStatusHandler(_netConnection_NetStatus);
        _netConnection.Connect("http://aa/Gateway.aspx");
        _netConnection.Call("ServiceLib.aa.bb", new GetCustomersHandler(), new object[] { "1" });//命名空间ServiceLib,类aa,方法bb,传参数1

    public class GetCustomersHandler : IPendingServiceCallback
    {
        public GetCustomersHandler()
        {
        }
        public void ResultReceived(IPendingServiceCall call)
        {
            object result = call.Result;//返回值
        }
    }
可是为啥返回值是
请教了
Flash C#  Remoting
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,