public long UltimoComprobante( Autorizacion aut, int ptovta, int tipo )
        {
            ClsFEXAuthRequest feAutRequest = this.wa.ConvertirFex( aut );

            ClsFEX_LastCMP x = new ClsFEX_LastCMP();
            x.Token = feAutRequest.Token;
            x.Sign = feAutRequest.Sign;
            x.Cuit = feAutRequest.Cuit;
            x.Pto_venta = (short)ptovta;
            x.Cbte_Tipo = (short)tipo;

            FEXResponseLast_CMP respuesta = this.wsfe.FEXGetLast_CMP( x );
            this.managerErrores.CapturarError( respuesta.FEXErr );

            return respuesta.FEXResult_LastCMP.Cbte_nro;
        }
 /// <remarks/>
 public void FEXGetLast_CMPAsync( ClsFEX_LastCMP Auth, object userState )
 {
     if ( ( this.FEXGetLast_CMPOperationCompleted == null ) )
     {
         this.FEXGetLast_CMPOperationCompleted = new System.Threading.SendOrPostCallback( this.OnFEXGetLast_CMPOperationCompleted );
     }
     this.InvokeAsync( "FEXGetLast_CMP", new object[] {
             Auth}, this.FEXGetLast_CMPOperationCompleted, userState );
 }
 public FEXResponseLast_CMP FEXGetLast_CMP( ClsFEX_LastCMP Auth )
 {
     object[] results = this.Invoke( "FEXGetLast_CMP", new object[] {
             Auth} );
     return ( (FEXResponseLast_CMP) ( results[0] ) );
 }
 /// <remarks/>
 public void FEXGetLast_CMPAsync( ClsFEX_LastCMP Auth )
 {
     this.FEXGetLast_CMPAsync( Auth, null );
 }
 /// <remarks/>
 public System.IAsyncResult BeginFEXGetLast_CMP( ClsFEX_LastCMP Auth, System.AsyncCallback callback, object asyncState )
 {
     return this.BeginInvoke( "FEXGetLast_CMP", new object[] {
             Auth}, callback, asyncState );
 }