4.0

Table Of Contents
Lab Manager SOAP API Reference
34 VMware, Inc.
Console.WriteLine();
Console.ReadLine();
}
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
GetCurrentOrganizationName
Thiscallreturnsthecurrentorganization’sname.
Syntax
string organizationName = GetCurrentOrganizationName();
Response
C# Sample Code
try
{
LabManagerSoap.LabManagerSOAPinterface binding = new
LabManagerSoap.LabManagerSOAPinterface();
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
string organizationName = binding.GetCurrentOrganizationName();
Console.WriteLine("Current organization I am logged in: " + organizationName);
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
GetCurrentWorkspaceName
Thiscallreturnsthecurrentworkspacename.
Syntax
string workspaceName = GetCurrentWorkspaceName();
Response
Field Data Type Description
organizationname string Returnsthecurrentorganization
name.
Field Data Type Description
workspacename string Returnsthecurrentworkspacename.