http://www.DalePreston.com/Blog/Archives/2005_02_06_Archive.html
That describes how to create, inherit, and return custom classes in .Net web
services.
HTH
DalePres
MCAD, MCDBA, MCSE
>I defined two typis in asmx file (.Net/C#/WebService):
>
[quoted text clipped - 20 lines]
>
> Carleton
Hello Carleton Wong via DotNetMonster.com,
In your web method u need to add an [XmlInclude(typeof(Childone))] Attribute
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> I defined two typis in asmx file (.Net/C#/WebService):
>
[quoted text clipped - 16 lines]
>
> Carleton
Bruce Johnson [C# MVP] - 08 Feb 2005 19:01 GMT
Just so that you're clear, the XmlInclude attribute doesn't copy the Childone
class to the client. All that it does is take arrange so that the public
readable/writeable properties are available in a class within the same
namespace as the proxy class. This might not be a problem, but it's a common
sore spot among developers who get invalid cast exceptions on the client.
Bruce Johnson [C# MVP]
http://www.objectsharp.com/blogs/bruce
> Hello Carleton Wong via DotNetMonster.com,
> In your web method u need to add an [XmlInclude(typeof(Childone))] Attribute
[quoted text clipped - 26 lines]
> >
> > Carleton