Imports System.Data Public Class frmConsumeWebService Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create a proxy object Dim pxy As localhost.Service1 = New localhost.Service1() Dim ds As DataSet = New DataSet() 'Retrieve the data from the database using the GetCustomers method 'Bind the GridView control to the datasource ds = pxy.GetCustomers() DataGridView1.DataSource = ds.Tables(0) End Sub End Class