cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
301
Views
5
Helpful
2
Replies

XML service is not getting parsed

wizzard344
Level 1
Level 1

Greetings! 

My ip phone 9951 is not creating objects from xml service, it just returns xml code. This could be explained by the fact, that I'm doing something wrong, but I CAN see my service working as intended from another ip phone (model 8945).

I have attached screenshots from both phone types.

My service is located on http server and is returned by php script:

<?php
include "service.xml";
?>

Service code 


<?xml version="1.0" encoding="utf-8"?>
<CiscoIPPhoneDirectory>
  <Title>Text Title</Title>
  <Prompt>Prompt Message</Prompt>
  <DirectoryEntry>
    <Name>Test</Name>
    <Telephone>5555555</Telephone>
  </DirectoryEntry>
  <DirectoryEntry>
    <Name>AAA</Name>
    <Telephone>55555555</Telephone>
  </DirectoryEntry>
  <DirectoryEntry>
    <Name>TGGG</Name>
    <Telephone>5552615</Telephone>
  </DirectoryEntry>
  <DirectoryEntry>
    <Name>ZZZZZ</Name>
    <Telephone>555616155</Telephone>
  </DirectoryEntry>
</CiscoIPPhoneDirectory>

Firmware versions:

Call manager - 10.5.1.100000-7 unrestricted

Cisco ip phone 9951 - sip9951  9-4-1-9

Cisco ip phone 8945 - sip  9-4-1-8

 

Thanks in advance!

1 Accepted Solution

Accepted Solutions

Gordon Ross
Level 9
Level 9

Are you setting the correct content type HTTP header?

 

GTG

Please rate all helpful posts.

View solution in original post

2 Replies 2

Gordon Ross
Level 9
Level 9

Are you setting the correct content type HTTP header?

 

GTG

Please rate all helpful posts.

Thank you! You made me understand this now! I finally have hello world service.

9951 phones require xml header passed with script.

Now php script should look like:

<?php

include "service.xml";

header("Content-Type: text/xml");

?>

 

It works now!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: