06-12-2019 03:17 AM
Dear Cisco community,
currently i work on a simple pyhton script to add one Calling Search Space with a few partitions.
My testing enviroment:
If i try to send the following code, my pyhton / zeep module send every time only the last routePartition member in the xml to my cucm:
The follwing code is send by zeep/pyhton/soap to my cucm 11.5
So the problem is, no matter how much partiotions / members are added, it will be always added only the last member in the code.
I´ve try it with the uuid, no change!
I hope, anyone has an idea :) -thank you!
Best regards,
rene
Solved! Go to Solution.
06-12-2019 01:37 PM
Got this working on my 11.5 system and added a sample demonstrating how it works:
https://github.com/CiscoDevNet/axl-python-zeep-sample
The main trick you are running into seems to be:
Elements which contain a list, such as:
<members>
<member>
<subElement1/>
<subElement2/>
</member>
<member>
<subElement1/>
<subElement2/>
</member>
</members>
are represented a little differently than expected by Zeep. Note that <member>
becomes an array, not <members>
:
{
members: {
member: [
{
"subElement1": None,
"subElement2": None
},
{
"subElement1": None,
"subElement2": None
}
]
}
}
06-12-2019 01:37 PM
Got this working on my 11.5 system and added a sample demonstrating how it works:
https://github.com/CiscoDevNet/axl-python-zeep-sample
The main trick you are running into seems to be:
Elements which contain a list, such as:
<members>
<member>
<subElement1/>
<subElement2/>
</member>
<member>
<subElement1/>
<subElement2/>
</member>
</members>
are represented a little differently than expected by Zeep. Note that <member>
becomes an array, not <members>
:
{
members: {
member: [
{
"subElement1": None,
"subElement2": None
},
{
"subElement1": None,
"subElement2": None
}
]
}
}
06-12-2019 11:46 PM
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