Ver Mensaje Individual
  #2720  
Antiguo 08-10-2024
nincillo nincillo is offline
Miembro
 
Registrado: may 2017
Posts: 190
Reputación: 10
nincillo Va por buen camino
Cita:
Empezado por delphiGar Ver Mensaje
Ese error me lo dio a mi cuando el componenente httprio generaba el xml con una cabecera como esta en el soap:

Código:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body xmlns:NS1="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroLR.xsd">
cuando corregi la forma de generarlo la cabecera es esta

Código:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
Ahora creo que estoy en ese punto yo también.

¿Cómo hiciste para general la cabecera de la 2ª manera que quiero entender que si te funcionó?


EDITO PARA INDICAR SOLUCION:

Añadida línea tras importar el WSDL tal y como indican en este hilo: https://clubdelphi.com/foros/showpos...postcount=2536

O sea, para que funcione bien, tras importar el wsdl tuve que hacer dos "retoques" manuales:
- Cambiar línea: InvRegistry.RegisterInvokeOptions(TypeInfo(sfPortTypeVerifactu), ioSOAP12) por InvRegistry.RegisterInvokeOptions(TypeInfo(sfPortTypeVerifactu), ioDocument);
- Meter línea justo a continuación: InvRegistry.RegisterInvokeOptions(TypeInfo(sfPortTypeVerifactu), ioLiteral);

Última edición por nincillo fecha: 08-10-2024 a las 21:00:34.