private void Startup2() { mClount++; SmartBusECOService.LGJHellaAPCECO.NotificationContainer MyNotificationContainer = new SmartBusECOService.LGJHellaAPCECO.NotificationContainer(); SmartBusECOService.LGJHellaAPCECO.StartupNotification MyStartupNotification = new SmartBusECOService.LGJHellaAPCECO.StartupNotification(); MyStartupNotification.serverTask_ID = 0; MyStartupNotification.customer_ID = CounterID;// "C11200987654321"; MyStartupNotification.ip_address = "168.223.110.101"; MyStartupNotification.notification_ID = mClount; MyStartupNotification.mac_address = "AB-09-23-ED-F0-FF"; MyStartupNotification.timestamp = DateTime.Now; MyNotificationContainer.Item = MyStartupNotification; SmartBusECOService.LGJHellaAPCECO.AnswerContainer MyAnswerContainer; SmartBusECOService.LGJHellaAPCECO.HellaAPCECOSOAPdServiceClient MySmartBusCloudClient; MySmartBusCloudClient = new SmartBusECOService.LGJHellaAPCECO.HellaAPCECOSOAPdServiceClient("SmartBusAPCECOClientSoap12Binding2"); MyAnswerContainer = MySmartBusCloudClient.Notification(MyNotificationContainer); if (MyAnswerContainer.Items != null) { ServerTaskID = MyAnswerContainer.Items[0].serverTask_ID; } OutPutXMLInfor2(MyAnswerContainer.Items); OutMessage(null, 2); }
private void Count2() { mClount++; SmartBusECOService.LGJHellaAPCECO.NotificationContainer MyNotificationContainer = new SmartBusECOService.LGJHellaAPCECO.NotificationContainer(); SmartBusECOService.LGJHellaAPCECO.CountNotification MyCountNotification = new SmartBusECOService.LGJHellaAPCECO.CountNotification(); MyCountNotification.serverTask_ID = ServerTaskID; MyCountNotification.customer_ID = CounterID;// "C11200987654321"; MyCountNotification.notification_ID = mClount; MyCountNotification.count_in = 1; MyCountNotification.count_out = 1; MyCountNotification.timestamp = DateTime.Now; SmartBusECOService.LGJHellaAPCECO.CountingGateID MyCountingGateID = new SmartBusECOService.LGJHellaAPCECO.CountingGateID(); MyCountingGateID.id = "10"; MyCountNotification.counting_gate_id = MyCountingGateID; MyNotificationContainer.Item = MyCountNotification; SmartBusECOService.LGJHellaAPCECO.AnswerContainer MyAnswerContainer; SmartBusECOService.LGJHellaAPCECO.HellaAPCECOSOAPdServiceClient MySmartBusCloudClient; MySmartBusCloudClient = new SmartBusECOService.LGJHellaAPCECO.HellaAPCECOSOAPdServiceClient("SmartBusAPCECOClientSoap12Binding2"); MyAnswerContainer = MySmartBusCloudClient.Notification(MyNotificationContainer); if (MyAnswerContainer != null) { OutMessage(MyAnswerContainer.server_response_type.ToString(), 4); } OutPutXMLInfor2(MyAnswerContainer.Items); }