This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Managing Schemas
Users can upload Schemas from user's local file system as a Governance Archive (see Creating a Governance Archive) or import from a given URL.
First Schemas will be validated before storing to the registry. During the schema import process, original Schema will be put into the location where all the Schemas are stored and if there are any other inner Schema imports in the given Schema, those imports also put into the registry through the same Schema import process.
Adding a Schema
Follow the instructions below to add a new Schema to the Governance Registry.
1. Sign in. Enter your user name and password to log on to the Management Console.
2. Click the "Main" button to access the "Metadata" menu.
3. From the left navigation menu, under "Add," in the "Metadata" menu, select "Schema."
4. Select whether to import Schema from URL or upload it from file.
5. If importing from URL was selected, specify the URL of the Schema and its name.
6. If uploading from file was selected, you can upload a single Schema file or a ZIP file (in .zip or .gar extension) containing set of Schema files. See Creating a Governance Archive. Use the "Browse" button to upload a file.
7. Click on the "Add" button.
Schema Validation
WSO2 Governance Registry validates each Schema file during the first addition. It will also validation any Schema imports.
Tip
Validation each Schema file as it is being added can become an expensive operation. Schema validation can be disabled by setting the disableSchemaValidation
property to true
in the respective handler configurations. The XSDMediaTypeHandler
and ZipWSDLMediaTypeHandler
support this configuration. The For more information on how to configure handlers please read Handler Configuration Details.
Additional validation rules can be defined using handlers. See Resource Content Validation Sample.
List Schemas
- All the added Schemas can be viewed under List Schemas.
- Information such as Schema Name, Schema Namespace, Life Cycle status, Actions and Dependency tree are illustrated about Schemas.
- A Schema can be selected by the name of the Schema.
- The visualize view provides a custom UI to that particular Schema, which would illustrates information about the content of the Schema.