Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

How to get LabManager Organizations??

$
0
0

I see couple of posts where users are trying to get Organization Names from LabManager - but i didnt find any helpful solutions. It will be great if someone can reply how to make the internal API call work or other options, workarounds.(I use labmanager 4)

 

I need to write a C# method that will list the  Organizations setup in the LabManager. Is there an  LabManager SOAP API call to do this?  The only thing that I could find  is the "LabManagerInternal.GetOrganizations" method.

 

{

LM_Print_Orgs.SOAPLabmanagerInternal.LabManagerSOAPinterface  binding1 = new  LM_Print_Orgs.SOAPLabmanagerInternal.LabManagerSOAPinterface();


binding1.Url = "https://Server/LabManager/SOAP/LabmanagerInternal.asmx";

binding1.Timeout = 10 * 60 * 1000;

binding1.AuthenticationHeaderValue = new SOAPLabmanagerInternal.AuthenticationHeader();

binding1.AuthenticationHeaderValue.username = username;

binding1.AuthenticationHeaderValue.password = userpassword;


///binding1.AuthenticationHeaderValue.organizationname?? is this required???


SOAPLabmanagerInternal.Organization[] orgs = binding1.GetOrganizations();      //Exception here!!

return orgs;

}

 

unfortunately this gives an exception: "The object has already been deleted or has not been completely created -->The object has already been deleted or has not been completely created -->The object has already been deleted or has not been completely created" (yes exactly 3 times)

 

Thankyou.


Viewing all articles
Browse latest Browse all 1577

Trending Articles