' 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.Web.Services

Public Class Server
Inherits WebService
    <WebMethod()> _
    Public Function Add(ByVal a As Integer, ByVal b As Integer) As Integer
        Return (a + b)
    End Function

    <WebMethod()> _
    Public Function Dup(ByVal s As String) As String
        Return (s + s)
    End Function
End Class 
