Esempio n. 1
0
        /// <summary>
        /// abre o 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button7_Click_1(object sender, EventArgs e)
        {
            RootObject deserializedProduct = null;
            OpenFileDialog dlg = new OpenFileDialog();
            string text=null;
            DialogResult result = dlg.ShowDialog();
            if (result == DialogResult.OK) // Test result.
            {
                string file = dlg.FileName;
                try
                {
                    text = File.ReadAllText(file);
                    deserializedProduct = JsonConvert.DeserializeObject<RootObject>(text);
                }
                catch (IOException)
                {
                }
                WebServiceSoapClient.Service1 webSevice = new WebServiceSoapClient.Service1();
                webSevice.GetObjectbyContext(text);

            }
        }
Esempio n. 2
0
        private void btnSearchObjetos_Click(object sender, EventArgs e)
        {
            WebServiceSoapClient.Service1 webSevice = new WebServiceSoapClient.Service1();
            //webSevice.FireObjects();

            webSevice.GetLearningObjects("895837");
        }