${res:Templates.Project.WebService.Name}
VB
ASP.NET
VBNet.Project.Form
${res:Templates.Project.WebService.Description}
Library
Properties
{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
bin\
bin\
_
Public Class Soap
Inherits System.Web.Services.WebService
'''
''' Logs into the web service
'''
''' The User Name to login in as
''' User's password
''' True on successful login.
_
Public Function Login(userName As String, password As String) As Boolean
'NOTE: There are better ways of doing authentication. This is just illustrates Session usage.
Me.UserName = userName
Return True
End Function
'''
''' Logs out of the Session.
'''
_
Public Sub Logout()
Context.Session.Abandon()
End Sub
'''
''' UserName of the logged in user.
'''
Private Property UserName() As String
Get
Return DirectCast(Context.Session("User"), String)
End Get
Set
Context.Session("User") = value
End Set
End Property
End Class
]]>
]]>
]]>