Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionBug in form font Pin
Ismael Oliveira 202112-May-21 4:12
Ismael Oliveira 202112-May-21 4:12 
QuestionRe: Bug in form font Pin
Richard MacCutchan12-May-21 5:26
mveRichard MacCutchan12-May-21 5:26 
AnswerRe: Bug in form font Pin
OriginalGriff12-May-21 5:27
mveOriginalGriff12-May-21 5:27 
AnswerRe: Bug in form font Pin
Ismael Oliveira 202117-May-21 10:08
Ismael Oliveira 202117-May-21 10:08 
GeneralRe: Bug in form font Pin
Richard MacCutchan17-May-21 21:05
mveRichard MacCutchan17-May-21 21:05 
AnswerRe: Bug in form font Pin
OriginalGriff12-May-21 5:26
mveOriginalGriff12-May-21 5:26 
GeneralRe: Bug in form font Pin
Ismael Oliveira 202117-May-21 10:06
Ismael Oliveira 202117-May-21 10:06 
Question[SOLVED] Problem in a Web Service Pin
Luis M. Rojas12-May-21 3:54
Luis M. Rojas12-May-21 3: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 5:20
mveOriginalGriff12-May-21 5:20 
General[SOLVED] Re: Problem in a Web Service Pin
Luis M. Rojas12-May-21 5:23
Luis M. Rojas12-May-21 5:23 
Questiondata clustering Pin
Ahmed Alamdy10-May-21 14:02
Ahmed Alamdy10-May-21 14:02 
AnswerRe: data clustering Pin
Dave Kreskowiak10-May-21 19:27
mveDave Kreskowiak10-May-21 19:27 
AnswerRe: data clustering Pin
OriginalGriff10-May-21 20:21
mveOriginalGriff10-May-21 20:21 
AnswerRe: data clustering Pin
Pete O'Hanlon10-May-21 20:58
mvePete O'Hanlon10-May-21 20:58 
GeneralRe: data clustering Pin
OriginalGriff10-May-21 21:58
mveOriginalGriff10-May-21 21:58 
QuestionRegistry Redirection Pin
Richard Andrew x648-May-21 10:41
professionalRichard Andrew x648-May-21 10:41 
AnswerRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 11:22
mveDave Kreskowiak8-May-21 11:22 
GeneralRe: Registry Redirection Pin
Richard Andrew x648-May-21 11:31
professionalRichard Andrew x648-May-21 11:31 
GeneralRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 11:40
mveDave Kreskowiak8-May-21 11:40 
GeneralRe: Registry Redirection Pin
Richard Andrew x648-May-21 11:47
professionalRichard Andrew x648-May-21 11:47 
GeneralRe: Registry Redirection Pin
Dave Kreskowiak8-May-21 14:05
mveDave Kreskowiak8-May-21 14:05 
QuestionHow to speed up datatable updation for high volume of data Pin
Mou_kol6-May-21 0:01
Mou_kol6-May-21 0:01 
AnswerRe: How to speed up datatable updation for high volume of data Pin
OriginalGriff6-May-21 0:52
mveOriginalGriff6-May-21 0:52 
AnswerRe: How to speed up datatable updation for high volume of data Pin
Gerry Schmitz6-May-21 7:33
mveGerry Schmitz6-May-21 7:33 
GeneralRe: How to speed up datatable updation for high volume of data Pin
Mou_kol6-May-21 22:49
Mou_kol6-May-21 22: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.