Users can upload WSDL files from users local file system as a Governance Archive (See Creating a Governance Archive) or import them from a given URL.
During the importing WSDL is validating and put into the registry. If the given WSDL is having any other WSDL imports, these WSDLs also going through the same process and import into the registry. All the schema/policy imports are also downloaded in to registry and put them in to the location where all the schemas/policies are stored.
Instead of them WSDL can have number of endpoints and for the endpoints Registry is creating new resources and put them in to a general location where all the endpoints are saved.
A single WSDL can have number of dependent resource at the end of import process and the WSDL resource will have associations and dependencies for those resources according to the relationship.
Registry is creating Service Resource for all the WSDL imports by default and add some of the useful data into service resource by parsing the WSDL. For example, name, namespace,WSDL URL (this is the location of WSDL stored in Registry), endpoints if available in the WSDL.
Adding a WSDL
Follow the instructions below to add a new WSDL 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 "WSDL."
4. Select whether to import WSDL from URL of upload it from a file. If importing from URL was selected, specify the URL of the WSDL and its name.
If uploading from file was selected, you can upload a single WSDL file or a ZIP file (in .zip or .gar extension) containing set of WSDL/Schema files. See Creating a Governance Archive. Use the "Browse" button to upload a file.
5. Click on the "Add" button.
WSO2 Governance Registry validates each WSDL file during the first addition. It will also validation any WSDL imports such as XML Schemas.
Validation each WSDL file as it is being added can become an expensive operation. WSDL validation can be disabled by setting the
disableWSDLValidation property to
true in the respective handler configurations. The
ServiceMediaTypeHandler support this configuration. The For more information on how to configure handlers please read Handler Configuration Details.
The WSO2 Governance Registry uses the WSDL Validator from the Eclipse WTP project. This validator supports:
- WS-I Basic Profile (BP)
- WS-I Simple Soap Binding Profile (SSBP)
- WS-I Attachments Profile (AP)
- WS-I Basic Security Profile (BSP)
- All the added WSDLs can be viewed under List WSDLs.
- Information such as WSDL Name, WSDL Namespace, Life Cycle status,Actions and Dependency tree are illustrated about WSDLs.
- A WSDL can be selected by the name of the WSDL.
- The visualize view provides a custom UI to that particular WSDL, which would illustrates information about the content of the WSDL.