protected void Button1_Click(object sender, EventArgs e) { string ServiceUrl = "http://192.168.124.66/SAP_WebServices/QueryServices.asmx"; //MES_Services.QueryServicesSoapClient service = new MES_Services.QueryServicesSoapClient(); //DataSet dt= service.GetQueryInfoMation(TextBox1.Text.Trim()); //DataSet dt = new WebServiceProxy().GetStockByNumber("JDQ-SP000274"); DataSet dt = WebServiceProxy.InvokeWebservice(ServiceUrl, "", "GetQueryInfoMation", "JB-B-M-XIANDAI0,JB-B-M-XIANDAI0") as DataSet; GridView1.DataSource = dt.Tables["DATALINE"]; GridView1.DataBind(); }