Exemple #1
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            string sendJson = GetXmlData("123456789");

            DataService.DataServiceSoapClient webService = new DataService.DataServiceSoapClient();
            int i = webService.SendData(sendJson);

            MessageBox.Show("" + i);
        }
Exemple #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            DataService.DataServiceSoapClient webService = new DataService.DataServiceSoapClient();
            string result = webService.GetData("123456789");

            if (result != "0")
            {
                MessageBox.Show("成功");
            }
            else
            {
                MessageBox.Show("失败");
            }
        }