cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
905
Views
0
Helpful
2
Replies

Error with AXLAPI.wsdl file

dgonzalez1
Level 1
Level 1

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.

 

2 Replies 2

Alex Stevenson
Cisco Employee
Cisco Employee

 

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

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