English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

here is the code of the web service
does anyone knows how to call this service in vb.net

_
Public Function connection() As Integer
Dim conn As New SqlConnection("Server=myserver;Trusted_Connection=True;")
Dim cmd As New SqlCommand("Select count(*) from person", conn)
Dim i As Integer
conn.Open()
i = cmd.ExecuteScalar()
conn.Close()
Return i
End Function


i would like if someone post a code for calling this webservice

2007-02-28 13:43:32 · 2 answers · asked by akshay 2 in Computers & Internet Programming & Design

2 answers

Just add a reference to it, then (if local):

Dim oWS As New localhost.WebServiceName()
Messagebox.Show(oWS.connection)

2007-02-28 14:06:08 · answer #1 · answered by Anonymous · 1 0

http://quickstarts.asp.net/QuickStartv20/webservices/

2007-02-28 14:13:15 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers