<?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: doLdapSync is giving 5003 error in Management</title>
    <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476081#M951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted the exact (non-parametrized) code with the question, similar code works for other requests. I did also tried many other ways using different libraries but without any success.&lt;/P&gt;&lt;P&gt;Due to my time lines and unable to move ahead I had to use some old java code as a service, written by some other team which had worked earlier. This java code worked.&lt;/P&gt;&lt;P&gt;Later while I was analyzing, only difference I could identify between Java and Python code was; Java was using the axl WSDL. From Python I was making direct soap calls. Probably some APIs like 'doLdapSync' does not work without WSDL reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 18:06:46 GMT</pubDate>
    <dc:creator>rajeran2</dc:creator>
    <dc:date>2015-04-07T18:06:46Z</dc:date>
    <item>
      <title>doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476076#M946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are tying to perform LDAP sync using Python. Except for doLdapSync all other axl calls are happening.&lt;/P&gt;&lt;P&gt;Please help me get out of this dead lock.&lt;/P&gt;&lt;P&gt;Request: (credentials removed)&lt;/P&gt;&lt;P&gt;AXL_LDAPSYNC = """&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/8.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/8.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns:doLdapSync sequence="12345"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;OpenDJ_BLR_SDP (10.104.194.159)&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sync&amp;gt;true&amp;lt;/sync&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns:doLdapSync&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/soapenv:Envelope&amp;gt;"""&lt;/P&gt;&lt;P&gt;data = AXL_LDAPSYNC&lt;/P&gt;&lt;P&gt;import urllib,urllib2&lt;/P&gt;&lt;P&gt;import base64,requests&lt;/P&gt;&lt;P&gt;base64string = base64.encodestring('%s:%s' % ('*****', '****')).replace('\n', '')&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;request = urllib2.Request("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.104.194.237:8443/axl/doLdapSync" rel="nofollow" target="_blank"&gt;https://10.104.194.237:8443/axl/doLdapSync&lt;/A&gt;&lt;SPAN&gt;", data=data, headers={'Content-Type': 'text/xml','Authorization': "Basic %s" % base64string})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;result = urllib2.urlopen(request)&lt;/P&gt;&lt;P&gt;print result.geturl()&lt;/P&gt;&lt;P&gt;print result.read()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;SOAP-ENV:Envelope SOAP-ENV:encodingStyle="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/encoding/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/encoding/&lt;/A&gt;&lt;SPAN&gt;" xmlns:SOAP-ENV="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;SOAP-ENV:Header/&amp;gt;&amp;lt;SOAP-ENV:Body&amp;gt;&amp;lt;SOAP-ENV:Fault&amp;gt;&amp;lt;faultcode&amp;gt;SOAP-ENV:Client&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;No method found for processing request&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axl:Error xmlns:axl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/1.0" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/1.0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;axl:code&amp;gt;5003&amp;lt;/axl:code&amp;gt;&amp;lt;axl:message&amp;gt;No method found for processing request&amp;lt;/axl:message&amp;gt;&amp;lt;request&amp;gt;doLdapSync&amp;lt;/request&amp;gt;&amp;lt;/axl:Error&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/SOAP-ENV:Fault&amp;gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&amp;lt;/SOAP-ENV:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : The same request is working if I post it using SOAPUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 06:16:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476076#M946</guid>
      <dc:creator>rajeran2</dc:creator>
      <dc:date>2015-03-31T06:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476077#M947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is "&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;OpenDJ_BLR_SDP (10.104.194.159)" really the correct name for your LDAP?&amp;nbsp; The IP address in parens is part of the name?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if Python is tripping up on that name.&amp;nbsp; Obviously the problem is somewhere with Python, since SoapUI is handling the same request properly.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 17:22:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476077#M947</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-03-31T17:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476078#M948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Nicholas, "&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;OpenDJ_BLR_SDP (10.104.194.159)" &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt; is the correct 'LDAP Configuration Name'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;1.&amp;nbsp; I have tried the same request for another CUCM with a LDAP name which is without any space but that too gives the same result. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;2. Python should not be problem as other AXL request with the same code are working fine. Also while debugging I observed what xml is it sending, which was exactly same as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 04:37:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476078#M948</guid>
      <dc:creator>rajeran2</dc:creator>
      <dc:date>2015-04-01T04:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476079#M949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the same action with SoapUI works, that pretty much eliminates CUCM/AXL as the problem, leaving only Python or the python libraries as the potential problem.&amp;nbsp; I encountered a similar problem with Python in the past, and updating to a beta version of the library fixed it (I think it was requests, if I recall correctly, but I could be mistaken).&amp;nbsp; I've also experienced problems with how Python libraries interpret the WSDL.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you can preview the XML, can you post an example of what XML the Python program is sending?&amp;nbsp; Also, it might be useful if you can watch the actual transactions using Wireshark or Fiddler. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 15:48:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476079#M949</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-04-01T15:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476080#M950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made any progress on this?&amp;nbsp; Can you post the XML?&amp;nbsp; I'd like to find out where things go wrong.&amp;nbsp; It would help other Python developers.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't reproduce the problem at my lab.&amp;nbsp; It works for me.&amp;nbsp; I did have to change one thing, though.&amp;nbsp; I removed the doLdapSync from the URL in this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;request = urllib2.Request("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://ds-ucm105.cisco.com:8443/axl/" rel="nofollow" target="_blank"&gt;https://ds-ucm105.cisco.com:8443/axl/&lt;/A&gt;&lt;SPAN&gt;", data=data, headers={'Content-Type': 'text/xml','Authorization': "Basic %s" % base64string})&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:38:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476080#M950</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-04-07T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476081#M951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted the exact (non-parametrized) code with the question, similar code works for other requests. I did also tried many other ways using different libraries but without any success.&lt;/P&gt;&lt;P&gt;Due to my time lines and unable to move ahead I had to use some old java code as a service, written by some other team which had worked earlier. This java code worked.&lt;/P&gt;&lt;P&gt;Later while I was analyzing, only difference I could identify between Java and Python code was; Java was using the axl WSDL. From Python I was making direct soap calls. Probably some APIs like 'doLdapSync' does not work without WSDL reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:06:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476081#M951</guid>
      <dc:creator>rajeran2</dc:creator>
      <dc:date>2015-04-07T18:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: doLdapSync is giving 5003 error</title>
      <link>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476082#M952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it's a WSDL reference.&amp;nbsp; Like I said above, the Python worked fine for me.&amp;nbsp; I used your exact code (with my username/password and server).&amp;nbsp; All I had to do to make it work was remove the doLdapSync from the URL.&amp;nbsp; But I didn't get a 5003 error, I got a 404 error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just noticed, however, that you're using AXL 8.5.&amp;nbsp; Perhaps that's the difference.&amp;nbsp; We have an 8.6.2 server we can use for testing.&amp;nbsp; Is that the version of CUCM you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:56:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/doldapsync-is-giving-5003-error/m-p/3476082#M952</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-04-07T18:56:50Z</dc:date>
    </item>
  </channel>
</rss>

