' Collection of code snippets by Arne Vajhøj 
' (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
Imports System

Imports ws.soap

Public Class Program
    Public Shared Sub Main(args As String())
        Dim soap As New Test() ' modified
        Dim o As T1 = soap.getOne(123, True) ' funky
        Console.WriteLine(o.f1 & " " & o.f2)
        Dim all As T1() = soap.getAll()
        For Each one As T1 In all
            Console.WriteLine(one.f1 & " " & one.f2)
        Next
        '  funky:
        Dim specified As Boolean
        Dim res As Boolean
        soap.save(123, True, "ABC", res, specified)
        Console.WriteLine(res)
        soap.saveObject(o, res, specified)
        Console.WriteLine(res)
        soap.delete(123, True, res, specified)
        Console.WriteLine(res)
    End Sub
End Class
