3.0

Table Of Contents
VMware, Inc. 15
Chapter 2 Getting Started with the Lab Manager SOAP API
To add a Web reference
1FromtheWindowsStartmenu,launchMicrosoftVisualStudio.NET2003.
TheVisualStudioenvironmentopens.
2 SelectNewProjecttocreateanewproject,orselectOpentoopenanexisting
project.
3InVisualStudio,chooseAddWebReferencefromtheProjectmenu.
4IntheURLtextbox,typetheURLto
obtaintheservicedescriptionofthe
Lab ManagerWebservice:
https://<hostname>/LabManager/SOAP/LabManager.asmx
5ClickGo.
ThecertificateexchangebetweentheLab Managerserverandthedevelopment
environmentclientbegins.Asecurityalertdisplaysthedetailsofthecertificate
sentfromtheserver.
6ClickYes.
AnalertfromtheVisualStudioenvironmentmightappear.ClickYes.
The
MicrosoftVisualStudioenvironmentconnectstotheWebserviceendpointand
displaystheoperationsdescribedintheLab ManagerWebserviceWSDL.
7 SelectthetextintheWebreferencenametextboxandrenametheWebreference
toLabManagerSoap,thenamespaceusedforthisWebreference.
“LabManagerSoap”isoneword,withoutspaces.
8ClickAddReference.
Acertificatewarningmessagemightappear.ClickYes.
9ClickYesagain.
Seethe“A d d i ng andRemovingWebReferences”topicintheVisualStudio
documentation.
N
OTEThesecurityalertmessagesaregeneratedwhentheLab Managerserver
usesthedefault,selfsignedcertificates.Youcanreplacethesecertificatesonthe
Lab ManagerserverwithcertificatespurchasedfromVerisign,Thawte,andother
certificateauthorities.