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

Page of 67
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) 
 
    NetworkCredential credentials = 
new
 NetworkCredential(
"username"
"password"
"domain"
);
 
                                                                        
 
    bookingService = 
new
 BookingService {Credentials = credentials};
 
    
if
 (bookingService.ExternalAPIVersionSoapHeaderValue == 
null
)
 
    {
 
        bookingService.ExternalAPIVersionSoapHeaderValue = 
new
 ExternalAPIVersionSoapHeader();
 
    }
 
    bookingService.ExternalAPIVersionSoapHeaderValue.ClientVersionIn = 11;             
 
}
Cisco TMSBA Programming Reference Guide (14.3)
Page 59 of 67
Code examples