I have already carried out the development to send the SII to the hacienda, but now we are thinking of sending it to the regional haciendas of Navarre and the Basque Country. With the one from Navarra we did not have problems but with the one from the Basque Country, it gives us an error when Parsing the XML.
After comparing the files that were sent, we realized that the difference is in the namespace that for Spanish finance is:
<SuministroLRFacturasEmitidas xmlns="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii/fact/ws/SuministroLR.xsd">
and for alava it is
<SuministroLRFacturasEmitidas xmlns="https://sii.araba.eus/documentos/SuministroLR.xsd">.
My question is how we can modify only the namespace when making the method call:
SuministroLRFacturasRecibidas objEnvioFacturas = null;
RespuestaLRFRecibidasType objRespuestaFacturas = null;
objSWFact.Timeout = Configuracion.Configuracion.SIITimeOutEnvio * 1000;
objEnvioFacturas = new SuministroLRFacturasRecibidas()
{
Cabecera = (CabeceraSii)ObtenerCabecera(cliente, argstrTipoComunicacion),
RegistroLRFacturasRecibidas = ObtenerFacturasRecibidas(_mdecIdEmpresas, cliente, argstrTipoComunicacion, argstrFechaDesde, argstrFechaHasta, ref strMensajeFacturasErroreas, ref facturasEnviadas, argdecIdCaimtransacciones, argblnPrimerSemestre)
};
objRespuestaFacturas = objSWFact.SuministroLRFacturasRecibidas((SuministroLRFacturasRecibidas)objEnvioFacturas);