// - 4 - private static void Test_articuloDatosCompletos(string articulo, string _cliente, string _clave) { TarticuloResp response = ws.articuloDatosCompletos(articulo, _cliente, _clave); Console.WriteLine("RESULTADOS: "); Console.WriteLine("Descripcion -> " + response.descripcion); Console.WriteLine("Detalle -> " + response.detalle); Console.WriteLine("Medida -> " + response.medida); Console.WriteLine("Precio -> $" + response.precio); Console.WriteLine("Legales -> " + response.legales); Console.WriteLine("Plantilla e-mail proveedor -> " + response.plantillaEmailProveedor); Console.WriteLine("Plantilla voucher proveedor -> " + response.plantillaVoucherProveedor); Console.WriteLine("Plantilla e-mail pasajero -> " + response.plantillaEmailPasajero); Console.WriteLine("Link de la imagen -> " + response.imagen); Console.WriteLine("ERROR:"); Console.WriteLine("_ Error -> " + response.error); Console.WriteLine("_ Desc. del error -> " + response.descError); Console.ReadKey(); }
private void button1_Click(object sender, RoutedEventArgs e) { String codArticulo = this.textBox1.Text.Trim(); TarticuloResp response = new TarticuloResp(); try { response = MainWindow.WEB_SERVICE_RM.articuloDatosCompletos(codArticulo, MainWindow.CLIENTE, MainWindow.CLAVE); } catch (Exception ex) { MessageBox.Show(Mensajes.ErrorWs + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); this.Close(); return; } String textoRta = ""; if (response.error == 0) { textoRta += "\nRESULTADOS: "; textoRta += "\nDescripcion -> " + response.descripcion; textoRta += "\nDetalle -> " + response.detalle; textoRta += "\nMedida -> " + response.medida; textoRta += "\nPrecio -> $" + response.precio; textoRta += "\nLegales -> " + response.legales; textoRta += "\nPlantilla e-mail proveedor -> " + response.plantillaEmailProveedor; textoRta += "\nPlantilla voucher proveedor -> " + response.plantillaVoucherProveedor; textoRta += "\nPlantilla e-mail pasajero -> " + response.plantillaEmailPasajero; textoRta += "\nLink de la imagen -> " + response.imagen; } else { textoRta += "\nERROR:"; textoRta += "\n_ Error -> " + response.error; textoRta += "\n_ Desc. del error -> " + response.descError; } this.textBlock1.Text = textoRta; }