Last active
October 21, 2023 14:22
-
-
Save giuliohome/d6d4b3d434e112e29503470d9c670179 to your computer and use it in GitHub Desktop.
calling a wsdl service from python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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