Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Directories XML

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
Silver

Re: Directories XML

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

9 REPLIES
Silver

Re: Directories XML

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

New Member

Re: Directories XML

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

Silver

Re: Directories XML

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

content-type: text/xml.

--

regards,

PK

Silver

Re: Directories XML

Like this:

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

New Member

Re: Directories 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

Silver

Re: Directories XML

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

New Member

Re: Directories XML

Cheers, that did the trick.

Regards,

Marko

New Member

Re: Directories XML

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

Thanks!

New Member

Re: Directories XML

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

Regards,

Marko

232
Views
0
Helpful
9
Replies