TANDBERG D13639 manual Exercises

Models: D13639

1 84
Download 84 pages 1.01 Kb
Page 17
Image 17

TANDBERG MPS API

User Guide

1.6 Exercises

The exercises in this section are based on using a TANDBERG 6000 MXP codec and Microsoft Internet Explorer. Some of the examples may however also apply to other systems and other browsers.

NOTE! Replace the ip address, 10.47.8.41, in the below examples with the ip address of your system.

Exercise 1

The example in this exercise shows how to read the supported XML documents from the system using a web browser.

Enter the following address in the browsers address field:

http://10.47.8.41/status.xml

http://10.47.8.41/history.xml

http://10.47.8.41/configuration.xml

http://10.47.8.41/directory.xml

http://10.47.8.41/command.xml

http://10.47.8.41/valuespace.xml

Exercise 2

This exercise shows how to use getxml to read the supported XML documents from the system. Enter the following expressions in the browsers address field (NOTE! The first letter in the document names is uppercase):

http://10.47.8.41/ getxml?location=Status

http://10.47.8.41/ getxml?location=History

http://10.47.8.41/ getxml?location=Configuration

http://10.47.8.41/ getxml?location=Directory

http://10.47.8.41/ getxml?location=Command

http://10.47.8.41/ getxml?location=ValueSpace

Exercise 3

This exercise shows how to use XPath expressions to read subsets of the XML documents.

http://10.47.8.41/getxml?location=Status/SystemUnit

http://10.47.8.41/getxml?location=Configuration/SerialPort/BaudRate

http://10.47.8.41/getxml?location=ValueSpace/SerialPortBaudrate[@item='1’]

http://10.47.8.41/getxml?location=Configuration//Mode

http://10.47.8.41/getxml?location=Command/Dial

Exercise 4

The address: http://10.47.8.41/xmlput.ssi contains an editor where XML data can be edited and then posted to the system by pressing the save button. Below are examples of XML structures to be posted to the system:

<Configuration>

<SerialPort>

<BaudRate>19200</BaudRate>

</SerialPort>

</Configuration>

---

<Configuration>

15

Page 17
Image 17
TANDBERG D13639 manual Exercises