' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.Web.Services

Namespace test
    Public Class Foobar
        Private _iv As Integer
        Private _sv As String

        Public Property Iv() As Integer
            Get
                Return _iv
            End Get
            Set
                _iv = value
            End Set
        End Property

        Public Property Sv() As String
            Get
                Return _sv
            End Get
            Set
                _sv = value
            End Set
        End Property
    End Class 

    Public Class Test
    Inherits WebService
        <WebMethod()> _
        Public Function TestIt() As Foobar
            Dim res As Foobar = New Foobar
            res.Iv = 123
            res.Sv = "ABC"
            Return res
        End Function
    End Class 
End Namespace
