public ClsFEXAuthRequest ConvertirFex( Autorizacion aut )
        {
            ClsFEXAuthRequest feAutReq = new ClsFEXAuthRequest();
            feAutReq.Sign = aut.Sign;
            feAutReq.Token = aut.Token;
            feAutReq.Cuit = aut.Cuit;

            return feAutReq;
        }
 /// <remarks/>
 public System.IAsyncResult BeginFEXGetCMP( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp, System.AsyncCallback callback, object asyncState )
 {
     return this.BeginInvoke( "FEXGetCMP", new object[] {
             Auth,
             Cmp}, callback, asyncState );
 }
 /// <remarks/>
 public void FEXGetPARAM_UMedAsync( ClsFEXAuthRequest Auth )
 {
     this.FEXGetPARAM_UMedAsync( Auth, null );
 }
 /// <remarks/>
 public void FEXGetPARAM_PtoVentaAsync( ClsFEXAuthRequest Auth )
 {
     this.FEXGetPARAM_PtoVentaAsync( Auth, null );
 }
 /// <remarks/>
 public void FEXGetPARAM_Tipo_ExpoAsync( ClsFEXAuthRequest Auth )
 {
     this.FEXGetPARAM_Tipo_ExpoAsync( Auth, null );
 }
 public FEXResponse_Inc FEXGetPARAM_Incoterms( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetPARAM_Incoterms", new object[] {
             Auth} );
     return ( (FEXResponse_Inc) ( results[0] ) );
 }
 public FEXResponse_Mon FEXGetPARAM_MON( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetPARAM_MON", new object[] {
             Auth} );
     return ( (FEXResponse_Mon) ( results[0] ) );
 }
 public FEXResponse_CheckPermiso FEXCheck_Permiso( ClsFEXAuthRequest Auth, string ID_Permiso, int Dst_merc )
 {
     object[] results = this.Invoke( "FEXCheck_Permiso", new object[] {
             Auth,
             ID_Permiso,
             Dst_merc} );
     return ( (FEXResponse_CheckPermiso) ( results[0] ) );
 }
 /// <remarks/>
 public void FEXCheck_PermisoAsync( ClsFEXAuthRequest Auth, string ID_Permiso, int Dst_merc )
 {
     this.FEXCheck_PermisoAsync( Auth, ID_Permiso, Dst_merc, null );
 }
 /// <remarks/>
 public void FEXAuthorizeAsync( ClsFEXAuthRequest Auth, ClsFEXRequest Cmp )
 {
     this.FEXAuthorizeAsync( Auth, Cmp, null );
 }
 /// <remarks/>
 public void FEXAuthorizeAsync( ClsFEXAuthRequest Auth, ClsFEXRequest Cmp, object userState )
 {
     if ( ( this.FEXAuthorizeOperationCompleted == null ) )
     {
         this.FEXAuthorizeOperationCompleted = new System.Threading.SendOrPostCallback( this.OnFEXAuthorizeOperationCompleted );
     }
     this.InvokeAsync( "FEXAuthorize", new object[] {
             Auth,
             Cmp}, this.FEXAuthorizeOperationCompleted, userState );
 }
 public FEXResponseAuthorize FEXAuthorize( ClsFEXAuthRequest Auth, ClsFEXRequest Cmp )
 {
     object[] results = this.Invoke( "FEXAuthorize", new object[] {
             Auth,
             Cmp} );
     return ( (FEXResponseAuthorize) ( results[0] ) );
 }
 /// <remarks/>
 public System.IAsyncResult BeginFEXGetPARAM_UMed( ClsFEXAuthRequest Auth, System.AsyncCallback callback, object asyncState )
 {
     return this.BeginInvoke( "FEXGetPARAM_UMed", new object[] {
             Auth}, callback, asyncState );
 }
 /// <remarks/>
 public System.IAsyncResult BeginFEXGetPARAM_Ctz( ClsFEXAuthRequest Auth, string Mon_id, System.AsyncCallback callback, object asyncState )
 {
     return this.BeginInvoke( "FEXGetPARAM_Ctz", new object[] {
             Auth,
             Mon_id}, callback, asyncState );
 }
 public FEXResponse_DST_pais FEXGetPARAM_DST_pais( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetPARAM_DST_pais", new object[] {
             Auth} );
     return ( (FEXResponse_DST_pais) ( results[0] ) );
 }
 /// <remarks/>
 public void FEXCheck_PermisoAsync( ClsFEXAuthRequest Auth, string ID_Permiso, int Dst_merc, object userState )
 {
     if ( ( this.FEXCheck_PermisoOperationCompleted == null ) )
     {
         this.FEXCheck_PermisoOperationCompleted = new System.Threading.SendOrPostCallback( this.OnFEXCheck_PermisoOperationCompleted );
     }
     this.InvokeAsync( "FEXCheck_Permiso", new object[] {
             Auth,
             ID_Permiso,
             Dst_merc}, this.FEXCheck_PermisoOperationCompleted, userState );
 }
 /// <remarks/>
 public void FEXGetPARAM_DST_paisAsync( ClsFEXAuthRequest Auth )
 {
     this.FEXGetPARAM_DST_paisAsync( Auth, null );
 }
 public FEXGetCMPResponse FEXGetCMP( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp )
 {
     object[] results = this.Invoke( "FEXGetCMP", new object[] {
             Auth,
             Cmp} );
     return ( (FEXGetCMPResponse) ( results[0] ) );
 }
 /// <remarks/>
 public void FEXGetPARAM_IncotermsAsync( ClsFEXAuthRequest Auth )
 {
     this.FEXGetPARAM_IncotermsAsync( Auth, null );
 }
 /// <remarks/>
 public void FEXGetCMPAsync( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp )
 {
     this.FEXGetCMPAsync( Auth, Cmp, null );
 }
 public FEXResponse_PtoVenta FEXGetPARAM_PtoVenta( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetPARAM_PtoVenta", new object[] {
             Auth} );
     return ( (FEXResponse_PtoVenta) ( results[0] ) );
 }
 public FEXResponse_LastID FEXGetLast_ID( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetLast_ID", new object[] {
             Auth} );
     return ( (FEXResponse_LastID) ( results[0] ) );
 }
 public FEXResponse_Tex FEXGetPARAM_Tipo_Expo( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetPARAM_Tipo_Expo", new object[] {
             Auth} );
     return ( (FEXResponse_Tex) ( results[0] ) );
 }
 /// <remarks/>
 public void FEXGetLast_IDAsync( ClsFEXAuthRequest Auth )
 {
     this.FEXGetLast_IDAsync( Auth, null );
 }
 public FEXResponse_Umed FEXGetPARAM_UMed( ClsFEXAuthRequest Auth )
 {
     object[] results = this.Invoke( "FEXGetPARAM_UMed", new object[] {
             Auth} );
     return ( (FEXResponse_Umed) ( results[0] ) );
 }
 public FEXResponse_Ctz FEXGetPARAM_Ctz( ClsFEXAuthRequest Auth, string Mon_id )
 {
     object[] results = this.Invoke( "FEXGetPARAM_Ctz", new object[] {
             Auth,
             Mon_id} );
     return ( (FEXResponse_Ctz) ( results[0] ) );
 }
 /// <remarks/>
 public void FEXGetPARAM_UMedAsync( ClsFEXAuthRequest Auth, object userState )
 {
     if ( ( this.FEXGetPARAM_UMedOperationCompleted == null ) )
     {
         this.FEXGetPARAM_UMedOperationCompleted = new System.Threading.SendOrPostCallback( this.OnFEXGetPARAM_UMedOperationCompleted );
     }
     this.InvokeAsync( "FEXGetPARAM_UMed", new object[] {
             Auth}, this.FEXGetPARAM_UMedOperationCompleted, userState );
 }
 /// <remarks/>
 public void FEXGetPARAM_CtzAsync( ClsFEXAuthRequest Auth, string Mon_id )
 {
     this.FEXGetPARAM_CtzAsync( Auth, Mon_id, null );
 }
        private CAERespuestaFex SolicitarCAE( FexCabecera cabFex, ClsFEXAuthRequest aut )
        {
            ClsFEXRequest feCaeRequest = this.ObtenerClsFexRequest( cabFex );

            SerializadorRequest serializador = new SerializadorRequest();
            serializador.Serializar<ClsFEXRequest>( feCaeRequest );

            FEXResponseAuthorize caeResponse = this.wsfex.FEXAuthorize( aut, feCaeRequest );
            ManagerErroresFe managerErrores = new ManagerErroresFe( this.logueador );

            if (this.HuboSolicitudesRechazadas( caeResponse ))
            {
                this.GenerarBackupArchivoSerializado(serializador, feCaeRequest);
            }

            managerErrores.CapturarError(caeResponse.FEXErr, cabFex);

            WrapperCaeRespuestaFex wcrf = new WrapperCaeRespuestaFex();

            return wcrf.Convertir( caeResponse.FEXResultAuth );
        }
 /// <remarks/>
 public System.IAsyncResult BeginFEXCheck_Permiso( ClsFEXAuthRequest Auth, string ID_Permiso, int Dst_merc, System.AsyncCallback callback, object asyncState )
 {
     return this.BeginInvoke( "FEXCheck_Permiso", new object[] {
             Auth,
             ID_Permiso,
             Dst_merc}, callback, asyncState );
 }