Alex, thanks. Can you help me out with the syntax? Based on the c# example
in help, I deduce the following VB, but it gives a syntax error telling me I
need more continuation characters. The squigglies show up under the "<" in
"<xmlinclude(...".
<WebMethod()> _
<xmlinclude(typeof(myMainObject)), xmlinclude(typeof(myEmbeddedObject))> _
Public Function getData(ByVal key1 As String, ByVal key2 As String) As
myMainObject
getData = some stuff.
end function
Jeremy
> Take a look at the XmlIncludeAttribute class (or SoapInclude if SoapRpc --
> depending on your needs).
[quoted text clipped - 23 lines]
> >
> > Jeremy
Trebek - 30 Apr 2004 17:52 GMT
Sorry Jeremy .. never messed with vb or vb.net ... always been a C-based
programmer :( but I though it *should* look something like the following
based on MSDN:
<XmlElement(Type:=GetType(your_first_possible_class)),
XmlElement(Type:=GetType(your_next_possible_class))>
HTH,
Alex
> Alex, thanks. Can you help me out with the syntax? Based on the c# example
> in help, I deduce the following VB, but it gives a syntax error telling me I
[quoted text clipped - 42 lines]
> > >
> > > Jeremy
Trebek - 30 Apr 2004 17:55 GMT
Opps ... replace with the appropriate attribute :)
Alex
> Sorry Jeremy .. never messed with vb or vb.net ... always been a C-based
> programmer :( but I though it *should* look something like the following
[quoted text clipped - 60 lines]
> > > >
> > > > Jeremy
Jeremy - 30 Apr 2004 18:32 GMT
Easy for you to say (g). I've tried xmlinclude and xmlincludeattribute, to
no avail. Seems to be some confusion about whether I should use gettype()
or typeof(), but have tried both. I added the "type:=" construct, but that
didn't matter one way or the other. What a quaint and convoluted language
MS has produced. - Jeremy
> Opps ... replace with the appropriate attribute :)
>
> Alex