DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 9 Jul 2007 22:58:02 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    kishor


WebServices and Entity   
I have a following problem... I am looking for best and efficient solution 
for this problem.

I have following entities ..(c#)

public class Dog 
{
.... some Properties and methods.....

Dogs _friendDogs = new Dogs() ;

Public Dogs Friends()
{
 get
            {
                return _friendDogs;
            }
            set
            {
                _friendDogs= value;
            }

	}
      
}

Public class Dogs : CollectionBase 
{
........
}



When I am working with Dog and Dogs its is working fine without any error in 
same project but when I am passing this entity through web service 
I get an error because webservice convert this dogs to some array list and 
cant be converted back to entity.



[WebMethod]
public Dogs GetFriendsDog()
{
.......
Return Dogs

}

Problem comes here on the following last line 

Dogs  somedogs = new Dogs();

somedogs = somewebService.GetFriendsDog() ;



Please suggest best method for this.

Regards
Kishor
Date:Mon, 9 Jul 2007 22:58:02 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us