Skip to content

Instantly share code, notes, and snippets.

@giuliohome
Last active October 21, 2023 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuliohome/d6d4b3d434e112e29503470d9c670179 to your computer and use it in GitHub Desktop.
Save giuliohome/d6d4b3d434e112e29503470d9c670179 to your computer and use it in GitHub Desktop.
calling a wsdl service from python
from zeep import Client
wsdl = 'http://www.dneonline.com/calculator.asmx?WSDL'
arg = {'intA':2, 'intB':3}
op = 'Add'
client = Client(wsdl)
res = client.service[op](**arg)
print(res) # 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment