Connect to the Lookup
Service and Retrieve the Service Registration Object
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.
Procedure
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 to the Service Instance.
b
Invoke the
RetrieveServiceContent()
method to retrieve the
ServiceContent data
object.
c
Save the managed
object reference to the service registration object.
With the service
registration object, you can make registration queries.