private static string serviceUrl = "http://10.49.170.56:61090/Barcode.svc?wsdl"; //?wsdl "http://10.255.102.149:8080/motorolla/login.wsdl"; static ServiceProxy() //private { EndpointAddress endpoint = new EndpointAddress(serviceUrl); BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; proxy = new BarcodeClient //LoginPortClient (binding, endpoint); }
private static void Main() { var logger = new ConsoleLogger(); var context = new BarcodeContext(); logger.LogInfo("🍫 Welcome to the Chocolate Shop Barcode Scanner Utility"); logger.LogInfo("--------------------------------------------------------"); logger.LogInfo("Please enter the barcode:"); context.BarcodeExpression = Console.ReadLine(); var client = new BarcodeClient(logger, context); client.TranslateBarcode(); }