Ejemplo n.º 1
0
        //网址:http://www.yixiubox.com:5000/Server/EquipmentService.asmx
        private void UpdateEquipmentIPList()
        {
            var    client  = new EquipmentServ.EquipmentServiceSoapClient();
            string strjson = client.UpdateIPList(MakeEquipmentIPListParameter("XYKf001", "192.168.1.105,127.0.0.1"));

            JObject jo = (JObject)JsonConvert.DeserializeObject(strjson);
            JArray  ja = (JArray)jo["data"];
        }
Ejemplo n.º 2
0
        //网址:http://www.yixiubox.com:5000/Server/EquipmentService.asmx
        private void GetEquipmentInfo()
        {
            var    client  = new EquipmentServ.EquipmentServiceSoapClient();
            string strjson = client.GetEquipmentInfo(MakeGetDeviceInfoParameter("device0"));

            JObject jo = (JObject)JsonConvert.DeserializeObject(strjson);
            JArray  ja = (JArray)jo["data"];
        }
Ejemplo n.º 3
0
        //网址:http://www.yixiubox.com:5000/Server/EquipmentService.asmx
        private void ActiveEquipment()
        {
            var    client  = new EquipmentServ.EquipmentServiceSoapClient();
            string strjson = client.Active(MakeActiveEquipmentParameter("aaaaaa", "000000"));

            JObject jo = (JObject)JsonConvert.DeserializeObject(strjson);
            JArray  ja = (JArray)jo["data"];
        }