Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide

Page of 81
Booking API setup
The code snippet below demonstrates how to authenticate with Cisco TMSBA and specify the version.
public
 
void
 InitBookingService()
 
{
 
    
// Specify username and password to authenticate to service. 
 
    
// (Can also be done in web.config) 
 
    
var
 credentials = 
new
 NetworkCredential(
Username
Password
Server
);
 
                                                                        
 
    bookingService = 
new
 BookingService(); 
 
 
bookingService.Credentials = credentials;
 
    
if
 (bookingService.ExternalAPIVersionSoapHeaderValue == 
null
)
 
    {
 
        bookingService.ExternalAPIVersionSoapHeaderValue = 
new
 
BookingServiceWS.ExternalAPIVersionSoapHeader();
 
    }
 
    bookingService.ExternalAPIVersionSoapHeaderValue.ClientVersionIn = 15;
 
    bookingService.ExternalAPIVersionSoapHeaderValue.ClientSession = 
"clientSessionString"
          
 
}
Cisco TelePresence Management Suite Extension Booking API Programming Reference Guide (14.6)     
Page 71 of 81
Code examples
Booking API setup