LibreDteDotNet.SoapRequest
1.1.4
dotnet add package LibreDteDotNet.SoapRequest --version 1.1.4
NuGet\Install-Package LibreDteDotNet.SoapRequest -Version 1.1.4
<PackageReference Include="LibreDteDotNet.SoapRequest" Version="1.1.4" />
paket add LibreDteDotNet.SoapRequest --version 1.1.4
#r "nuget: LibreDteDotNet.SoapRequest, 1.1.4"
// Install LibreDteDotNet.SoapRequest as a Cake Addin
#addin nuget:?package=LibreDteDotNet.SoapRequest&version=1.1.4
// Install LibreDteDotNet.SoapRequest as a Cake Tool
#tool nuget:?package=LibreDteDotNet.SoapRequest&version=1.1.4
LibreDteDotNet.SoapRequest
This solution tries to show how to access the information published by the Servicio de Impuestos Internos through SOAP (WCF) services. The services are packaged in "Library Class" and can be accessed through Dependency Injection.
This repository has no relationship with the government entity SII, only for educational purposes.
✅ Details
Reference | version |
---|---|
.Net Core | 6.0 |
Autofac | 7.0.0 |
Autofac.Extensions.DependencyInjection | 8.0.0 |
Microsoft.Extensions.Hosting.Abstractions | 7.0.0 |
Security.Cryptography.Xml | 7.0.1 |
System.ServiceModel.Duplex | 4.10.* |
System.ServiceModel.Http | 4.10.* |
System.ServiceModel.NetTcp | 4.10.* |
🛠️ RoadMap
- Add Feature: "Solicitar y Firmar Token Access" Autenticación Automática
- Add Feature: "Consulta de Estado DTE" Consulta de Estado DTE
- Add Feature: "Consulta Avanzada Estado de DTE" Consulta Avanzada Estado de DTE
- Add Feature: "Consulta de Estado de Upload DTE " Consulta de Estado de Upload Dte
- Add Feature: "Web Service de Consulta y Registro de Aceptación/Reclamo a DTE recibido" Web Service de Consulta y Registro de Aceptación/Reclamo a DTE recibido
🚀 Usage
This class is accessed via dependency injection:
IHost host = Host.CreateDefaultBuilder()
.SoapRequestBuild() // This is important!
.ConfigureServices(
(c, s) => {
// your config
}
)
.Build();
📖 TokenSeed.GetToken()
var tkn = await soapRequest.TokenSeed.GetToken("16000555-2");
📖 EstadoDte.GetEstado()
Retorna el estado de la aceptación
de un DTE enviado al SII.
XDocument estado = await soapRequest.EstadoDte.GetEstado(
"77522012", // empresa emisor
"0",
"76888555", // empresa receptora
"4",
TipoDoc.FacturaExentaElectronica, // 33 - 34 - 61
"6", // folio
"27032023", // fecha
"931487", // monto
tkn // token
);
📖 EstadoDte.GetEstado()
Retorna el estado de la aceptación
mediante Tag DTE/Signature/SignatureValue
de un DTE enviado al SII.
XDocument estadoAv = await soapRequest.EstadoDte.GetEstado(
"77522000", // empresa emisor
"0",
"76888555", // empresa receptora
"4",
TipoDoc.FacturaExentaElectronica,
"402268", // folio
"15032023", // fecha
"1407781", // monto
"VLVLlBYc3eQ2NtkRxdANRYBQKW9pbG7Y1feuDG/1WZlpAyB43gTIxMYvs9yIrwCy5Z5piK51IF6u\r\nyugfFghOs+97yfjd+pNGzxKG6wpstz2YGAoz+nO4npymFwRT0jueYHWMivHtcQjF+ZddWsGNU6v8\r\nb0AvZPvFqhsAzGRxOfwV3YrmPrqYOBvTvzGWAr+AyB1jYXcSzN/sx31qp3riUbx2KjdE8UeZ2r5Z\r\nuP0BYMEXUt+Eh40ftm95nLPjQppM626xWPdH9FPr6WBBgTCup/HGlefDsxPeZJA2HPeRwuKn78WH\r\niu/Arvf27OQH5MuFWX1ns1fOLHSt6nIhoNIbhQ==",
tkn
);
📖 EstadoDte.GetEstadoUp()
Retorna el estado del upload
de un DTE enviado al SII, se debe contar con el Tracl ID del envío.
ResEstadoDteUp.RESPUESTA validar = await soapRequest.EstadoDte.GetEstadoUp(
"77522000", // rut company
"1",
"NGHHHHHHHHHHH", // ID Track
tkn // token
);
📫 Have a question? Found a Bug?
Feel free to file a new issue with a respective title and description on the LibreDteDotNet.SoapRequest/issues repository.
❤️ Community and Contributions
I think that Knowledge Doesn’t Belong to Just Any One Person, and I always intend to share my knowledge with other developers, a voluntary monetary contribution or contribute ideas and/or comments to improve these tools would be appreciated.
📘 License
All my repository content is released under the terms of the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Autofac.Extensions.DependencyInjection (>= 8.0.0)
- LibreDteDotNet.Common (>= 1.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
- System.Security.Cryptography.Xml (>= 7.0.1)
- System.ServiceModel.Duplex (>= 4.10.2)
- System.ServiceModel.Federation (>= 4.10.2)
- System.ServiceModel.Http (>= 4.10.2)
- System.ServiceModel.NetTcp (>= 4.10.2)
- System.ServiceModel.Security (>= 4.10.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.