Manage Global Resources
The Manage Global Resources task is used to manage resources that apply globally, such as XML schema or DTD (Document Type Definition) resources. A global resource can be referenced by an import statement in one or more Validate XML Schema assertions in a policy, or from another global resource. During runtime, the resolves a schema referenced by an import, include or redefine statement as part of the validation process. The referenced schema, or global schema, must exist in the Manage Global Resources table—and hence in the —in order for validation to proceed.
gateway91
The Manage Global Resources task is used to manage resources that apply globally, such as XML schema or DTD (Document Type Definition) resources. A global resource can be referenced by an import statement in one or more Validate XML Schema assertions in a policy, or from another global resource. During runtime, the
API Gateway
resolves a schema referenced by an import, include or redefine statement as part of the validation process. The referenced schema, or global schema, must exist in the Manage Global Resources table—and hence in the API Gateway
—in order for validation to proceed. Schema dependencies (i.e., import targets) do not need to be in the Manage Global Resources table when monitoring a URL for a schema to validate (“Monitor URL for latest value” option in the Validate XML Schema assertion).
In order for the
API Gateway
to be able to resolve external schemas when running the Validate XML Schema assertion, the import statement in the assertion schema must contain a "schemaLocation" attribute value that matches the global schema's "System ID" value.Default Global Resources
The following global resources are present by default:
- SOAP 1.1 and 1.2 XML Schemas:
http://schemas.xmlsoap.org/soap/envelope/
(SOAP 1.1)http://www.w3.org/2003/05/soap-envelope/
(SOAP 1.2)http://www.w3.org/2001/xml.xsd
(XML namespace)- DTDs:
h
ttp://www.w3.org/2001/XMLSchema.dtd
(XML Schema)http://www.w3.org/2001/datatypes.dtd
(XML Schema Datatypes)You can edit and delete these resources as with other resources.
By default, an XML schema may not reference a DTD. If you wish to override this behavior, set the schema.
allowDoctype
cluster property to "true".To manage global resources
:- The Manage Global Resources dialog appears.In the Policy Manager, select[Tasks] > Global Settings > Manage Global Resourcesfrom the Main Menu (on the browser client, from theManagemenu).
- Optionally filter the list of resources displayed:
- In the Matches field, enter the filter string. You can use a regular expression for more precise matching.
- Select the Type of resources to be matched:XML Schema,DTD, orAny.
- Click [Filter]. The list is filtered to display only the matching resources. The status message at the bottom of the dialog summarizes any filtering in effect.To return the list to an unfiltered state, clear the Matches field, select typeAny, then click [Filter].
- Choose an action to perform:
To... | See |
---|---|
Import a global resource | |
Add a XML schema | |
Add a DTD | |
Edit a global resource | |
Remove a global resource | |
Analyze a global resource |
4. Click [
Close
] when done.