factoryd

factoryd

Lyex - A SOAP client that will hopefully work

Greetings, Alchemists.

I have a really old project that I’ve been maintaining for the last 8 years. It’s written in .NET and has been growing very long in the tooth for a long time. It talks to around 10 SOAP services (yay…not). Lately I’ve been wanting to port it to Elixir but haven’t had much luck finding a SOAP lib that works. I could have settled on hard coding each service with templates and calling it a day. But the dirty developer in me thinks that’s insanely boring.

So I set out to build a client of my own.

I had to learn about how WSDL files are structured. Fun…yeah no.
Once I got a WSDL parsed into Elixir, I had to figure out how to use that. So what better chance to learn a bit about macros. That was fun!

Anyway, with a boring/typical name, Lyex was born.

The idea is to feed it a WSDL URI and it will download and cache the file(s). It will then generate a full client based on the operations found in the WSDL.

The client includes functions for every operation and typed structs based on the inputs and outputs of each operation.

This is an initial commit of Lyex and my first real used of macros in elixir-land.

I’d appreciate it if someone could throw a WSDL or two at it let me know how you fare.

Lyex @ GitHub

Cheers,
Chris

Most Liked

xlphs

xlphs

:clap: Great work, you did what I wanted to, I only had to talk to 1 SOAP service so I ended up hardcoding the templates and response parsers with sweet xml.

factoryd

factoryd

Thanks. I started and got obsessed with achieving the end goal. I’m sure a lot of you can understand that! Haha.

I’m committed to making this usable.

factoryd

factoryd

It seems that Lyex has an issue with WSDL containing multiple bindings. I will fix that up over the weekend

Where Next?

Popular in Announcing Top

sasajuric
I’d like to announce a small library called boundaries. This is an experimental project which explores the idea of enforcing boundaries ...
New
josevalim
Hi everyone, We would like to announce that Plataformatec is working on a new MySQL driver called MyXQL. Our goal is to eventually integ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
New
mplatts
With HEEX released we decided to start a components library using Tailwind CSS - check it out here: Petal Components. We also have a boi...
New
Crowdhailer
Raxx is an alternative to Plug and is inspired by projects such as Rack(Ruby) and Ring(Clojure). 1.0-rc.1 is now available. To use it re...
New
ahamez
Hi everyone, I’ve been working on this protobuf library for 3 years. We use it in the company I work for, EasyMile, to communicate with ...
New
nikokozak
Hello all, I’ve been working on Svonix - a library for quickly integrating Svelte components into Phoenix views. It’s a much-needed succ...
New
zachdaniel
Ash Framework What is Ash? Ash Framework is a declarative, resource-oriented application development framework for Elixir. A resource can...
New
zoltanszogyenyi
Hey everyone :waving_hand: Excited to join this forum - I am one of the founders and current project maintainers of a popular and open-s...
New
tmbb
I’ve decided to create this topic to discuss optimization possibilities for something like Phoenix LiveView. I’ve created this topic unde...
144 10187 141
New

Other popular topics Top

New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement