public static Customer[] FindAllCustomers() { ServiceReference1.WebServiceSoapClient ws = new ServiceReference1.WebServiceSoapClient(); ws.HelloWorld(); //Customer[] customerList = ws.FindAllCustomers(); //return customerList; }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference1.WebServiceSoapClient myWebService = new ServiceReference1.WebServiceSoapClient(); Label1.Text = myWebService.HelloWorld(); }
protected void WebServiceBtn_Click(object sender, EventArgs e) { ServiceReference1.WebServiceSoapClient client = new ServiceReference1.WebServiceSoapClient(); this.WebServiceLbl.Text = client.HelloWorld(); }