Imports wsApp.wsWebRef '<- Is this really needed > >Public Class frmTestWebService > Inherits System.Windows.Forms.Form > >'#Region " Windows Form Designer generated code " removed for post brevity > > Private Sub cmdTestWs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdTestWs.Click > 'txtWorld.Text = HelloWorld("Dino") '<- Why is this not declared?!? > End Sub > >End Class>
Dim myWs as New wsApp.wsWebRef() txtWorld.Text = ws.HelloWorld("Dino")Also, the Imports statement is not neccessary. An Imports statement loads all of the type definitions from your class so you don't have to type out a complete specification every time you reference your class (A web service, like everything else in .NET, is a class.)