factoryd

factoryd

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

Showing Posts 1 to 10

factoryd

factoryd OP

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

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 OP

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.

OvermindDL1

OvermindDL1

Ooo, I’m sorry, I had to do that at my last job almost 10 years ago, that was a horror… ^.^;

Yep, had to do the same… ^.^;

Seems punny to me. ^.^

This is awesome!

Does it generate docs about the interface as well? Can it be generated out with the projects docs as well? :slight_smile:

Sadly/Happily I don’t have to deal with SOAP/WSDL anymore so I don’t have anything I can test it with. ^.^;

factoryd

factoryd OP

haha.

I generates minimal moduledocs and docs. I don’t know about anything else. :wink:

Thanks for lookin.

simon

simon

I’ve just spent the evening putting together a test app in Node to interact with a SOAP service. The Node code is something I eventually want to port to Elixir (during this year hopefully) so please keep working on Lyex! I’ll try to take a look at it in a few days and try it against the service I have to use. Your hard work might well save me from a whole load of grief, thank you in advance!

factoryd

factoryd OP

I haven’t had a chance to work on this at all recently. I’m really hoping to find some time this weekend. Please post up some WSDLs in the github issues.

simon

simon

I’ll see what I can do but my problem is that it is a client’s SOAP service and use of it is under NDA so I might not be able to. It’s doubly frustrating because your code encounters an issue with the WSDLs but I’ll see if I can isolate the problem and give you an example to look at.

factoryd

factoryd OP

I understand. I’ll do what I can to make it work with a bunch of wsdls. I’m no expert on how they actually work. I’m learning as I go. :wink:

simon

simon

Keep at it! :grinning:

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews