cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
677
Views
0
Helpful
1
Replies

The wsdl operation was not found

Evgeny Udaltsov
Level 1
Level 1

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))

 

1 Reply 1

Evgeny Udaltsov
Level 1
Level 1

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")