G
Guest
Hi,
I am trying to write my first web service. I have the following code:
Imports System.Web.Services
Public Class Service1
Inherits System.Web.Services.WebService
Private _ErrorText As String
<WebMethod()> Public Function Verify(ByVal UserName As String,
ByVal Password As String) As Boolean
'Do user verification stuff here.
End Function
<WebMethod()> Public Function ErrorMsg() As String
Return _ErrorText
End Function
End Class
This works fine. I am trying to write an ASP.Net application in
notepad. How do I go about calling the webservice? Also, is there a way
to have public readonly properties that are accessable via an ASP.Net
page in the webservice.
Thanks
I am trying to write my first web service. I have the following code:
Imports System.Web.Services
Public Class Service1
Inherits System.Web.Services.WebService
Private _ErrorText As String
<WebMethod()> Public Function Verify(ByVal UserName As String,
ByVal Password As String) As Boolean
'Do user verification stuff here.
End Function
<WebMethod()> Public Function ErrorMsg() As String
Return _ErrorText
End Function
End Class
This works fine. I am trying to write an ASP.Net application in
notepad. How do I go about calling the webservice? Also, is there a way
to have public readonly properties that are accessable via an ASP.Net
page in the webservice.
Thanks