CUC Forums

Combination View Flat View Tree View
Threads [ Previous | Next ]
I am working with CUPI 7.1.3.0ES10. Some of the examples list the HTTP response coming back as both JSON and XML. Is there a configuration that needs to be turned on for JSON response or is that supported in later versions?

You can get JSON or XML back by specifying the ¿Accepts¿ header (e.g., ¿application/xml¿ to get xml)



From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, June 07, 2011 2:27 PM
To: cdicuser@developer.cisco.com
Subject: New Message from kapil khanna in Cisco Unity Connection Provisioning Interface (CUPI) - CUPI Questions: JSON or XML



kapil khanna has created a new message in the forum "CUPI Questions":

--------------------------------------------------------------
I am working with CUPI 7.1.3.0ES10. Some of the examples list the HTTP response coming back as both JSON and XML. Is there a configuration that needs to be turned on for JSON response or is that supported in later versions?
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cupi/forums/-/message_boards/view_message/4020620>

or simply reply to this email.

RE: JSON or XML
Answer
6/7/11 10:33 PM as a reply to Matthew Penning.
So if I do not set any Accepts header the default is XML, correct?

Yes that¿s correct ¿ default is XML



~ Matt



From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, June 07, 2011 2:33 PM
To: cdicuser@developer.cisco.com
Subject: New Message from kapil khanna in Cisco Unity Connection Provisioning Interface (CUPI) - CUPI Questions: RE: JSON or XML



kapil khanna has created a new message in the forum "CUPI Questions":

--------------------------------------------------------------
So if I do not set any Accepts header the default is XML, correct?
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cupi/forums/-/message_boards/view_message/4020637>

or simply reply to this email.