4.0

Table Of Contents
Lab Manager SOAP API Reference
20 VMware, Inc.
AuthenticationHeader
Thisdatatypepassestheusername,password,organization,andworkspacenameofthecallerinall
Lab ManagerSOAPAPImethods.
Supported API Calls
ThisdatatypesupportsallAPIcalls.
Fields
C# Sample Code
/**
** Visual Studio Console application in C#
** LMsoap = Web reference name for LM Web service
** Set up login code for all LM Web service method calls
**
**/
try
{
LabManagerSoap.LabManagerSOAPinterface binding = new
LabManagerSoap.LabManagerSOAPinterface();
binding.AuthenticationHeaderValue =new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "hedley";
binding.AuthenticationHeaderValue.password = "Lab Manager";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
binding.AuthenticationHeaderValue.workspacename = "MyWorkspace";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
Table 3-2. Lab Manager SOAP API Data Types
Data Type Description
AuthenticationHeader Containstheusername,password,organization,andworkspacenameofthecaller.
This datatypeispartofeverySOAPheaderinLab ManagerWebServicemethods.
Configuration Configurationobject.
Machine Machineobject.
Table 3-3. AuthenticationHeader Fields
Field Data Type Description
organizationname string Lab Managerorganizationname.
password string Lab Manageraccountpassword.
username string Lab Manageraccountusername.
workspacename string Lab Managerworkspacename