1、在web服务器的IIS中的.aspx.cs,当add web references时,加入远程的web
service组件(就是那个.asmx文件)。应该只是指明服务在url上吧,服务实例的创建
是在应用服务器那端的内存中?还是说通过url下载组件,然后将组件实例创建
在IIS的内存中?
2、一个web service的程序,没法用DataTable类型的作为返回值,或者参数,提示
说:"System.NotSupportedException: 类型 System.ComponentModel.ISite 的成员
System.ComponentModel.MarshalByValueComponent.Site 是接口,因此无法将其序
列化。" 换用DataSet类型的话就一切正常。
MSDN里不是说:"The DataSet and DataTable objects inherit from
MarshalByValueComponent, and support the ISerializable interface for
remoting. These are the only ADO.NET objects that can be remoted."
这有什么区别吗?
--
FROM 210.32.0.*