Hola buenas
Tengo este esquema de XML
Código:
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="schemas.xmlsoap.org/soap/envelope/" xmlns:fac="facturae.gob.es/formato/Versiones/Facturaev3_2_2.xml">
<soapenv:Body>
<fac:Facturae>
<FileHeader>
<SchemaVersion></SchemaVersion>
<Modality></Modality>
<InvoiceIssuerType></InvoiceIssuerType>
<Batch>
<BatchIdentifier></BatchIdentifier>
<InvoicesCount></InvoicesCount>
<TotalInvoicesAmount>
<TotalAmount></TotalAmount>
</TotalInvoicesAmount>
<TotalOutstandingAmount>
<TotalAmount></TotalAmount>
</TotalOutstandingAmount>
<TotalExecutableAmount>
<TotalAmount></TotalAmount>
</TotalExecutableAmount>
<InvoiceCurrencyCode></InvoiceCurrencyCode>
</Batch>
</FileHeader>
<Parties>
<SellerParty>
<TaxIdentification>
<PersonTypeCode></PersonTypeCode>
<ResidenceTypeCode></ResidenceTypeCode>
<TaxIdentificationNumber></TaxIdentificationNumber>
</TaxIdentification>
<LegalEntity>
<CorporateName></CorporateName>
<TradeName></TradeName>
<AddressInSpain>
<Address></Address>
<PostCode></PostCode>
<Town></Town>
<Province></Province>
<CountryCode></CountryCode>
</AddressInSpain>
<ContactDetails>
<ElectronicMail></ElectronicMail>
</ContactDetails>
</LegalEntity>
</SellerParty>
<BuyerParty>
<TaxIdentification>
<PersonTypeCode></PersonTypeCode>
<ResidenceTypeCode></ResidenceTypeCode>
<TaxIdentificationNumber></TaxIdentificationNumber>
</TaxIdentification>
<LegalEntity>
<CorporateName></CorporateName>
<TradeName></TradeName>
<AddressInSpain>
<Address></Address>
<PostCode></PostCode>
<Town></Town>
<Province></Province>
<CountryCode></CountryCode>
</AddressInSpain>
<ContactDetails>
<Telephone></Telephone>
<ElectronicMail></ElectronicMail>
</ContactDetails>
</LegalEntity>
</BuyerParty>
</Parties>
<Invoices>
<Invoice>
<InvoiceHeader>
<InvoiceNumber></InvoiceNumber>
<InvoiceDocumentType></InvoiceDocumentType>
<InvoiceClass></InvoiceClass>
</InvoiceHeader>
<InvoiceIssueData>
<IssueDate></IssueDate>
<InvoiceCurrencyCode></InvoiceCurrencyCode>
<TaxCurrencyCode></TaxCurrencyCode>
<LanguageName></LanguageName>
</InvoiceIssueData>
<TaxesOutputs>
<Tax>
<TaxTypeCode></TaxTypeCode>
<TaxRate></TaxRate>
<TaxableBase>
<TotalAmount></TotalAmount>
</TaxableBase>
<TaxAmount>
<TotalAmount></TotalAmount>
</TaxAmount>
</Tax>
</TaxesOutputs>
<InvoiceTotals>
<TotalGrossAmount></TotalGrossAmount>
<TotalGrossAmountBeforeTaxes></TotalGrossAmountBeforeTaxes>
<TotalTaxOutputs></TotalTaxOutputs>
<TotalTaxesWithheld></TotalTaxesWithheld>
<InvoiceTotal></InvoiceTotal>
<TotalOutstandingAmount></TotalOutstandingAmount>
<TotalExecutableAmount></TotalExecutableAmount>
</InvoiceTotals>
<Items>
<InvoiceLine>
<ItemDescription></ItemDescription>
<Quantity></Quantity>
<UnitOfMeasure></UnitOfMeasure>
<UnitPriceWithoutTax></UnitPriceWithoutTax>
<TotalCost></TotalCost>
<GrossAmount></GrossAmount>
<TaxesOutputs>
<Tax>
<TaxTypeCode></TaxTypeCode>
<TaxRate></TaxRate>
<TaxableBase>
<TotalAmount></TotalAmount>
</TaxableBase>
<TaxAmount>
<TotalAmount></TotalAmount>
</TaxAmount>
</Tax>
</TaxesOutputs>
</InvoiceLine>
</Items>
<PaymentDetails>
<Installment>
<InstallmentDueDate></InstallmentDueDate>
<InstallmentAmount></InstallmentAmount>
<PaymentMeans></PaymentMeans>
<AccountToBeCredited>
<IBAN></IBAN>
</AccountToBeCredited>
</Installment>
</PaymentDetails>
</Invoice>
</Invoices>
</fac:Facturae>
</soapenv:Body>
</soapenv:Envelope>
Preguntaba por si asi estaria bien para hacer un envio a verifactuSOAP o faltaria añadir algo mas como por ejemplo esto
Código:
<?xml version="1.0"?>
<NS1:RegFactuSistemaFacturacion>
<RegFactuSistemaFacturacion SOAP-ENC:id="1" xsi:type="NS2:RegFactuSistemaFacturacion">
<Cabecera SOAP-ENC:id="2" xsi:type="NS3:Cabecera">
<ObligadoEmision SOAP-ENC:id="3" xsi:type="NS3:PersonaFisicaJuridicaESType">
<NombreRazon xsi:type="xsd:string">MI EMPRESA</NombreRazon>
<NIF xsi:type="xsd:string">NIF DE MI EMPRESA</NIF>
</ObligadoEmision>
</Cabecera>
</RegFactuSistemaFacturacion>
</NS1:RegFactuSistemaFacturacion>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Y si es esto entonces como se implementaria
Muchas gracias.