public Sim.SimulationServiceClient createSimulationService() { Binding httpBinding = new BasicHttpBinding(); Sim.SimulationServiceClient simulationService = new Sim.SimulationServiceClient(httpBinding, getEndpointAddress(SIM_ENDING)); return(simulationService); }
public void SetUpServer(string ip, string port) { connUtil.SetUpServer(ip, port); CloseServices(); loginService = connUtil.createLoginService(); factoryService = connUtil.createFactoryService(); simulationService = connUtil.createSimulationService(); }
public Sim.SimulationServiceClient createSimulationService() { try { Binding httpBinding = new BasicHttpBinding(); Sim.SimulationServiceClient simulationService = new Sim.SimulationServiceClient(httpBinding, getEndpointAddress(SIM_ENDING)); return simulationService; } catch (Exception) { return null; } }