TANDBERG D14172.01 manual Soap, putxml, http//10.0.0.1/webservices.wsdl, Example

Models: D14172.01

1 84
Download 84 pages 8.98 Kb
Page 16
Image 16
putxml

TANDBERG Gatekeeper/Border Controller API User Guide

putxml

Request URI:

/putxml

 

 

Request parameter:

HTTP BODY as argument

 

 

Putxml is like formputxml, but uses the complete BODY as the argument (i.e. the content of the xmldoc parameter). The Content-type should be set to either "text/xml", "application/xml" or "text/plain".

1.5.2 SOAP

The command and configuration interface is also available over SOAP. The syntax for the interface is specified using the Web Services Description Language (WSDL). The WSDL file is located at the root of the system’s web server at the URL “/webservices.wsdl": e.g.

http://10.0.0.1/webservices.wsdl

Most programming environments have built in support for developing web service clients or else third party libraries are available. The following examples use the PHP scripting language to illustrate how to develop a client web service for the Gatekeeper and Border Controller.

Example 1.18

The example below shows how to reboot the system using the boot command:

<?php

$client = new SoapClient('http://10.0.0.1/webservices.wsdl', array('login' => '<username>', 'password' => '<password>'));

$client->Boot(); ?>

Example 1.19

The example below shows how to use the dial command which requires parameters to be passed as part of the operation:

<?php

$client = new SoapClient('http://10.0.0.1/webservices.wsdl', array('login' => '<username>', 'password' => '<password>'));

$client->Dial( array('callSrc' => 'Alice', 'callDst' => 'Bob') ); ?>

D14172.01

page 16 of 84

Page 16
Image 16
TANDBERG D14172.01 manual Soap, putxml, http//10.0.0.1/webservices.wsdl, Example