10-16-2017 07:10 AM
I am using python script based on AXL plugin to try access CUCM . I am getting the below error when i try to invoke any method on client object . Need help on how i can overcome the problem.
<suds.sax.document.Document object at 0x089B0A90>
(401, 'Unauthorized')
Any help would be appreciated.
code snippet :
============
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_REQUIRED
context.check_hostname = True
context.load_default_certs()
ssl._create_default_https_context = ssl._create_unverified_context
client = Client(wsdl,location=location,faults=False,plugins=[ImportDoctor(imp)],
username=username,password=password)
print("=============================================")
result = client.service.getPhone(name = 'SEP0038DF01B49F')
#print(client.service.listPhone())
print(result)
result = client.service.getPhone(name = 'SEP0038DF01B49F')
#print(client.service.listPhone())
10-17-2017 11:34 AM
which version of the cucm you are using ?. I was getting this error ( was using java client) when my URL was not correctly configured. ( https://<cucmIp>:8443/axl/ ) I was missing the "/" at the end of URL.
-Raghu Rao
09-05-2018 03:18 AM
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