4.0

Table Of Contents
Lab Manager SOAP API Reference
24 VMware, Inc.
ConfigurationCapture
Thismethodcapturesaworkspaceconfigurationandsavesit.
Syntax
int newConfigId = ConfigurationCapture(10,
“Config10Capture”);
Arguments
Response
C# Sample Code
try
{
//**
//** LabManagerSoap is the name of the Web reference in Visual Studio
//**
LabManagerSoap.LabManagerSOAPinterface binding = new
LabManagerSoap.LabManagerSOAPinterface();
//** Create login
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
binding.AuthenticationHeaderValue.workspacename = "MyWorkspace";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//** Get Configuration object
LabManagerSoap.Configuration Config =
binding.GetSingleConfigurationByName("Config26");
//** Get configuration identifier and deployed status from object
int configurationId = Config.id;
bool deployed = Config.isDeployed;
//** Capture configuration if it’s deployed
if (deployed)
{
//** Save capture with date and time stamp
string captureName=Config.name + DateTime.Now.ToString();
string LMStorageServer = "LM Server";
binding.ConfigurationCapture(configurationId, captureName);
}
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
Field Data Type Description
configurationID int Configurationidentifier.
newLibraryName string Capturename.
Field Data Type Description
configurationID int Configurationidentifierofthenewcapture.