VatchexGreece - a library for retrieving Greek company info from the SOAP web service of GSIS using the VAT ID

logo

VatchexGreece is a library that is used to pull company information from the SOAP web service (WSDL definition) of the Greek General Secretariat of Information Systems for Public Administration (GSIS) using the VAT ID (Αριθμός Φορολογικού Μητρώου, abbreviated as “ΑΦΜ” or “Α.Φ.Μ.”).

The package is available on Hex.

The documentation is available on HexDocs.

The homepage is on my blog.

The source code is on GitHub

Many thanks to the patient people on the Elixir discord server who helped me turn this into a working library with version 0.6.0!

6 Likes

Updated to v0.7.0 so that it’s compatible with the new RgWsPublic2 SOAP API.

https://hexdocs.pm/vatchex_greece/VatchexGreece.html

Improvements since v0.6.0

  • Now compatible with the RgWsPublic2 SOAP web service (new since 2023-04-20).
  • Now possible to make SOAP API calls using different credentials in %Auth{} structs, e.g. for multi-tenant setups.
  • Now needs no application setup in config.exs or mix.exs, thanks to getting rid of the Soap library due to parsing issues, and because it seems abandoned and not particularly robust to begin with.
  • XML parsing is now handled directly with SweetXml.
  • Actual logging of errors in the %Results{} struct means you can find out what went wrong.
  • Actual handling of errors (with {:ok, ...} and {:error, ...} tuples along the pipeline across all modules means that no API call or parsing of the XML response body is made unless no errors have popped up.
1 Like

Updated to v0.8.0. The main motivation was to replace HTTPoison with Req, as the previous dependency made this incompatible with Phoenix projects. There are also new high-level functions fetch/1 and fetch!/1 that take keyword options as arguments.

1 Like