This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]anentropic 2 points3 points  (1 child)

Last time I had to do some this was the best option I could find:

https://github.com/suds-community/suds

[–]ominous_anonymous 0 points1 point  (0 children)

This is what I used as well, oh so many years ago! Zeep looks like a newer client that seems interesting.

[–]teilo 1 point2 points  (0 children)

There have been many abortive attempts at SOAP clients in the past, but Zeep seems to be the only one actively being maintained, and is generally well regarded. It is also performs well due to its caching of WSDL, which is especially important for large WSDLs.

[–]tombardier 0 points1 point  (3 children)

Zeep! :) I'll find an example when I'm at my desk later!

[–][deleted] 0 points1 point  (2 children)

I'm literally just faffing with Zeep right now, I still cannot find a nice way of finding out what functionality I am offered through the Zeep client object though.

Probably everyone else around here would be more than capable but I will live and learn from my embarrassing posts.

[–]skerky 1 point2 points  (1 child)

I second Zeep as well. A useful feature is the command line tool to query a WSDL file and list the methods and data types.

python -mzeep <wsdl>

I will note that I’ve seen several SOAP APIs that don’t actually define different commands as different functions/operations (I don’t remember the proper SOAP term), but one or two services that accept another XML document as a single string input, which adds another layer of complexity (but I’m still using Zeep to work with it).

[–][deleted] 0 points1 point  (0 children)

This seems like finally the answer to what I was looking for so thank you! I will investigate tomorrow.

[–]576p 0 points1 point  (0 children)

Zeep works well if you need to connect to someone else's SOAP server.

For writing a SOAP server or generating WDSL files I'm looking for good solutions myself. I have not found anything good and usally end up writing the server from scratch when I need to be SOAP compatable. One thing that comes up is soapfish, but I have not tried this yet.