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

restlessronin
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API · GitHub. Docs are at OpenaiEx User Gu...
152 12366 136
New
type1fool
WebAuthnLiveComponent WebAuthnComponents See this post about renaming the package. Passwordless authentication for Phoenix LiveView app...
New
GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
ausimian
Castle is a package I put together to assist with building Elixir releases capable of being live-upgraded via the ‘official’ release hand...
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
drozdzynski
Storex is a frontend store with state management handled on the backend. It allows you to update the store state both from the frontend a...
New

Other Trending Topics Top

budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews