Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Internet
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Colaboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #11  
Antiguo 01-10-2024
sglorka sglorka is offline
Miembro
 
Registrado: mar 2017
Ubicación: Tenerife
Posts: 548
Poder: 10
sglorka Va por buen camino
Cita:
Empezado por bmfranky Ver Mensaje
Estoy usando el servicio generado desde el xsd.


Código:
  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicacion" +
        "es/es/aeat/tike/cont/ws/SistemaFacturacion.wsdl", ConfigurationName="ServicioVerifactu.sfPortTypeVerifactu")]
    public interface sfPortTypeVerifactu {
        
        // CODEGEN: Se está generando un contrato de mensaje, ya que la operación RegFactuSistemaFacturacion no es RPC ni está encapsulada en un documento.
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(RespuestaBaseType))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(SistemaFacturacionFact))]
        Taller2024.ServicioVerifactu.RegFactuSistemaFacturacionResponse RegFactuSistemaFacturacion(Taller2024.ServicioVerifactu.RegFactuSistemaFacturacionRequest request); <-- ahora me salta el error aqui
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        System.Threading.Tasks.Task<Taller2024.ServicioVerifactu.RegFactuSistemaFacturacionResponse> RegFactuSistemaFacturacionAsync(Taller2024.ServicioVerifactu.RegFactuSistemaFacturacionRequest request);
    }

Si sabeis decirme como o donde configurar lo , agradeceria cualquier tipo de ayuda.
Prueba lo que te comenté.
Antes de iniciar el proceso de comunicación, debes activar un canal seguro con la Aeat. Ese canal seguro se activa ejecutando la instrucción

System.Net.ServicePointManager.SecurityProtocol = Tls12,
donde Tls12 es una constante que la creas como te indiqué antes.
Con esto, cualquier comunicación que realices se hará sobre un canal seguro
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Hijo de Informáticos gluglu Humor 3 13-03-2007 11:05:35
Adictos informaticos ... Trigger Humor 2 11-10-2004 12:18:32
Nosotros los Informáticos Trigger Humor 1 10-10-2004 14:58:09
Patrón de los Informáticos. obiwuan Varios 20 10-09-2003 14:44:54
Chistes Informaticos jhonny Humor 2 11-08-2003 21:59:09


La franja horaria es GMT +2. Ahora son las 22:52:28.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi