static void Main(string[] args)
        {
            // --- crear un nuevo alumno

            ServiceNhaqp.CAlumno oAlumno = new ServiceNhaqp.CAlumno();
            oAlumno.apaterno = "valdez";
            oAlumno.amaterno = "briones";
            oAlumno.nombre = "isaac";
            oAlumno.telefono = "984439316";

            ServiceNhaqp.wsnhaqpSoapClient service = new ServiceNhaqp.wsnhaqpSoapClient();
            service.GrabarAlumno(oAlumno);

            // --- actualizar un nuevo alumno
            /*
            ServiceNhaqp.CAlumno oAlumno = new ServiceNhaqp.CAlumno();
            oAlumno.idalumno = 662;
            oAlumno.apaterno = "valdez";
            oAlumno.amaterno = "briones";
            oAlumno.nombre = "pedro";
            oAlumno.cnumero = "42281112";
            oAlumno.telefono = "984439316";

            ServiceNhaqp.wsnhaqpSoapClient service = new ServiceNhaqp.wsnhaqpSoapClient();
            service.GrabarAlumno(oAlumno);
             * */
        }
        void InitNuevoRecibo()
        {
            ServiceNhaqp.wsnhaqpSoapClient service = new ServiceNhaqp.wsnhaqpSoapClient();
            ServiceNhaqp.CRecibo oRecibo = service.ObtenerNuevoRecibo();

            tbSerieRecibo.Text = oRecibo.serie;
            tbNumRecibo.Text = oRecibo.numero;

            tbNumDni.Text = "";
            tbNombres.Text = "";
            tbApPaterno.Text = "";
            tbApMaterno.Text = "";
        }
        protected void btEmitirRecibo_Click(object sender, EventArgs e)
        {
            try
            {
                ServiceNhaqp.wsnhaqpSoapClient service = new ServiceNhaqp.wsnhaqpSoapClient();

                ServiceNhaqp.CAlumno oAlumno = new ServiceNhaqp.CAlumno();
                ServiceNhaqp.CRecibo oRecibo = new ServiceNhaqp.CRecibo();

                oAlumno.cnumero = tbNumDni.Text;
                oAlumno.apaterno = tbApPaterno.Text;
                oAlumno.amaterno = tbApMaterno.Text;

                oRecibo.serie = tbSerieRecibo.Text;
                oRecibo.numero = tbNumRecibo.Text;

                service.GrabarRecibo(oRecibo, oAlumno);
                LimpiarTodo();
            }
            catch (Exception ex)
            {

            }
        }