<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CUCM ondemand CDR API return 500 error in Management</title>
    <link>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4800042#M4044</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;We had the same issue.&amp;nbsp;&lt;BR /&gt;Simple change of Content-Type header from application/xml to text/xml helped us resolve it.&lt;BR /&gt;Attaching screenshots below :&amp;nbsp;&lt;BR /&gt;1. When Content-Type header is application/xml&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AMB14_0-1679580106563.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/179862i8BBBA8D5512F2303/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AMB14_0-1679580106563.png" alt="AMB14_0-1679580106563.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. with the exact same payload and Content-type as text/xml - works like a charm&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AMB14_1-1679581902342.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/179870i456AD8D945465014/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AMB14_1-1679581902342.png" alt="AMB14_1-1679581902342.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 14:32:00 GMT</pubDate>
    <dc:creator>AMB14</dc:creator>
    <dc:date>2023-03-23T14:32:00Z</dc:date>
    <item>
      <title>CUCM ondemand CDR API return 500 error</title>
      <link>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4533725#M3800</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;We are using postman to connect&amp;nbsp;ondemand CDR API&amp;nbsp;&lt;/P&gt;&lt;P&gt;It returns 500 Internal Server error.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;faultstring&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;The&amp;nbsp;endpoint&amp;nbsp;reference&amp;nbsp;(EPR)&amp;nbsp;for&amp;nbsp;the&amp;nbsp;Operation&amp;nbsp;not&amp;nbsp;found&amp;nbsp;is&amp;nbsp;/CDRonDemandService2/services/CDRonDemandService&amp;nbsp;and&amp;nbsp;the&amp;nbsp;WSA&amp;nbsp;Action&amp;nbsp;=&amp;nbsp;null&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;faultstring&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could anyone please advise? Thanks&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jan 2022 23:51:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4533725#M3800</guid>
      <dc:creator>DennisWei328</dc:creator>
      <dc:date>2022-01-18T23:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM ondemand CDR API return 500 error</title>
      <link>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4534824#M3801</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;v11.5:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt; &amp;lt;wsdl:service name="CDRonDemandService"&amp;gt;
    &amp;lt;wsdl:port name="CDRonDemand" binding="tns:CDRonDemandSoapBinding"&amp;gt;
        &amp;lt;wsdlsoap:address location="https://10.194.104.83:80/CDRonDemandService2/services/CDRonDemand&lt;FONT color="#800000"&gt;Service&lt;/FONT&gt;"/&amp;gt;
    &amp;lt;/wsdl:port&amp;gt;
&amp;lt;/wsdl:service&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;v14:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;wsdl:service name="CDRonDemandService"&amp;gt;
    &amp;lt;wsdl:port name="CDRonDemand" binding="tns:CDRonDemandSoapBinding"&amp;gt;
        &amp;lt;soap:address location="https://localhost:8443/CDRonDemandService2/services/CDRonDemand"/&amp;gt;
    &amp;lt;/wsdl:port&amp;gt;
&amp;lt;/wsdl:service&amp;gt;&lt;/PRE&gt;
&lt;P&gt;(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)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp; E.g. in Python-Zeep:&lt;/P&gt;
&lt;PRE&gt;service = client.create_service(
    '{http://schemas.cisco.com/ast/soap}CDRonDemandSoapBinding',
    f'https://{ os.getenv( "CUCM_ADDRESS" ) }:8443//CDRonDemandService2/services/CDRonDemandService' 
    )&lt;/PRE&gt;
&lt;P&gt;I've opened a defect to track the issue against CUCM 12.5/14: CSCwa71902&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 05:02:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4534824#M3801</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2022-01-20T05:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM ondemand CDR API return 500 error</title>
      <link>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4538129#M3808</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 13:17:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4538129#M3808</guid>
      <dc:creator>DennisWei328</dc:creator>
      <dc:date>2022-01-25T13:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM ondemand CDR API return 500 error</title>
      <link>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4538752#M3813</link>
      <description>&lt;P&gt;Perhaps can you post the full raw HTTP request?&lt;/P&gt;
&lt;P&gt;I suspect this may be some issue on the CUCM side - might suggest opening a DevNet Developer Support ticket: &lt;A href="https://developer.cisco.com/site/support/" target="_blank"&gt;https://developer.cisco.com/site/support/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 22:34:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4538752#M3813</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2022-01-25T22:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM ondemand CDR API return 500 error</title>
      <link>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4800042#M4044</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;We had the same issue.&amp;nbsp;&lt;BR /&gt;Simple change of Content-Type header from application/xml to text/xml helped us resolve it.&lt;BR /&gt;Attaching screenshots below :&amp;nbsp;&lt;BR /&gt;1. When Content-Type header is application/xml&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AMB14_0-1679580106563.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/179862i8BBBA8D5512F2303/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AMB14_0-1679580106563.png" alt="AMB14_0-1679580106563.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. with the exact same payload and Content-type as text/xml - works like a charm&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AMB14_1-1679581902342.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/179870i456AD8D945465014/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AMB14_1-1679581902342.png" alt="AMB14_1-1679581902342.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:32:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-ondemand-cdr-api-return-500-error/m-p/4800042#M4044</guid>
      <dc:creator>AMB14</dc:creator>
      <dc:date>2023-03-23T14:32:00Z</dc:date>
    </item>
  </channel>
</rss>

