Directories XML

Answered Question
Jun 15th, 2008
User Badges:


i've written an asp script for LDAP directory search and pointed the phones to it. However, when i press the directories button, the new menu entries are not shown.

This is the XML output of the script:


<Prompt>Izberite imenik</Prompt>


<Name>Imenik organizacije</Name>




Where did i mess up?

Correct Answer by pklos about 9 years 1 month ago

you have text/html and you should have text/xml!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
markotisler Mon, 06/16/2008 - 03:51
User Badges:

I have restarted the phones and also tried with xml version line, the result is the same. I tried and subscribed this script as a service and accessed it from the phone->services button. What happens is, that i get the same XML output as with a browser on a pc instead of seeing menus.



pklos Mon, 06/16/2008 - 04:02
User Badges:
  • Silver, 250 points or more

So you need to send http header before xml tags in your asp script.

content-type: text/xml.




pklos Mon, 06/16/2008 - 04:05
User Badges:
  • Silver, 250 points or more

Like this:


markotisler Mon, 06/16/2008 - 04:09
User Badges:

I did. This is my asp code:

<%@ Language=JavaScript %>


var serverIP<

serverIP = Request.ServerVariables("LOCAL_ADDR");

Response.ContentType = "text/html";


Izberite imenik

Interni imenik


Imenik organizacije

<% = serverIP %>/CiscoIPServices/LDAPSearch/ldap_welcome.asp

Cant figure out what's wrong.



Correct Answer
pklos Mon, 06/16/2008 - 04:17
User Badges:
  • Silver, 250 points or more

you have text/html and you should have text/xml!

tomtom001 Fri, 06/20/2008 - 12:52
User Badges:

Can I ask which version of CM you were using? I'm looking to do the same thing for CM 6.1.


markotisler Sat, 06/21/2008 - 07:25
User Badges:

I did this on 6.1 also, although it really doesnt matter which version you are using.




This Discussion