Directories XML

Answered Question
Jun 15th, 2008

Hi,

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:

<CiscoIPPhoneMenu>

<Prompt>Izberite imenik</Prompt>

<MenuItem>

<Name>Imenik organizacije</Name>

<URL>http://<server_ip>/IPTServices/LDAPSearch/ldap_welcome.asp</URL>

</MenuItem>

</CiscoIPPhoneMenu>

Where did i mess up?

I have this problem too.
0 votes
Correct Answer by pklos about 8 years 5 months ago

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

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

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.

Regards,

Marko

pklos Mon, 06/16/2008 - 04:02

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

content-type: text/xml.

--

regards,

PK

pklos Mon, 06/16/2008 - 04:05

Like this:

<%response.ContentType="text/xml"%>

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

I did. This is my asp code:

<%@ Language=JavaScript %>

<%

var serverIP<

serverIP = Request.ServerVariables("LOCAL_ADDR");

Response.ContentType = "text/html";

%>

Izberite imenik

Interni imenik

http://ccm:8080/ccmip/xmldirectory.jsp

Imenik organizacije

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

Cant figure out what's wrong.

Regards,

Marko

Correct Answer
pklos Mon, 06/16/2008 - 04:17

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

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

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

Thanks!

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

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

Regards,

Marko

Actions

This Discussion