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

Imports ws.soap

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