02-04-2022 02:17 AM - edited 02-04-2022 02:22 AM
Hi! Today i have got an error. Any idea what happened? The CUCM ver. 11.5(SU10) - Yesterday scripts worked without any issues. There weren't any changes.
.../venv/lib/python3.9/site-packages/zeep/wsdl/wsdl.py:352: UserWarning: The wsdl:message for '{http://schemas.cisco.com/ast/soap}selectCtiItemRequest' contains an invalid part ('parameters'): invalid xsd type or elements warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/wsdl.py:352: UserWarning: The wsdl:message for '{http://schemas.cisco.com/ast/soap}selectCtiItemResponse' contains an invalid part ('parameters'): invalid xsd type or elements warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/wsdl.py:352: UserWarning: The wsdl:message for '{http://schemas.cisco.com/ast/soap}selectCmDeviceResponse' contains an invalid part ('parameters'): invalid xsd type or elements warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/wsdl.py:352: UserWarning: The wsdl:message for '{http://schemas.cisco.com/ast/soap}selectCmDeviceRequest' contains an invalid part ('parameters'): invalid xsd type or elements warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/wsdl.py:352: UserWarning: The wsdl:message for '{http://schemas.cisco.com/ast/soap}selectCmDeviceExtRequest' contains an invalid part ('parameters'): invalid xsd type or elements warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/definitions.py:144: UserWarning: The wsdl:operation 'selectCmDevice' was not found in the wsdl:portType '{http://schemas.cisco.com/ast/soap}RisPortType' warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/definitions.py:144: UserWarning: The wsdl:operation 'selectCtiItem' was not found in the wsdl:portType '{http://schemas.cisco.com/ast/soap}RisPortType' warnings.warn(str(exc)) .../venv/lib/python3.9/site-packages/zeep/wsdl/definitions.py:144: UserWarning: The wsdl:operation 'selectCmDeviceExt' was not found in the wsdl:portType '{http://schemas.cisco.com/ast/soap}RisPortType' warnings.warn(str(exc))
02-04-2022 02:50 AM
So, something was change in Schema - RIS Methods return:
[2022-02-04 13:36:45,600]:[cucm_api.py:1392] - ERROR - * CUCM Conn * - @ ris_getPhones @ - Unexpected Error Occurred: 'No type 'CmSelectionCriteria' in namespace http://schemas.cisco.com/ast/soap. Available types are: - '
A temporary solution is download the RIS xml file from your publisher: https://ip_or_fqdn:8443/realtimeservice/services/RisPort70?wsdl
Check that the <service name="RISService70"> tag contain the correct location value: "https://ip_or_fqdn:8443/realtimeservice/services/RisPort70"
and change your wsdl path, for example:
# wsdl_ris = f"https://ip_or_fqdn:8443/realtimeservice2/services/RISService70?wsdl" wsdl_ris = os.path.join(MAIN_APP_DIR, f"filepath/ris_filename.xml")
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