首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

引用webservice中的类的有关问题

2012-01-07 
引用webservice中的类的问题我在Webservice中定义一个实体类[Serializable]publicclassInventoryClassMDL{

引用webservice中的类的问题
我在Webservice中定义一个实体类
        [Serializable]
        public   class   InventoryClassMDL
        {
                public   InventoryClassMDL()
                {   }
                private   string   _cinvccode;
                private   string   _cinvcname;
                private   string   _memo;
                public   string   cInvCCode
                {
                        set   {   _cinvccode   =   value;   }
                        get   {   return   _cinvccode;   }
                }
                public   string   cInvCName
                {
                        set   {   _cinvcname   =   value;   }
                        get   {   return   _cinvcname;   }
                }
                public   string   Memo
                {
                        set   {   _memo   =   value;   }
                        get   {   return   _memo;   }
                }
客户端引用Webservice后,想使用这个类,也就是向webservice中传递这个对象,以添加一条数据,可是为什么引用不到呢?
客户端
localhost.Service1   s=new   localhost.Service1();
s.  
点不出来呢?谢谢!!

[解决办法]
没有 using namespace?

热点排行