<%@ WebService Language="VB" Class="Math" %>
Imports System.Web.Services
Public Class Math
Inherits WebService
<WebMethod> _
Public Function Add(num1 As Integer, num2 As Integer) As Integer
Return num1 + num2
End Function
<WebMethod> _
Public Function Subtract(num1 As Integer, num2 As Integer) As Integer
Return num1 - num2
End Function
End Class