Click here to Skip to main content
15,568,455 members
Home / Discussions / C#
   

C#

 
QuestionBug in form font Pin
Ismael Oliveira 202112-May-21 5:12
Ismael Oliveira 202112-May-21 5:12 
QuestionRe: Bug in form font Pin
Richard MacCutchan12-May-21 6:26
mveRichard MacCutchan12-May-21 6:26 
AnswerRe: Bug in form font Pin
OriginalGriff12-May-21 6:27
mvaOriginalGriff12-May-21 6:27 
AnswerRe: Bug in form font Pin
Ismael Oliveira 202117-May-21 11:08
Ismael Oliveira 202117-May-21 11:08 
GeneralRe: Bug in form font Pin
Richard MacCutchan17-May-21 22:05
mveRichard MacCutchan17-May-21 22:05 
AnswerRe: Bug in form font Pin
OriginalGriff12-May-21 6:26
mvaOriginalGriff12-May-21 6:26 
GeneralRe: Bug in form font Pin
Ismael Oliveira 202117-May-21 11:06
Ismael Oliveira 202117-May-21 11:06 
Question[SOLVED] Problem in a Web Service Pin
Luis M. Rojas12-May-21 4:54
Luis M. Rojas12-May-21 4:54 
Any Help, please

I am new in Web Service.
I have this WS
[ServiceContract]
public interface IWSEPSService
{
[OperationContract]
Persona ObtenerPersona(string id, string TipoDocumento);
[OperationContract]
Cliente SaveData(string documento, string tipoDocumneto);
}

[DataContract]
public class Persona : BaseRespuesta
{
[DataMember]
public string Nombre { get; set; }
[DataMember]
}

[DataContract]
public class Cliente : BaseRespuesta
{
[DataMember]
public int id { get; set; }
[DataMember]
public string direccion { get; set; }

more properties..
}

/* Class Persona */
public Persona ObtenerPersona(string Id, string tipoDocumento)
{
if (tipoDocumento == "Cedula")
{
if (ValidaCedula(Id) == false)
{
return new Persona() { Error = "Cedula erronea" };
}
}

/* Class CLiente */
public Cliente SaveData(string documento, string tipoDocumento)
{

if (tipoDocumento == "Cedula")
{

if (ValidaCedula(documento) == false)
{
return new Cliente() { Error = "Error Cedula incorreta." };
}
else
{

dt = ConsultaDatosClientes(documento, tipoDocumento);
foreach(DataRow row in dt.Rows)
{
if (tipoDocumento == "Cedula")
{
nombre = row["nombre"].ToString();
apellido = row["apellido"].ToString();
}

In the client Side I have this:
1. This code works perfect
private void button1_Click(object sender, EventArgs e)
{
var cedula = txtCedula.Text;
using(WSEPSService.WSEPSServiceClient client =new WSEPSService.WSEPSServiceClient())
{
var Persona = client.ObtenerPersona(cedula,"Cedula");
txtNombre.Text = Persona.Nombre + ' ' + Persona.Nombre;
txtEdad.Text = Persona.Edad.ToString();
}
}

2. This code does not work
private void btnSalvar_Click(object sender, EventArgs e)
{
using (WSEPSService.WSEPSServiceClient client = new WSEPSService.WSEPSServiceClient())
{
var Salvar= client.SaveData("10233317", "RNC"); // Here the program stopped
}
}

This is the Error:
System.ServiceModel.FaultException: 'The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.'

modified 12-May-21 11:20am.

AnswerRe: Problem in a Web Service Pin
OriginalGriff12-May-21 6:20
mvaOriginalGriff12-May-21 6:20 
General[SOLVED] Re: Problem in a Web Service Pin
Luis M. Rojas12-May-21 6:23
Luis M. Rojas12-May-21 6:23 
Questiondata clustering Pin
Ahmed Alamdy10-May-21 15:02
Ahmed Alamdy10-May-21 15:02 
AnswerRe: data clustering Pin
Dave Kreskowiak10-May-21 20:27
mveDave Kreskowiak10-May-21 20:27 
AnswerRe: data clustering Pin
OriginalGriff10-May-21 21:21
mvaOriginalGriff10-May-21 21:21 
AnswerRe: data clustering Pin
Pete O'Hanlon10-May-21 21:58
mvaPete O'Hanlon10-May-21 21:58 
GeneralRe: data clustering Pin
OriginalGriff10-May-21 22:58
mvaOriginalGriff10-May-21 22:58 
QuestionRegistry Redirection Pin
Richard Andrew x648-May-21 11:41
professionalRichard Andrew x648-May-21 11:41 
AnswerRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 12:22
mveDave Kreskowiak8-May-21 12:22 
GeneralRe: Registry Redirection Pin
Richard Andrew x648-May-21 12:31
professionalRichard Andrew x648-May-21 12:31 
GeneralRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 12:40
mveDave Kreskowiak8-May-21 12:40 
GeneralRe: Registry Redirection Pin
Richard Andrew x648-May-21 12:47
professionalRichard Andrew x648-May-21 12:47 
GeneralRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 15:05
mveDave Kreskowiak8-May-21 15:05 
QuestionHow to speed up datatable updation for high volume of data Pin
Mou_kol6-May-21 1:01
Mou_kol6-May-21 1:01 
AnswerRe: How to speed up datatable updation for high volume of data Pin
OriginalGriff6-May-21 1:52
mvaOriginalGriff6-May-21 1:52 
AnswerRe: How to speed up datatable updation for high volume of data Pin
Gerry Schmitz6-May-21 8:33
mveGerry Schmitz6-May-21 8:33 
GeneralRe: How to speed up datatable updation for high volume of data Pin
Mou_kol6-May-21 23:49
Mou_kol6-May-21 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.