Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Proyecto SIF/Veri*Factu/Ley Antifraude > Errores (relacionados con al AEAT)
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #4  
Antiguo 28-07-2025
epuigdef2 epuigdef2 is offline
Registrado
 
Registrado: feb 2019
Posts: 4
Poder: 0
epuigdef2 Va por buen camino
Vale, empiezo a responderme yo mismo.

Gran cagada: Las pruebas se han ido al entorno de producción. Ahora a ver cómo arreglamos esto...

Importé el WSDL y lo retoqué para poder seleccionar si se enviaba al entorno de pruebas o a productivo:

Código Delphi [-]
const
  URLVERIFACTUPROD = 'h_t_t_p_s://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP';
  URLVERIFACTUPRUEBAS = 'h_t_t_p_s://prewww2.aeat.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP';
  URLREQUERIMIENTOPROD = 'h_t_t_p_s://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/RequerimientoSOAP';
  URLREQUERIMIENTOPRUEBAS = 'h_t_t_p_s://prewww2.aeat.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/RequerimientoSOAP';

Añado un parámetro a la función GetsfPortTypeVerifactu y selecciono la URL:

Código Delphi [-]
function GetsfPortTypeVerifactu(UseWSDL, pruebas: Boolean; Addr: string; HTTPRIO: THTTPRIO): sfPortTypeVerifactu;
const
  defWSDL = 'h_t_t_p_s://prewww2.aeat.es/static_files/common/internet/dep/aplicaciones/es/aeat/tikeV1.0/cont/ws/SistemaFacturacion.wsdl';
//  defURL  = 'h_t_t_p_s://www1.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP';
  defSvc  = 'sfVerifactu';
  defPrt  = 'SistemaVerifactu';
var
  RIO: THTTPRIO;
  defURL : String;
begin
  if pruebas then
    defURL := URLVERIFACTUPRUEBAS
  else
    defURL := URLVERIFACTUPROD;
...

Y cuando creo el servicio le paso el parámetro de pruebas a True:
Código Delphi [-]
  Servicio := GetsfPortTypeVerifactu(True, True); // Usa WSDL automàticament


Porqué se ha ido la comunicación a www1.agenciatributaria.gob.es/ ????

Alguna luz al respecto?

Gracias de antemano

Última edición por Neftali [Germán.Estévez] fecha: 29-07-2025 a las 09:01:42.
Responder Con Cita
 



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
VeriFactu / SII CarlosMz Temas legales 43 07-07-2025 14:23:08
Verifactu ya activo! Jarogo08 General/Noticias 13 02-07-2025 11:34:02
php y verifactu victor03 PHP 2 06-06-2025 19:16:55
Verifactu o por requerimiento (no-verifactu) ¿decisión del usuario? Maska10 Temas legales 2 07-12-2024 12:34:47
verifactu jguarda Internet 1 03-10-2024 17:48:17


La franja horaria es GMT +2. Ahora son las 18:12:47.


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