先引用Web serivce的实体,再将值赋给本地的实体即可
如:引用Web service的项目的命名空间.cn.com.agronet.CommonAPIService.ServiceEntity sEntity = cn.com.agronet.CommonAPIService.GetDemoEntityByPKID(ID);
if(null!=sEntit)
{
LocalEntity lEntity=new LocalEntity();
lEntity.ID=sEntity.ID;
lEntity.Name=sEntity.Name;
//******
}
用序列化数据