Display/Execute XML on 7960/7940

Answered Question
Feb 3rd, 2007

hello here is my environnement variable

Windows Xp pro SP2

Cisco SDK

Appache 2.4 web serveur

XML File like this one

<CiscoIPPhoneMenu>

<Title>RTPTx</Title>

<Prompt>choose your destination ip</Prompt>

<MenuItem>

<Name>10.11.164.42</Name>

<URL>RTPTx:10.11.164.42:24636</URL>

</MenuItem>

<MenuItem>

<Name>STOP</Name>

<URL>RTPTx:Stop</URL>

</MenuItem>

</CiscoIPPhoneMenu>

When I use IE explorer to see the file, it' ok, I see the file as XML (black and red text). When I tell the phone to get the XML file (via apache web serveur).

the file is loaded, but as TEXT and not XML. So the result, is that I can read the XML file like in "wordpad" on the screen of the 7960 phone

I've try my file on the aptigen phone emulator and everything is displaying as XML. (it seem that it's a good product)

http://www.aptigen.net/DesktopDefault.aspx?tabindex=1&tabid=52

My question:

How can I make the phone understand that this is not a text file but a XML file ?

I have this problem too.
0 votes
Correct Answer by XmlEquals about 9 years 7 months ago

It must be pure XML (not HTML), and the content-type header must be 'text/xml'.

I believe you can use apache rules to force the web server to send down text/xml for content-type instead of text/plain or text/html or whatever it is it's sending.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
pbouchard1 Mon, 02/05/2007 - 09:06

Content-Type: text/xml; charset=ISO-8859-1

<?xml version="1.0" encoding="UTF-8"?>

.............

i do have try to put that at the beginning of the file. But, nothing change, the phone continue to load ? text file.

XmlEquals Mon, 02/05/2007 - 09:25

Content-type is a a header, not a part of the response body.

pbouchard1 Mon, 02/05/2007 - 10:30

thanks, but nothing is working, I think that i absolutely need asp to make everything works.

Do you have a working example of a basic xml file that is working on a 7960 ?

I do have try this:

RTPTx

.......

Correct Answer
XmlEquals Mon, 02/05/2007 - 12:27

It must be pure XML (not HTML), and the content-type header must be 'text/xml'.

I believe you can use apache rules to force the web server to send down text/xml for content-type instead of text/plain or text/html or whatever it is it's sending.

pbouchard1 Mon, 02/12/2007 - 06:04

thanks for the tips,

I do have found in the apache configuration

that:

.xml files have a rewrite header of text/html

I change the file "myme.types" in the "\appache\conf\" folder and everything was working perfect !

now the appache web server is sending a text/xml header to the cisco IP phone

schakra Tue, 02/13/2007 - 02:45

IS there any configuration needed for IIS in windows 2000 server also.I found there content type text/xml.

My ccm is 4.1(3)

IP phone 7912

getting error Not Available

XML error[!5]

any suggestions welcome

Regards,

XmlEquals Tue, 02/13/2007 - 05:59

Hey--that's not really enough info for me to go off of, but XML error[!5] seems to tell me that your XML is not valid.

What is the XML you are sending in your script? Have you tried to view the XML in a web browser? IE or FF can act as a simple way to verify that you are sending valid XML.

Post the XML here--maybe there is something obviously amiss...

pbouchard1 Wed, 02/14/2007 - 10:33

http://www.aptigen.net/DesktopDefault.aspx?tabindex=1&tabid=52

is a good product for testing xml on a phone

you have to consider also that 7912 cisco phone have a more limited xml browser than other models.

also, in the sp?cification, you have to get all the latest update for the IIS (the latest IIS is 6.0) and you have to make sure to install the msxml3sp2setup.exe (include in the sdk of cisco)

xavilleixa Wed, 05/09/2007 - 23:34

Hi,

I has the same problem as you but I use apache2. Can you tell me the changes that you done in mime.types because I tried different things at it doesn't work.

Thank you

Actions

This Discussion