Application has the option to do a service discovery, parse the results, and choose an endpoint to pass into API. The API exhibits the following behavior when application does an explicit service discovery:
1. Obtains a token (according to the details in Section 6.4.2).
2. Queries service discovery (according to the details in Section 6.6).
Enterprise Message API’s Consumer example (450__MarketPrice__QueryServiceDiscovery) provides sample source that discovers an endpoint using the service discovery feature and establishes an encrypted connection to consume data.