class myremoteobject:MarshalByRefObject
{
public myremoteobject()
{
Console.WriteLine("hi there");
}
}
class Program
{
static void Main(string[] args)
{
HttpChannel chn = new HttpChannel(1234);
ChannelServices.RegisterChannel(chn, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(myremoteobject), "abc", WellKnownObjectMode.Singleton);
Console.WriteLine("server started.... press any key to stop");
Console.ReadLine();
}
}
我有这些简单的类,但是当我尝试使用这样的soapsuds工具从中生成元数据时:-soapsuds -ia:server -nowp -oa:metadata.dll
我收到错误
错误:无效的架构数据。没有与 SOAP、RPC 和编码元素的绑定