我正在做一个自动化CUCM activities.Presently的项目,我想做的是更新一个现有用户,建立一个与新设备的关联,并删除一个现有的关联。我正在尝试使用Python来实现这一点。下面是它的XML结构:
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<axl:updateAppUser xmlns:axl="http://www.cisco.com/AXL/API/1.0"
sequence="12055">
<userid>atest</userid>
<associatedDevices>
<device>TCTVINU</device>
</associatedDevices>
</axl:updateAppUser >
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>但是当我运行代码时,它显示用户不存在,但用户在CUCM中。有没有其他替代方法来实现这一点。
发布于 2018-08-10 17:42:48
明白我犯了什么错误,有两种类型的用户AppUser和EndUser,我试图做的是将设备与EndUser关联。AppUser不能与设备关联。因此,正确的XML如下所示:
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<axl:updateUser xmlns:axl="http://www.cisco.com/AXL/API/1.0"
sequence="12055">
<userid>atest</userid>
<associatedDevices>
<device>TCTVINU</device>
</associatedDevices>
</axl:updateUser >
</SOAP-ENV:Body>
https://stackoverflow.com/questions/51766912
复制相似问题