Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide
PrintConferenceInformation(conference);
}
System Unavailable
Running the code below will output a "system unavailable" message.
public
void
ErrorHandling_SystemNotAvailable()
{
InitBookingService();
InitBookingService();
var
conference = bookingService.GetDefaultConference();
var
start = DateTime.Now.AddHours(1);
var
end = start.AddMinutes(10);
conference.StartTimeUTC = start.ToString(
"u"
);
conference.EndTimeUTC = end.ToString(
"u"
);
var
participant =
new
Participant {ParticipantCallType = ParticipantType.TMS, ParticipantId = 4};
conference.Participants =
new
[]
{
participant
};
bookingService.SaveConference(conference);
participant
};
bookingService.SaveConference(conference);
try
{
// By setting the Id to -1, we try to book a new conference, with the same time and participant
conference.ConferenceId = -1;
conference = bookingService.SaveConference(conference);
}
conference = bookingService.SaveConference(conference);
}
catch
(SoapException e)
{
Console.WriteLine(
Console.WriteLine(
"Got error with error code {0}, and message {1}, from Booking API"
, e.Detail.InnerXml, e.Message);
}
PrintConferenceInformation(conference);
}
PrintConferenceInformation(conference);
}
private
static
void
PrintConferenceInformation(Conference conference)
{
// Output information about the conference.
Console.Out.WriteLine(conference.ConferenceInfoText);
Console.Out.WriteLine(conference.UserMessageText);
Console.Out.WriteLine(conference.ConferenceId);
}
Console.Out.WriteLine(conference.UserMessageText);
Console.Out.WriteLine(conference.ConferenceId);
}
public
void
Dispose()
{
bookingService.Dispose();
remoteSetupService.Dispose();
}
bookingService.Dispose();
remoteSetupService.Dispose();
}
Cisco Legal Information
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE
WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED
TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST
TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED
TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST
TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE
INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS
INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS
64
Cisco TelePresence Management Suite Extension Booking API Programming Reference Guide