Esempio n. 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            // Http Post 请求响应方式
            web_S_Send WebServiceHelper = new web_S_Send();
            string     url = textBox3.Text;                   //获取地址

            string[] args = new string[1];                    //
            args[0] = this.textBox1.Text;                     //获取参数
            string fun    = textBox4.Text;                    //获取方法
            object result = InvokeWebService(url, fun, args); //调用

            string[] arg1 = (string[])result;
            foreach (var item in arg1)
            {
                url += item + "\r\n";
            }
            // HttpHelper ss = new HttpHelper();  //调用mirth的接口
            // url=ss.mirth(textBox2.Text);
            textBox2.Text = url;
        }
Esempio n. 2
0
        private void webService消息测试ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            web_S_Send ss = new web_S_Send();

            ss.Show();
        }