Ejemplo n.º 1
0
        public void Test()
        {
            DataSet ds = new DataSet();
            //DataRow dr = new DataRow();
            TestWebServiceSoapClient ques = new TestWebServiceSoapClient();

            ds = ques.GetQue();
            //dr = ds.Tables[0].Rows[];
            String[] ans    = new String[4];
            var      quesId = ds.Tables[0].Rows[0].ItemArray.GetValue(0).ToString();

            //qa.queId = Convert.ToInt32(quesId);
            txtQue.Text = ds.Tables[0].Rows[0].ItemArray.GetValue(1).ToString();
            // qa.que = txtQue.Text;
            var rans = ds.Tables[0].Rows[0].ItemArray.GetValue(2).ToString();

            // qa.rAns = rans;
            ra = rans;
            var ans1 = ds.Tables[0].Rows[0].ItemArray.GetValue(3).ToString();

            for (int i = 0; i < 4; i++)
            {
                ans[i] = ds.Tables[0].Rows[i].ItemArray.GetValue(3).ToString();
            }
            rbtnA.Text = ans[0];
            rbtnB.Text = ans[1];
            rbtnC.Text = ans[2];
            rbtnD.Text = ans[3];
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            TestWebServiceSoapClient client = new TestWebServiceSoapClient();

            MySoapHeader header = new MySoapHeader();

            header.UserName = "******";
            header.PassWord = "******";
            var result = client.HelloWorldWithUserNameAndPassWord(header);

            Console.WriteLine(result);

            client.HelloWorldWithLog();
            client.HelloWorldWithLog2();
            Console.Read();
        }
 public static void ClassInitialize(TestContext context)
 {
     asmxClient = new TestWebServiceSoapClient();
 }
 public static void ClassInitialize(TestContext context)
 {
     asmxClient = new TestWebServiceSoapClient();
 }