File tree Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 1- # axl-python-zeep-sample
1+ # axl-python-zeep-samples
22
33## Overview
44
@@ -25,7 +25,7 @@ The concepts and techniques shown can be extended to enable automated management
2525 $ pip install zeep
2626 ```
2727
28- * Edit axlZeep .py to specify your CUCM location and AXL user credentials
28+ * Edit creds .py to specify your CUCM location and AXL user credentials
2929
3030* Add the AXL WSDL files for your CUCM version
3131
@@ -62,17 +62,17 @@ The concepts and techniques shown can be extended to enable automated management
6262
6363 are represented a little differently than expected by Zeep. Note that `<member>` becomes an array, not `<members>`:
6464
65- ```json
65+ ```python
6666 {
67- members: {
68- member: [
67+ ' members' : {
68+ ' member' : [
6969 {
70- " subElement1": None ,
71- " subElement2": None
70+ ' subElement1': 'value' ,
71+ ' subElement2': 'value'
7272 },
73- {
74- " subElement1": None ,
75- " subElement2": None
73+ {
74+ ' subElement1': 'value' ,
75+ ' subElement2': 'value'
7676 }
7777 ]
7878 }
Original file line number Diff line number Diff line change 5151
5252WSDL_URL = 'AXLAPI.wsdl'
5353
54- # These are sample values for DevNet sandbox
55- # replace them with values for your own CUCM, if needed
54+ # Configure CUCM location and AXL credentials in creds.py
55+ import creds
5656
57- CUCM_URL = 'https://10.10.20.1 :8443/axl/'
58- USERNAME = 'administrator'
59- PASSWD = 'ciscopsdt'
57+ CUCM_URL = 'https://' + creds . CUCM_ADDRESS + ' :8443/axl/'
58+ USERNAME = creds . USERNAME
59+ PASSWD = creds . PASSWORD
6060
6161# If you have a pem file certificate for CUCM, uncomment and define it here
6262
Original file line number Diff line number Diff line change 4646from zeep .plugins import HistoryPlugin
4747from zeep .exceptions import Fault
4848
49+ # Configure CUCM location and AXL credentials in creds.py
50+ import creds
51+
52+ CUCM_URL = 'https://' + creds .CUCM_ADDRESS + ':8443/axl/'
53+ USERNAME = creds .USERNAME
54+ PASSWD = creds .PASSWORD
55+
4956WSDL_URL = 'AXLAPI.wsdl'
50- CUCM_URL = 'https://10.10.20.1:8443/axl/'
51- USERNAME = 'administrator'
52- PASSWD = 'ciscopsdt'
5357
5458#CERT = 'some.pem'
5559
You can’t perform that action at this time.
0 commit comments