You must connect to the Lookup Service to gain access to its operations. After you connect to the Lookup Service, you must retrieve the service registration object to make registration queries.

1

Connect to the Lookup Service.

a

Configure a connection stub for the Lookup Service endpoint, which uses SOAP bindings, by using the HTTPS protocol.

b

Create a connection object to communicate with the Lookup Service.

2

Retrieve the Service Registration Object.

a

Create a managed object reference.

b

Retrieve the ServiceContent managed object.

c

Retrieve the service registration object.

With the service registration object, you can make registration queries.

The example is based on the code in the LookupServiceHelper.java sample file. The file is located in the following vCloud Suite SDK for Java directory: client/samples/java/vmware/vcloud/suite/samples/common/

The example is based on the code from the LsConnection.cs sample file. The source file is located in the following vCloud Suite SDK for .NET directory: client/samples/src/Samples/vmware/vcloud/suite/samples/common/

The example is based on the code from the lookup_service_helper.py sample file. The source file is located in the following vCloud Suite SDK for Python directory: client/samples/src/com/vmware/vcloud/suite/sample/common/

The example is based on the code from the lookup_service_helper.rb sample file. The source file is located in the followingvCloud Suite SDK for Ruby directory: client/samples/lib/sample/common/