01-18-2022 03:51 PM
Hi everyone,
We are using postman to connect ondemand CDR API
It returns 500 Internal Server error.
01-19-2022 09:02 PM
From what I can tell, there appears to be a problem in the CDRonDemandService2 WSDL for (at least) CUCM 12.5 and 14, where the bind location URL is missing 'Service' on the end.
v11.5:
<wsdl:service name="CDRonDemandService"> <wsdl:port name="CDRonDemand" binding="tns:CDRonDemandSoapBinding"> <wsdlsoap:address location="https://10.194.104.83:80/CDRonDemandService2/services/CDRonDemandService"/> </wsdl:port> </wsdl:service>
v14:
<wsdl:service name="CDRonDemandService"> <wsdl:port name="CDRonDemand" binding="tns:CDRonDemandSoapBinding"> <soap:address location="https://localhost:8443/CDRonDemandService2/services/CDRonDemand"/> </wsdl:port> </wsdl:service>
(Note the v14 WSDL also replaces the specific IP of the CUCM host with a generic 'localhost' which you'll need to override, though it does provide the correct port 8443 whereas the 11.5 WSDL provides the incorrect 80)
Workarounds could be a) edit the WSDL to correct the location URL and recompile any autogenerated code stubs if necessary b) make sure to specify the corrected URL when making the request and/or overriding the location. E.g. in Python-Zeep:
service = client.create_service( '{http://schemas.cisco.com/ast/soap}CDRonDemandSoapBinding', f'https://{ os.getenv( "CUCM_ADDRESS" ) }:8443//CDRonDemandService2/services/CDRonDemandService' )
I've opened a defect to track the issue against CUCM 12.5/14: CSCwa71902
01-25-2022 05:17 AM
Thanks dstaudt. Our CM is 11.5 and i tried both URLs (with or without 'service') with 8443 or 80 port however still get 500 internal error. Tried restart ondemandCDR service but not work.
01-25-2022 02:34 PM
Perhaps can you post the full raw HTTP request?
I suspect this may be some issue on the CUCM side - might suggest opening a DevNet Developer Support ticket: https://developer.cisco.com/site/support/
03-23-2023 07:32 AM
Hi Team,
We had the same issue.
Simple change of Content-Type header from application/xml to text/xml helped us resolve it.
Attaching screenshots below :
1. When Content-Type header is application/xml
2. with the exact same payload and Content-type as text/xml - works like a charm
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