TANDBERG Gatekeeper/Border Controller API User Guide
1.5Introduction to TANDBERG XML API Service (TXAS)
TXAS is a service provided by TANDBERG units for transmitting and receiving information encoded in XML format.
The API uses HTTP(S) as the transport mechanism and connects to the normal web port (80). TXAS can be accessed in two ways:
•
•SOAP, where a single URI is used but the request itself is encoded with XML.
1.5.1 Bare-bone HTTP(S) access
The
getxml
Request URI: | /getxml |
|
|
Request parameter: | location = XPath expression |
|
|
The getxml request returns an XML document based on the location parameter passed to the request. The elements (or complete document) matching the expression will be returned.
If an invalid XPath expression is supplied, a <Fault> element with a <XPathError> element will be returned.
Example 1.15
Using the Unix curl command, the up time of a system can be retrieved from the Status document:
curl
<?xml version="1.0"?> <Status>
<SystemUnit item="1">
<Uptime item="1">604800</Uptime> </SystemUnit>
</Status>
formputxml
Request URI: | /formputxml |
|
|
Request parameter: | xmldoc = "an XML document of Configuration or a Command" |
|
|
This is most useful in a POST (to extend character limit of 255 of GET urls). It posts a Configuration or Command document to set some configuration values or issue a command.
D14172.01 | page 14 of 84 |