Consuming the system metadata service
The metadata service is another system service that allows clients to get information about the AOT object metadata, such as table and field properties, labels, and others. The metadata services are not customizable and are hosted on the Application Object Server, at a fixed address.
In this recipe, we will create a .NET console application that will connect to the metadata service. The application will retrieve a few properties of the Currency and ExchangeRate tables.
How to do it...
Carry out the following steps in order to complete this recipe:
1. In Visual Studio, create a new Visual C# Console Application project named
ConsumeSystemMetadataService
.2. Add a new service reference named
MetadataService
to the project (replaceSEA-DEV:8101
with your address):3. Add the following code to the top section of the
Program.cs
file:using ConsumeSystemMetadataService.MetadataService;
4. Add the following code to the
Main()
method:AxMetadataServiceClient serviceClient...