CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  Web Services

如何在Client使用到从Web Service 返回的自定义类的方法???(在线等,顶者有分)

楼主Shepherd_0(快乐就行)2005-04-01 13:58:49 在 .NET技术 / Web Services 提问

 
  我在Server   上自定义一个类UserEntity,其中有方法有属性,也做了序列化,结果通过Web   Service作为一个结果返回到Client时,所有的属性都是可见的,但是定义的方法都看不到了...  
   
  有哪位兄弟知道如何在Client调用到自定义类的Method???  
   
  PS:我这个Web   service   是一个internet远程调用,所以Remoting好像不work  
   
  问题点数:0、回复次数:4Top

1 楼lovelxj(伊斯人,吾谁与归)回复于 2005-04-01 14:30:35 得分 0

有这样的事情啊     你客户端是用什么引用的?Top

2 楼yfmine(扬帆-逆风)回复于 2005-04-01 19:15:49 得分 0

帮顶Top

3 楼fuchen_yan(线团)回复于 2005-04-04 11:35:21 得分 0

你的类是怎么写的,贴出来吧Top

4 楼bugcool(bugcool)回复于 2005-07-19 16:48:14 得分 0

[Serializable]  
  public   class   BookingForm_CustomerReportedGoods  
  {  
   
  public   BookingForm   _BookingForm;  
  //客户预报货物情况列表;  
  public   ArrayList   ReportedGoodList;  
  public   BookingForm_CustomerReportedGoods()  
  {  
  _BookingForm   =   new   BookingForm();  
  ReportedGoodList   =   new   ArrayList();    
  }  
   
  //增加一条客户预报货物信息到货物列表;  
  public   bool   AddGoods(CustomerReportedGoods   _CustomerReportedGoods)  
  {  
  bool   retValue   =   false;  
  if   (null   ==   _CustomerReportedGoods)  
  {  
  _CustomerReportedGoods   =   new   CustomerReportedGoods();  
  _CustomerReportedGoods.IdBookingForm   =   -1;  
  this.ReportedGoodList.Add(_CustomerReportedGoods);  
  retValue   =   true;  
  }  
  else  
  {  
  if   (this.ReportedGoodList.IndexOf(_CustomerReportedGoods)   <   0)  
  {  
  this.ReportedGoodList.Add(_CustomerReportedGoods);  
  retValue   =   true;  
  }  
  }  
  return   retValue;  
  }  
   
  public   bool   RemoveGoods(int   GoodsIndex)  
  {  
  if   (GoodsIndex   >=   this.ReportedGoodList.Count)  
  {  
  return   false;  
  }  
  else  
  {  
  this.ReportedGoodList.RemoveAt(GoodsIndex);  
  return   true;  
  }  
   
  }  
   
  public   bool   RemoveGoods(CustomerReportedGoods   _CustomerReportedGoods)  
  {  
  this.ReportedGoodList.Remove(_CustomerReportedGoods);  
  return   true;  
  }  
   
  //预报货物信息的记录数;  
  public   int   ReportedGoodsCount  
  {  
  get  
  {  
  return   this.ReportedGoodList.Count;  
  }  
  }  
     
  }          
  同样的问题  
  在WebService中定义的一个类。在客户端调用看不到方法!Top

相关问题

  • webservice如何返回自定义类型
  • 自定义的函数可以返回“类”吗?
  • 如果让FUNCTION返回自定义类型的数据!?
  • WebService webmethod 方法 返回自定义类型,如何实现?
  • WebService webmethod 方法 返回自定义类型,如何实现?
  • 自定义控件 公共属性 返回类 的问题
  • 怎么在自定义类的方法中提示返回值类型?
  • WebService的公用函数怎样才能返回一个自定义类呢?
  • 如何让COM返回一个自定义的类实例(对象)?
  • 问一个关于返回自定义类型引用的问题

关键词

  • 预报
  • 客户
  • client
  • customerreportedgoods
  • reportedgoodlist
  • bookingform
  • 自定义
  • 预报货物
  • 调用
  • 方法

得分解答快速导航

  • 帖主:Shepherd_0

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo