cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
756
Views
0
Helpful
9
Replies

Directories XML

markotisler
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

9 Replies 9

pklos
Level 4
Level 4

Looks fine. Have you restarted phones?

I have one more line in my menu file:

Wybierz ksiazke

Firmowa ksi±¿ka telefon.

http://10.10.10.10:8080/ccmcip/xmldirectoryinput.jsp

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

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

content-type: text/xml.

--

regards,

PK

Like this:

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

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

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

Cheers, that did the trick.

Regards,

Marko

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

Thanks!

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

Regards,

Marko