09-24-2021 02:03 PM
Hello, I'm trying to access the CUCM using zeep python library and I'm having an issue with the client method. I'm loading ACLAPI.wsdl as a local file, so I defined:
WSDL_URL = 'file://C:\\Users\\dgonzalez\\Trans\\Devnet\\Schema 10.5\\AXLAPI.wsdl'
and then I do:
client = Client(WSDL_URL, transport=transport)
and I'm getting error:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\dgonzalez\\Trans\\Devnet\\Schema 10.5\\AXLAPI.wsdl/AXLSoap.xsd'
The path is correct, but it is apparently adding the file AXLSoap.xsd after AXLAPI.wsdl, not sure way, I can't find that.
Any ideas?
Thank you,
Diego G.
10-12-2021 01:35 PM
Hello @dgonzalez1,
It might be looking for a relevant path instead of an absolute path. Also, you might be able to create a function to strip "/AXLSoap.xsd" off the end of the WSDL_URL string variable through splitting and joining.
Hope this helps!
Alex
10-13-2021 12:20 PM
Might check out this project, which demonstrates use of AXL with Python+Zeep in a number of use-cases: https://github.com/CiscoDevNet/axl-python-zeep-samples
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide