Calling a webservice via ASP.Net

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
hi,

In order to use your web service within another application without using
VS, you need to generate the corresponding class with WSDL tool or DISCO
 
OK. I made a .VB file using the wsdl application. So how do I go about
calling the service?

Thanks again for your help.
 
Back
Top