LibreDteDotNet.SoapRequest 1.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package LibreDteDotNet.SoapRequest --version 1.1.3
NuGet\Install-Package LibreDteDotNet.SoapRequest -Version 1.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LibreDteDotNet.SoapRequest" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibreDteDotNet.SoapRequest --version 1.1.3
#r "nuget: LibreDteDotNet.SoapRequest, 1.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LibreDteDotNet.SoapRequest as a Cake Addin
#addin nuget:?package=LibreDteDotNet.SoapRequest&version=1.1.3

// Install LibreDteDotNet.SoapRequest as a Cake Tool
#tool nuget:?package=LibreDteDotNet.SoapRequest&version=1.1.3

alternate text is missing from this package README image

alternate text is missing from this package README image GitHub commit activity GitHub contributors

Nuget Nuget GitHub code size in bytes Lines of code

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

🚀  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()

image

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()

image

XDocument estadoAv = await soapRequest.EstadoDte.GetEstado(
  "77522012", // empresa emisor
  "0",
  "76888555",  // empresa receptora
  "4",
  TipoDoc.FacturaExentaElectronica,
  "402268",
  "15032023",
  "1407781",
  "VLVLlBYc3eQ2NtkRxdANRYBQKW9pbG7Y1feuDG/1WZlpAyB43gTIxMYvs9yIrwCy5Z5piK51IF6u\r\nyugfFghOs+97yfjd+pNGzxKG6wpstz2YGAoz+nO4npymFwRT0jueYHWMivHtcQjF+ZddWsGNU6v8\r\nb0AvZPvFqhsAzGRxOfwV3YrmPrqYOBvTvzGWAr+AyB1jYXcSzN/sx31qp3riUbx2KjdE8UeZ2r5Z\r\nuP0BYMEXUt+Eh40ftm95nLPjQppM626xWPdH9FPr6WBBgTCup/HGlefDsxPeZJA2HPeRwuKn78WH\r\niu/Arvf27OQH5MuFWX1ns1fOLHSt6nIhoNIbhQ==",
  tkn
);

📫  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.

PayPal

📘  License

All my repository content is released under the terms of the MIT License.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.4 182 3/31/2023
1.1.3 155 3/29/2023
1.1.2 196 3/27/2023
1.1.1 194 3/27/2023