private void btnEditar_Click(object sender, EventArgs e)
        {
            ServiceFootballer.ServicesClient soap = new ServiceFootballer.ServicesClient();

            String id;
            String name;
            String forename;
            String position;
            String club;
            int    number;
            double height;

            id       = txtId.Text;
            name     = txtNombre.Text;
            forename = txtApellido.Text;
            position = txtPosicion.Text;
            club     = txtClub.Text;
            number   = Convert.ToInt32(txtNumero.Text);
            height   = Convert.ToDouble(txtEstatura.Text);

            ClienteSoap.ServiceFootballer.footballer footballer = new ClienteSoap.ServiceFootballer.footballer();
            footballer.surname  = name;
            footballer.id       = id;
            footballer.forename = forename;
            footballer.position = position;
            footballer.number   = number;
            footballer.height   = height;
            footballer.club     = club;

            soap.update(footballer);
        }
Example #2
0
 public bool update(ClienteSoap.ServiceFootballer.footballer arg0)
 {
     ClienteSoap.ServiceFootballer.updateRequest inValue = new ClienteSoap.ServiceFootballer.updateRequest();
     inValue.arg0 = arg0;
     ClienteSoap.ServiceFootballer.updateResponse retVal = ((ClienteSoap.ServiceFootballer.Services)(this)).update(inValue);
     return(retVal.@return);
 }
Example #3
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            ServiceFootballer.ServicesClient soap = new ServiceFootballer.ServicesClient();
            String id;

            id = txtId.Text;
            ClienteSoap.ServiceFootballer.footballer f = soap.read(id);
            txtApellido.Text = f.surname;
            txtClub.Text     = f.club;
            txtEstatura.Text = f.height.ToString();
            txtNombre.Text   = f.forename;
            txtNumero.Text   = f.number.ToString();
            txtPosicion.Text = f.position;
        }
Example #4
0
 public System.Threading.Tasks.Task <ClienteSoap.ServiceFootballer.updateResponse> updateAsync(ClienteSoap.ServiceFootballer.footballer arg0)
 {
     ClienteSoap.ServiceFootballer.updateRequest inValue = new ClienteSoap.ServiceFootballer.updateRequest();
     inValue.arg0 = arg0;
     return(((ClienteSoap.ServiceFootballer.Services)(this)).updateAsync(inValue));
 }
Example #5
0
 public updateRequest(ClienteSoap.ServiceFootballer.footballer arg0)
 {
     this.arg0 = arg0;
 }
Example #6
0
 public readResponse(ClienteSoap.ServiceFootballer.footballer @return)
 {
     this.@return = @return;
 }