Skip to main content

Creation and Configuration of the Custom Schema for Metadata

The service metadata structure is defined by two XML schema definition (XSD) resources. The internal XSD owned by the Service Registry describes the frame of the metadata documents and properties mandatory for being handled by the Service Registry. It imports a schema which is expected as file <TalendRuntimePath>/etc/org.talend.esb.registry.server.metadata.xsd. The outline of this schema looks as follows:

<?xml version="1.0" encoding="UTF-8"?>
        elementFormDefault="qualified" xmlns=""
    <element name="metadata" type="tns:metadata"></element>
    <complexType name="metadata">
            <element name="CustomServiceType" type="string"></element>
            <element name="CustomCreationDate">
                    <restriction base="date">
                        <pattern value="[^:Z]*"></pattern>
            <element name="CustomDescription" type="string"></element>
            <element name="CustomServiceOwner" type="string"></element>

This sample schema shows what is expected as parts of a conversion-safe schema. The custom schema information needs to be added in <sequence>...</sequence>. In the example shown above it consists of all elements starting with Custom. Element names are chosen for demonstration purpose. There is no mandatory naming convention for custom element names. However, there are restrictions to the custom schema imposed by the fact that for import into ElasticSearch, metadata resources need to be unambiguously convertible to JSON documents:

  • Custom namespaces are discarded on conversion. Therefore, XML nodes should have unique local names.

  • It is recommended to have metadata as a flat sequence of elements or elements nested in a simple way.

  • Inheritance and other advanced XML schema constructs are not supported.

When synchronization with ElasticSearch is configured, a JSON mapping template file must be created which matches the custom schema. The mapping file is <TalendRuntimePath>/etc/org.talend.esb.registry.el.sync.template.json.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!