Interacting with the Core Service from client-side .NET
Interact with the Core Serivce from client-side .NET to make your .NET code interact with the Content Manager core. When connecting from an add-on, further add-on-specific configuration on the client and/or server may still be required. Refer to the add-on documentation for details.
- Getting the .NET client up and running
To get the built-in .NET client up and running refer to the assembly and copy the endpoint configuration. - Disposal of the built-in .NET Core Service client
You can dispose the client explicitly using theDisposemethod, or by enclosing your Core Service code in ausingstatement. - Connecting to the from .NET with Windows authentication
When connecting to with default Windows authentication, if you do not want to connect as the currently logged-on user, you can alter the code to connect as a different user. - Connecting to from .NET through Access Management
From the .NET client, you can connect to the API through the Access Management application and a configured identity provider. - Examples Getting lists of items (.NET)
The Core Service has methods for retrieving lists of Content Manager items. - Example retrieving items (.NET)
The Core Service has methods for retrieving items and creating lists of items within a Content Manager container. - Example handling embedded fields in a Component (.NET)
When Components contain embedded fields (fields grouped together in a single Component field), your Core Service code needs to navigate the data structure as demonstrated in the following example. - Example handling fields containing Component Links (.NET)
When Components contain Component Links, your Core Service code needs to navigate the data structure as demonstrated in the following example. - Example handling Keywords (.NET)
The following example shows how to retrieve Keywords directly from a Publication or for each Category. - Example Looping through Component Presentations (.NET)
If the Component Presentations on a Page are not assembled at visit time using a query, the Page contains a list of Component Presentations (a Component and a Component Template) that you will need to loop through in your Core Service code. - Example Accessing Page metadata (.NET)
Use the Core ServiceItemFieldsconstructor to get the metadata of a Page object in the Content Manager. - Example using metadata fields (.NET)
Metadata fields specify properties for a Page, Structure Group, Folder or Publication. If metadata is added to these items using a Metadata Schema, you can then use the values in these fields during processing. - Example creating a Schema with ExtensionXml (.NET)
You can create a Schema by using theExtensionXmlelement. The contents of this element are available to all add-on applications (so two add-ons cannot both use an element with the same name). The element holds additional data on the Schema field definition level for use by add-ons. - Example checking in a Component with a user comment
The following code includes a comment provided by the user while checking a Component.