T
tascien
Hi guys, I have a class object I want to expose in a webservice
class... How can I make sure that all objects including subclasses are
exposed in WSDL. here is an example:
Public Class Lists '< - class for all lists..
Public Class List ' <- class for a single list contained in
Lists class...
' Member vars...
Public Records() As Record
' Sub classes...
Public Class Record ' <- Class for a single record which is
part of the list...
Public Fields() As Field
Public Class Field ' <- Class for a field. which is
part of the record...
Public Name As String
Public Value As Object
Public Type As String
End Class
End Class
End Class
End Class
Basically, what I want to do, is to be able to create an object like
this in the client...
Dim obj as new Lists.List.Record
or even
Dim obj as new Lists.List.Record.Field
My WebService class could expose it like this...
<WebMethod()> _
Public Function HelloWorld() As Lists '<- just exposing Lists could
trigger sub class exposition...
Return New Lists
End Function
Is that possible? Or do I have to create a function to expose each sub
class?
Tascien
class... How can I make sure that all objects including subclasses are
exposed in WSDL. here is an example:
Public Class Lists '< - class for all lists..
Public Class List ' <- class for a single list contained in
Lists class...
' Member vars...
Public Records() As Record
' Sub classes...
Public Class Record ' <- Class for a single record which is
part of the list...
Public Fields() As Field
Public Class Field ' <- Class for a field. which is
part of the record...
Public Name As String
Public Value As Object
Public Type As String
End Class
End Class
End Class
End Class
Basically, what I want to do, is to be able to create an object like
this in the client...
Dim obj as new Lists.List.Record
or even
Dim obj as new Lists.List.Record.Field
My WebService class could expose it like this...
<WebMethod()> _
Public Function HelloWorld() As Lists '<- just exposing Lists could
trigger sub class exposition...
Return New Lists
End Function
Is that possible? Or do I have to create a function to expose each sub
class?
Tascien