日期:2014-05-17 浏览次数:20484 次
lizi3.cs
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;
class lizi3{
public static void Main(){
HttpChannel hchan = new HttpChannel(0);
ChannelServices.RegisterChannel(hchan);
Object remoteObject = RemotingServices.Connect(typeof(ISimpleObject),"http://localhost:154/SOEndPoint");
ISimpleObject so = remoteObject as ISimpleObject;
Console.WriteLine(so.ToUpper("make this uppercase"));
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels.Http;
public partial class NET_TEST_t1 : System.Web.UI.Page