This documentation is for WSO2 Governance Registry 5.1.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

This article explains how to configure the locations where you store WSDLs, Schemas and Policies in the WSO2 Governance Registry. Follow the instructions below.

1. Go to $GREG_HOME/repository/conf directory and open registry.xml file. The addition of WSDLs, Schemas and Policies are done by three handlers which are WSDLMediaTypeHandler, XSDMediaTypeHandler and PolicyMediaTypeHandler. With in these handler configurations the registry locations where WSDL, Schema and Policies should get added are defined. Given below are the default configurations for the locations of WSDLs, Schemas and Policies.

	<property name="schemaLocationConfiguration" type="xml">
            <location>/trunk/schemas/</location>
        </property>
        <property name="wsdlLocationConfiguration" type="xml">
            <location>/trunk/wsdls/</location>
        </property>
        <property name="policyLocationConfiguration" type="xml">
            <location>/trunk/policies/</location>
        </property>

2. To change the location where WSDLs (and imported Schemas) uploaded through a Governance Archive (GAR) file, edit

<handler class="org.wso2.carbon.registry.extensions.handlers.ZipWSDLMediaTypeHandler">
        <property name="wsdlMediaType">application/wsdl+xml</property>
        <property name="schemaMediaType">application/xsd+xml</property>
        <property name="threadPoolSize">50</property>
        <property name="disableSymlinkCreation">true</property>
        <property name="numberOfRetry">3</property>
        <property name="schemaLocationConfiguration" type="xml">
            <location>/trunk/schemas/</location>
        </property>
        <property name="wsdlLocationConfiguration" type="xml">
            <location>/trunk/wsdls/</location>
        </property>
        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
            <property name="mediaType">application/vnd.wso2.governance-archive</property>
        </filter>
    </handler>

3. Save and close the file. Restart the WSO2 Governance Registry instance for the changes to take effect.

4. For detailed information, please visit the Changing Default Storage Locations of Artifacts page.

  • No labels